How can I debug the RPi's kernel without a monitor?
3 posts
I'm building a kernel from scratch, and for various reasons I need to be able to debug with a monitor attached. Specifically, my problem is that I've clearly screwed up the configuration, because the kernel boot is hanging so early that init doesn't even start. Does the RPi have any sort of support for outputting debug info over USB, ethernet, or serial port?
- Posts: 4
- Joined: Thu Jun 28, 2012 2:11 pm
- Moderator
- Posts: 3322
- Joined: Wed Aug 17, 2011 7:41 pm
- Location: Cambridge
Something else to add.
When booting the kernel pass the argument
"console=whatever"
Where /dev/whatever is the device file of the serial line you are watching ...
Kernel takes a short time to get far enough though to be able to direct messages to the console though - so you may not get a message ...
When booting the kernel pass the argument
"console=whatever"
Where /dev/whatever is the device file of the serial line you are watching ...
Kernel takes a short time to get far enough though to be able to direct messages to the console though - so you may not get a message ...
- Posts: 57
- Joined: Mon Jan 30, 2012 4:27 pm