add wifi firmware, move things around in ram
* at the base address we were using, the filesystem was getting corrupted presumably because the kernel unpacked into it * leave a little more space between compressed kernel and squashfs. this is probably ineffective but also harmless
This commit is contained in:
parent
f50b0627a2
commit
d83bcc643e
2 changed files with 17 additions and 2 deletions
|
@ -62,7 +62,7 @@ in {
|
|||
in
|
||||
pkgs.buildPackages.runCommand "" {} ''
|
||||
uimageSize=$(($(stat -L -c %s ${config.outputs.uimage}) + 0x1000 &(~0xfff)))
|
||||
squashfsStart=0x$(printf %x $((${cfg.loadAddress} + $uimageSize)))
|
||||
squashfsStart=0x$(printf %x $((${cfg.loadAddress} + 0x100000 + $uimageSize)))
|
||||
squashfsBytes=$(($(stat -L -c %s ${config.outputs.squashfs}) + 0x100000 &(~0xfffff)))
|
||||
squashfsMb=$(($squashfsBytes >> 20))
|
||||
cmd="mtdparts=phram0:''${squashfsMb}M(nix) phram.phram=phram0,''${squashfsStart},''${squashfsMb}Mi memmap=''${squashfsMb}M\$''${squashfsStart} root=1f00";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue