1
0
forked from dan/liminix
This commit is contained in:
Arnout Engelen 2024-12-20 23:24:29 +01:00
parent d0f7109bea
commit 9cdbd3c409
No known key found for this signature in database
GPG Key ID: 061107B0F74A6DAA
3 changed files with 8 additions and 3 deletions

View File

@ -113,7 +113,7 @@ in {
[ s6 s6-init-bin execline s6-linux-init s6-rc ];
boot.commandLine = [
"panic=10 oops=panic init=/bin/init loglevel=8"
"panic=10 oops=panic init=/init loglevel=8 debug"
"root=${config.hardware.rootDevice}"
"rootfstype=${config.rootfsType}"
"fw_devlink=off"

View File

@ -122,6 +122,7 @@ in {
fdtput -p -t lx dtb /reserved-memory/$node reg $ac_prefix $(hex $rootfsStart) $sz_prefix $(hex $rootfsSize)
cmd="liminix ${cmdline} mtdparts=phram0:''${rootfsSize}(rootfs) phram.phram=phram0,''${rootfsStart},''${rootfsSize},${toString config.hardware.flash.eraseBlockSize} root=/dev/fit0";
#cmd="liminix ${cmdline}"
fdtput -t s dtb /chosen ${config.boot.commandLineDtbNode} "$cmd"
dtbSize=$(binsize ./dtb )

View File

@ -5,7 +5,8 @@ let
s6
s6-init-bin
s6-linux-init
stdenvNoCC;
stdenvNoCC
writeShellScript;
inherit (lib.lists) unique concatMap;
inherit (pkgs.pseudofile) dir symlink;
inherit (pkgs.liminix.services) oneshot bundle longrun;
@ -280,7 +281,10 @@ in {
};
};
bin = dir {
init = symlink "${s6-init-bin}/bin/init";
#myinit = symlink "${s6-init-bin}/bin/init";
init = symlink (writeShellScript "myinit.sh" ''
echo 'tralala'
'');
};
};
};