Prepare preinit for Ethernet

This commit is contained in:
Rodrigo Arias 2024-09-05 11:04:51 +02:00
parent ef0c4d3d94
commit d2745c53b1

View File

@ -164,9 +164,26 @@
"/preinit".source = pkgs.writeScript "preinit" ''
#!${config.system.build.extraUtils}/bin/ash
set -x
export PATH=${config.system.build.extraUtils}/bin
csrtool all-in-order
# csrtool all-in-order
if read -t 3 -p 'press enter for shell'; then
ash
fi
set -x
ip addr
cat /proc/interrupts
modprobe xxvnet_carv
plictool -c2
plictool -c2
plictool -c2
ip addr
exec /init
'';
};