Sunday, September 27, 2009

Debugging

Q1.How to enable kernel low level debugging output?

A1. In kernel configuration, Kernel hacking ->
Kernel debugging -> Kernel low-level debugging functions


A2. Without recompilation, pass the following
* similar * kernel params

console=uart,io,0xe1020000,115200n8


Q2. How to get C code mixed with asm ?

A1. gcc -c file.c -g -Wa,-a,-ad > file.s
A2. objdump -dS file.o > file.s

Worth reading How to locate on oops ,
best brains explaining how to trace oops .