Prepare preinit for Ethernet
This commit is contained in:
parent
ef0c4d3d94
commit
d2745c53b1
@ -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
|
||||
'';
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user