Enable stage 2 shell

This commit is contained in:
Rodrigo Arias 2024-09-27 14:12:21 +02:00
parent 58c6d56e96
commit edb597ad6a
2 changed files with 3 additions and 2 deletions

View File

@ -498,6 +498,7 @@
# systemd.log_target=console
# NixOS interesting options:
# debug1 enable debug shell in stage 1
# debug2 enable debug shell in stage 2 (custom)
# boot.trace enable set -x in stage 1
# boot.tracedebug enable set -x in stage 2
# Ftrace interesting options:
@ -509,7 +510,7 @@
in prev.runCommand "uboot.txt" {} ''
cat > $out <<EOF
xtrace=yes
bootargs=root=/dev/ram0 loglevel=7 rw earlycon=sbi console=hvc0 init=${init}
bootargs=root=/dev/ram0 loglevel=7 rw earlycon=sbi console=hvc0 debug2 init=${init}
ramdisk_size=$(stat --format %s $(readlink -f ${initrd}))
bootcmd=fdt print; booti \''${kernel_addr_r} \''${ramdisk_addr_r}:\''${ramdisk_size} \''${fdtcontroladdr}
EOF

View File

@ -18,7 +18,7 @@ if [ "${IN_NIXOS_SYSTEMD_STAGE1:-}" != true ]; then
set -x
;;
debug2)
bash -i
@shellDebug@ -i
;;
esac
done