Early kernel debugging

3 messages, 3 authors, 2011-03-27 · open the first message on its own page

Early kernel debugging

From: Guillaume Dargaud <hidden>
Date: 2011-03-25 08:50:27

Hello all,
what can you do when the kernel you try to run stops before printing anything on the console ?

I tried enabling the 'early printk' option, but still I get nothing.

I posted something about it in the 'Booting with ramdisk in kernel' message and I haven't improved the situation since 
then, although I found the CONFIG_BLK_DEV_RAM option.
-- 
Guillaume Dargaud
http://www.gdargaud.net/
    "Freedom is just chaos, with better lighting."

Re: Early kernel debugging

From: Philipp Ittershagen <hidden>
Date: 2011-03-27 18:07:19

On 03/25/2011 09:50 AM, Guillaume Dargaud wrote:
Hello all,
what can you do when the kernel you try to run stops before printing anything on the console ?
http://elinux.org/Kernel_Debugging_Tips#Debugging_early_boot_problems

Basically it means connecting a debugger to the running kernel (using
XMD, for example) and then reading the printk log buffer, which contains
the last lines printed.

Hope this helps!


Philipp

Re: Early kernel debugging

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2011-03-27 23:25:30

On Sun, 2011-03-27 at 20:00 +0200, Philipp Ittershagen wrote:
On 03/25/2011 09:50 AM, Guillaume Dargaud wrote:
quoted
Hello all,
what can you do when the kernel you try to run stops before printing anything on the console ?
http://elinux.org/Kernel_Debugging_Tips#Debugging_early_boot_problems

Basically it means connecting a debugger to the running kernel (using
XMD, for example) and then reading the printk log buffer, which contains
the last lines printed.
It actually mostly depends on the platform. There's various powerpc
specific early debug mechanisms that are more/less robust/functional
depending on the CPU type, the platform, etc...

Look in udbg.c, there's a list of early debug hacks in there controlled
by various config options.

Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help