Making the Kernel Chat: How To Get Debug Output
summary
Begins with a practical claim: silent kernel boots or early crashes are solvable by choosing the right mechanism and knowing what output to expect. Shows how to use earlycon or architecture-specific earlyprintk on x86 and arm32 to get pre-serial output, how to stream logs offboard with netconsole, and how to persist or retrieve postmortem data with pstore or RAM oops. Covers command-line knobs (keep_bootcon, panic, initcall_debug, ftrace dump on oops), extracting the log buffer from memory or U-Boot, and simple hacks like GPIO blink markers or using OpenOCD to dump the log buffer.
AI-written summary · about
chapters (16)
- 0:00Introduction and overview
- 1:05Why kernel debug output matters
- 2:27Prerequisites for debugging
- 5:55When kernel output stops
- 8:01Kernel command line debugging options
- 9:48Runtime kernel crash debugging
- 13:45Early printk and debug mechanisms
- 18:19Netconsole for kernel logging
- 20:49Persistent storage with pstore
- 23:42Ftrace and kernel command line
- 25:06Reading kernel log from memory
- 27:15Magic SysRq key debugging
- 29:23Decoding kernel stack traces
- 30:47Alternative debugging tools
- 32:54Using Git bisect and GPIO debug
- 35:01Q&A and closing remarks
