readme: explain how to use dynamic debugging for boot messages

run: pass the console_msg_format=syslog boot parameter by default,
to allow seeing what is the priority of messages on the terminal.

Document printk better.
This commit is contained in:
Ciro Santilli
2018-04-18 14:58:47 +01:00
parent 5698a5ed2b
commit b5d64142e9
2 changed files with 62 additions and 11 deletions

3
run
View File

@@ -10,12 +10,11 @@ debug=false
kgdb=false
kvm=false
# norandmaps: Don't use address space randomization. Equivalent to echo 0 > /proc/sys/kernel/randomize_va_space.
# printk.time=y: log in format: "[time ] msg" for all printk messages.
# nokaslr:
# - https://unix.stackexchange.com/questions/397939/turning-off-kaslr-to-debug-linux-kernel-using-qemu-and-gdb
# - https://stackoverflow.com/questions/44612822/unable-to-debug-kernel-with-qemu-gdb/49840927#49840927
# Turned on by default since v4.12
extra_append='nokaslr norandmaps printk.devkmsg=on printk.time=y'
extra_append='console_msg_format=syslog nokaslr norandmaps printk.devkmsg=on printk.time=y'
extra_append_after_dash=
extra_flags=
extra_flags_qemu=