Skip to contentSkip to conversation

how to debug the linux kernel with a BDI2000

DISCUSSION jxnuxdy 2 participants 2 messages Aug 27, 2007 – Aug 30, 2007

lore
Share & tools
lore

jxnuxdy

author
#0 lore raw

My kernel hanged in when passed the parameters to it, and I dump nothing from the log_buf, so I guss it is crashed at the very beginning. however I didn't know how to setup the KDB to load the kernel with the BDI2000 ethernet? is there anyone has even loaded and debugged the kernel with the BDI2000 ethernet? if so pls show me how it goes? ,Thanks- Denny

#1 lore raw

Hi Denny,

Quoted 6 lines

My kernel hanged in when passed the parameters to it, and I dump nothing from the log_buf, so I guss it is crashed at the very beginning.

however I didn't know how to setup the KDB to load the kernel with the BDI2000 ethernet? is there anyone has even loaded and debugged the kernel with the BDI2000 ethernet? if so pls show me how it goes?

You don't need KDB to use the BDI2000 to debug a linux kernel, in fact you need nothing on the target side. Simply attach the BDI to your hardware, and use a (cross-)gdb with the "target remote <ipaddr>:<port>" command. Our DULG shows how to do that with U-Boot[1]. Debugging (static) Linux is exactly the same...

Cheers
Detlev

[1] http://www.denx.de/wiki/view/DULG/DebuggingUBoot

Signature · 6 lines
debian is a prototype for a future version of emacs.
                         -- Thien-Thi Nguyen in <[email protected]>
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: [email protected]