Debugging Linux Kernel using KGDB Part-6- agent proxy

In our previous setup, we were using one serial port for console I/O and the other serial port for KGDB debugging.

If you have only one serial port, and want to use for both console and KGDB then you have to go with agent proxy.

Building Agent Proxy

Step 1: Clone the repository

git clone http://git.kernel.org/pub/scm/utils/kernel/kgdb/agent-proxy.git

Step 2: Build the source

cd agent-proxy ; make

Running Agent Proxy

Open a  new terminal and run the following command: 

./agent-proxy 5550^5551 0 /dev/ttyUSB0,115200

/dev/ttyUSB0 if you are using USB to serial device node. Now, you have 5550 port for console and 5551 port for kgdb

To get the console logs:

telnet localhost 5550

KGDB Setup:

gdb ./vmlinux
target remote localhost:5551



Comments

Popular posts from this blog

bb.utils.contains yocto

Difference between RDEPENDS and DEPENDS in Yocto

PR, PN and PV Variable in Yocto