Is it possible to use KGDB over a serial connection on a Jetson AGX Xavier?
I’ve done the following:
- Connect micro-USB to port J501 on Jetson, USB-A on host machine
- On an SSH instance on the Jetson:
echo ttyTCU0 > /sys/module/kgdboc/parameters/kgdboc,echo g > /proc/sysrq-trigger - On host machine,
sudo ./gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gdb ./vmlinux - In GDB instance on host:
target remote /dev/ttyUSB3
GDB gives this error on running the command above:
Remote debugging using /dev/ttyUSB3
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Remote replied unexpectedly to 'vMustReplyEmpty': timeout
This post seems to imply that what I am trying to do isn’t actually supported on /dev/ttyTCU0 so I’ve also tried a serial connection over pins 8/10 on the header using an FTDI cable. But with this topology, I am not even able to open a minicom connection.