Simplify boot parameters and document options
This commit is contained in:
parent
b8f1ca672f
commit
4707a8b143
@ -260,9 +260,18 @@
|
|||||||
# Reduce memory to 3 GiB [0x80000000, 0x140000000)
|
# Reduce memory to 3 GiB [0x80000000, 0x140000000)
|
||||||
fdt set /memory@80000000 reg <0x0 0x80000000 0x0 0xc0000000>
|
fdt set /memory@80000000 reg <0x0 0x80000000 0x0 0xc0000000>
|
||||||
|
|
||||||
# Set kernel options
|
# Set kernel bootcmd options.
|
||||||
setenv debugargs "debug1 trace_options=sym-addr trace_event=initcall:* tp_printk trace_buf_size=1M"
|
# NixOS interesting options:
|
||||||
setenv bootargs "root=/dev/ram0 loglevel=7 debug rw earlycon=sbi boot.trace console=hvc0 \''${debugargs} init=${init}"
|
# debug1 enable debug shell in stage 1
|
||||||
|
# boot.trace enable set -x in stage 1
|
||||||
|
# boot.tracedebug enable set -x in stage 2
|
||||||
|
# Ftrace interesting options:
|
||||||
|
# trace_event=initcall:* trace the init function of drivers
|
||||||
|
# trace_options=sym-addr display function address
|
||||||
|
# tp_printk write ftrace events to console
|
||||||
|
# trace_buf_size=1M set ftrace buffer to 1M
|
||||||
|
#
|
||||||
|
setenv bootargs "root=/dev/ram0 loglevel=7 debug rw earlycon=sbi console=hvc0 init=${init}"
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user