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
Ptsdist: kernel debugging
Did you read the "Documentation/DocBook/kgdb.tmpl" in the kernel source tree? Especially the section "kgdboc internals" and "kgdboc and uarts"?
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.
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.
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?
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.
hi,dhruv,can you show the code how to modify the samsung serial driver code to support the KGDB,thanks a lot!