Ptsdist: kernel debugging

dhruv
Attachment: kgdb boot (8.4 KB)
Hi all, i am trying to do kernel debugging i have attached the boot log and
plz help me on the same.
$ptxdist kernelconfig

enabled the folloing
Kernel hacking --> Kernel debugging
Kernel hacking --> Compile the kernel with debug info
Kernel hacking --> KGDB: kernel debugger  -->KGDB: use kgdb over the serial
console
$ ptxdist go
$ ptxdist images 

And in env/config added the following:
  bootargs=kdgb=ttySAC0,115200 kgdboc=ttySAC0,115200N8 kgdbwait

Juergen Beisert
Did you read the "Documentation/DocBook/kgdb.tmpl" in the kernel source
tree? Especially the section "kgdboc internals" and "kgdboc and uarts"?

dhruv
Thnx Juergen, i vl go thro that. By d way i have a doubt  

Connection between my target board and host machine(laptop) is through
UART/Null Modem (ttyUSB0) with the help of USB-SERIAL Converter and the
same is used for console output on host machine. 

So for debuggin i should use another port(ttyUSBx) or can use the ttyUSB0
port itself

Can any plz correct me if m wrong.

Juergen Beisert
You can try what you want, as fas as I understand the "kgdb.tmpl" document,
the Samsung UART driver does not support kgdb. That is why I asked if you
already read the "Documentation/DocBook/kgdb.tmpl" document.

dhruv
k thnx , as i said i vl go thro that pages that means i vl read that. but i
had a doubt so i asked. Anyways by any other means we can do kernel debug
in mini2440?

dhruv
Attachment: Unsaved (8.82 KB)
hi Juergen,
 you be surprised to know that , i could launch KGDB by modifying the
driver. I have attached the log. but i m stuck in between.

bob
hi,dhruv,can you show the code how to modify the samsung serial driver code
to support the KGDB,thanks a lot!

dhruv
Attachment: samsung.c (43.05 KB)
hi bob, plz find the attached file. which is added wit KGDB support.