alexgolec
Posts: 4
Joined: Thu Jun 28, 2012 2:11 pm

How can I debug the RPi's kernel without a monitor?

Thu Jun 28, 2012 2:22 pm

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?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5097
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: How can I debug the RPi's kernel without a monitor?

Thu Jun 28, 2012 2:50 pm


summers
Posts: 63
Joined: Mon Jan 30, 2012 4:27 pm

Re: How can I debug the RPi's kernel without a monitor?

Thu Jun 28, 2012 3:04 pm

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 ...

Return to “Raspbian”

Who is online

Users browsing this forum: Google [Bot] and 22 guests