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
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