From 7d1c85f6806cdcefea29d4878ccb4e7981d020d3 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 15 Oct 2022 16:11:40 +0100 Subject: [PATCH] kernel: enlarge offset to rootfs, disable sysfs devlink the ag71xx driver doesn't probe with fw_devlink enabled --- default.nix | 2 +- modules/base.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index f372ff6..d30fe5c 100644 --- a/default.nix +++ b/default.nix @@ -44,7 +44,7 @@ let let inherit (nixpkgs.lib.trivial) toHexString; uimageStart = 10485760; # 0xa00000 - squashfsStart = uimageStart + 2 * 1024 * 1024; + squashfsStart = uimageStart + 4 * 1024 * 1024; 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"; in diff --git a/modules/base.nix b/modules/base.nix index b11a01a..50c1815 100644 --- a/modules/base.nix +++ b/modules/base.nix @@ -67,6 +67,7 @@ in { }; boot.commandLine = [ "earlyprintk=serial,ttyS0 console=ttyS0,115200 panic=10 oops=panic init=/bin/init loglevel=8 rootfstype=squashfs" + "fw_devlink=off" ]; users.root = { uid = 0; gid= 0; gecos = "Root of all evaluation";