How to debug an embedded linux Kernel

Submitted by DEF
on May 9, 2009 - 6:27am

I have a embedded ARM linux target and a linux host. I require to debug the embedded linux usbcore and usbserial.ko. I have built a debug kernel and debuf usbserial.

Now I have gdbserver on the target and gdb on the host. Using tcp how to I configure both the host and target to debug the usbcore?

a) on the host side, start a

Mathieu
on
May 9, 2009 - 10:26pm

a) on the host side, start a gdb session and enter the kernel binary and connect to the target:
> ./vmlinux
> target remote udp:name_of_the_host:6443

b) on the target, make sure you use the following kernel parameters:kgdboe=@target_ip/,@host_ip/
console=ttyS0,115200

I would use the kgdb other UART to make sure that this part is working before trying kgdb other ethernet.

Hope that helps,
-Mathieu

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.