kernel: enlarge offset to rootfs, disable sysfs devlink

the ag71xx driver doesn't probe with fw_devlink enabled
This commit is contained in:
Daniel Barlow 2022-10-15 16:11:40 +01:00
parent 70fa328574
commit 7d1c85f680
2 changed files with 2 additions and 1 deletions

View file

@ -44,7 +44,7 @@ let
let let
inherit (nixpkgs.lib.trivial) toHexString; inherit (nixpkgs.lib.trivial) toHexString;
uimageStart = 10485760; # 0xa00000 uimageStart = 10485760; # 0xa00000
squashfsStart = uimageStart + 2 * 1024 * 1024; squashfsStart = uimageStart + 4 * 1024 * 1024;
squashfsSize = 8; squashfsSize = 8;
cmd = "mtdparts=phram0:${toString squashfsSize}M(nix) phram.phram=phram0,0x${toHexString squashfsStart},${toString squashfsSize}Mi memmap=${toString squashfsSize}M\$0x${toHexString squashfsStart} root=1f00"; cmd = "mtdparts=phram0:${toString squashfsSize}M(nix) phram.phram=phram0,0x${toHexString squashfsStart},${toString squashfsSize}Mi memmap=${toString squashfsSize}M\$0x${toHexString squashfsStart} root=1f00";
in in

View file

@ -67,6 +67,7 @@ in {
}; };
boot.commandLine = [ boot.commandLine = [
"earlyprintk=serial,ttyS0 console=ttyS0,115200 panic=10 oops=panic init=/bin/init loglevel=8 rootfstype=squashfs" "earlyprintk=serial,ttyS0 console=ttyS0,115200 panic=10 oops=panic init=/bin/init loglevel=8 rootfstype=squashfs"
"fw_devlink=off"
]; ];
users.root = { users.root = {
uid = 0; gid= 0; gecos = "Root of all evaluation"; uid = 0; gid= 0; gecos = "Root of all evaluation";