Hello
I was tryng to follow the guide
https://docs.nvidia.com/jetson/l4t/#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/debugging_kgdb.html#
to enable KGDB for Xavier NX development board, but something goes wrong in the procedure.
- The ttySO is not working but I found that on Xavier there is a ttyTCU0 (that, from what I see, it is linked to uart2 pins)
- I add the strings “kgdboc=ttyTCU0,115200 kgdbwait” to boot config
- I compiled the Kernel with KGDB and disabling WATCHDOG
- I connected a serial converter on uart2 pins (J14)
What I’m facing is that:
- Kernel never stops on console, it reaches the login without kdb console prompt
- If I force the kdb with “echo ttyTCU0,115200 > /sys/module/kgdboc/parameters/kgdboc” from an ssh console, I see that on serial console appears “kdb>” but I can’t do anything else (the system is stopped)
- If I remove from ext config “kgdboc=ttyTCU0,115200 kgdbwait” and put the string “echo ttyTCU0,115200 > /sys/module/kgdboc/parameters/kgdboc”, the system let me to insert also “echo -n g > /proc/sysrq-trigger” but after that all is stopped.
- How to use kgdb on Xavier?
- What is the difference between ttyS0 and ttyTCU0?
Thanks for the help