Deepankar Vidyarthi <deepankar@embeddedinfotech.com> writes: > Hi, > > I was trying to set up a pair of test and development Linux machines > so that I can debug the kernel changes that I am making. > > For this I did all the stuff needed: > 1. Compiling the test kernel with kgdb patch. > 2. Setting serial connection thru null modem cable between test and > development machine. Did you confirm that the serial connection works? You can use cat and echo to make sure it works both ways. > 3. Putting the test kernel on the test(target) machine. > > Now on booting the target machine with test kernel, I am getting it to stop with message > "Waiting for connection from remote gdb ..." > > But the gdb session started on the development machine is not able to contact the target > kernel. Its giving following error: > > (gdb) target remote /dev/ttyS1 > Remote debugging using /dev/ttyS1 > Ignoring packet error, continuing... > Ignoring packet error, continuing... > Ignoring packet error, continuing... > Couldn't establish connection to remote target > Malformed response to offset query, timeout > > I tried various combinations of baud rates, but with same result. I've seen that happen with too-high baud rates, but if you've tried lowering the rate and you're sure that two-way communication is working through the serial connection, I don't know what the problem might be. There's a kgdb mailing list where you might find more answers. > If anyone has used kgdb to debug linux kernel, please throw some > light on this error. If it's any encouragement, it works for me with the 2.4.18-14 kgdb patch and some corresponding RedHat kernel from an rpm. -- --Ed L Cashin PGP public key: http://noserose.net/e/pgp/ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/