Hi all,
We want to debug kernel using KGDB on TDA4VM, the linux version is 5.4.74, how can we configure to use KGDB.
I try to modify file arch/arm64/configs/tisdk_j7-evm_defconfig like this:
+CONFIG_DEBUG_INFO=y
+CONFIG_DEBUG_VM=y
+CONFIG_KGDB=y
+CONFIG_KGDB_KDB=y
+CONFIG_KDB_KEYBOARD=y
and modify arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts file like this:
chosen {
stdout-path = "serial2:115200n8";
bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 kgdboc=ttyS0,115200 kgdbwait";
};
and make,make install, but the linux can't stop waitting for device to connect with ttyS0, but start normal as usual.
How can I use the KGDB to debug my TDA4VM board?
Regards,
Jason