Skip to content

Instantly share code, notes, and snippets.

@tonejito
Last active January 6, 2023 15:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tonejito/3d14b62dbc3ba40775ac63a22d06237f to your computer and use it in GitHub Desktop.
Save tonejito/3d14b62dbc3ba40775ac63a22d06237f to your computer and use it in GitHub Desktop.
Linux kernel verbose boot and logging to serial console
# Linux kernel verbose boot and logging to serial console
#
# Check Documentation/kernel-parameters.txt [1] to check all aplicable options for your kernel version
#
# VERSION="v"$(uname -r | sed -e 's/\(\.0\)\?-.*$//')
# [1] https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/plain/Documentation/kernel-parameters.txt?id=refs/tags/$VERSION
linux /vmlinuz root=/dev/sda1 ro consoleblank=0 earlyprintk=ttyS0 console=ttyS0 panic=1 oops=panic panic_on_warn verbose INIT_VERBOSE=yes init=/sbin/init -v
initrd /initrd.gz
boot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment