Hi,
I am trying to setup kgdb over ethernet. I have downloaded linux-2.6.15.5.tar.gz and linux-2.6.15.5-kgdb-2.4.tar.gz. I have unpacked both of these and applied the following patches
core-lite.patch
i386-lite.patch
8250.patch
eth.patch
core.patch
i386.patch
Then I have configured the kernel. while configuration, I have selected ethernet support for kgdb after selecting kgdb support.
Then I have given the command make bzImage and transfered both system.map amd bzImage to the target machine and placed them in /boot ditectory.
Then I have made the following changes to the grub.conf file
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making
changes to this file
# NOTICE: You do not have a /boot partition. This means that
# all kernel and initrd paths are relative to /, eg.
# root (hd0,6)
# kernel /boot/vmlinuz-version ro root=/dev/hda7
# initrd /boot/initrd-version.img
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd0,6)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,6)
kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title KGDB Linux (2.6.15.5)
root (hd0,6)
kernel /boot/bzImage ro root=/dev/hda7 [EMAIL PROTECTED]/,@192.168.0.2/ kgdbwait
console=ttyS0,115200
title WinXprofessional
rootnoverify (hd0,0)
chainloader +1
I am getting an error "could not
establish the connection to remote host" when I am trying to connect to the target as follows at gdb.
target remote udp:192.168.0.1:6443
Please let me know if any thing wrong in my grub.conf file and what are the modules should i include in kernel while configuration process. I am using PCs one with SiS LAN card and another with Real-Tech.I have also tried with the systems both with Real-Tech LAN cards. While configuration, I have included support for these as well.
Please help me.
Thanks in advance,
Prasad.B
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
