From d2745c53b18b026af37d3940f39f9e4d77e7aac0 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 5 Sep 2024 11:04:51 +0200 Subject: [PATCH] Prepare preinit for Ethernet --- lagarto-ox.nix | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/lagarto-ox.nix b/lagarto-ox.nix index 2e76474..9dbc792 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -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 ''; };