Enable stage 2 shell
This commit is contained in:
parent
58c6d56e96
commit
edb597ad6a
@ -498,6 +498,7 @@
|
|||||||
# systemd.log_target=console
|
# systemd.log_target=console
|
||||||
# NixOS interesting options:
|
# NixOS interesting options:
|
||||||
# debug1 enable debug shell in stage 1
|
# debug1 enable debug shell in stage 1
|
||||||
|
# debug2 enable debug shell in stage 2 (custom)
|
||||||
# boot.trace enable set -x in stage 1
|
# boot.trace enable set -x in stage 1
|
||||||
# boot.tracedebug enable set -x in stage 2
|
# boot.tracedebug enable set -x in stage 2
|
||||||
# Ftrace interesting options:
|
# Ftrace interesting options:
|
||||||
@ -509,7 +510,7 @@
|
|||||||
in prev.runCommand "uboot.txt" {} ''
|
in prev.runCommand "uboot.txt" {} ''
|
||||||
cat > $out <<EOF
|
cat > $out <<EOF
|
||||||
xtrace=yes
|
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}))
|
ramdisk_size=$(stat --format %s $(readlink -f ${initrd}))
|
||||||
bootcmd=fdt print; booti \''${kernel_addr_r} \''${ramdisk_addr_r}:\''${ramdisk_size} \''${fdtcontroladdr}
|
bootcmd=fdt print; booti \''${kernel_addr_r} \''${ramdisk_addr_r}:\''${ramdisk_size} \''${fdtcontroladdr}
|
||||||
EOF
|
EOF
|
||||||
|
@ -18,7 +18,7 @@ if [ "${IN_NIXOS_SYSTEMD_STAGE1:-}" != true ]; then
|
|||||||
set -x
|
set -x
|
||||||
;;
|
;;
|
||||||
debug2)
|
debug2)
|
||||||
bash -i
|
@shellDebug@ -i
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user