Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to update target m/c grub.cfg file for KGDB setup but while booting the m/c it got hung completely and not asking/waiting for remote gdb connection. Following is the entry which I added:-

menuentry 'Ubuntu, with Linux 2.6.32-24-kgdb' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 12878c3b-c553-4b4b-986a-6e32daea3ad1
        linux   /vmlinuz-2.6.32-kgdb root=/dev/mapper/ubuntu-root ro kgdbwait kgdboe=@192.168.140.23/,@192.168.140.158/  quiet
        initrd  /initrd.img-2.6.32-24-server
}

I have also compiled and copied /boot/vmlinuz-2.6.15.5-kgdb & /boot/System.map-2.6.15.5-kgdb to target m/c from devlopement m/c.

STD entry before adding KGDB in grub.cfg was:-

menuentry 'Ubuntu, with Linux 2.6.32-24-server' --class ubuntu --class gnu-linux --class gnu --class os {
        recordfail
        insmod ext2
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set 12878c3b-c553-4b4b-986a-6e32daea3ad1
        linux   /vmlinuz-2.6.32-24-server root=/dev/mapper/ubuntu-root ro   quiet
        initrd  /initrd.img-2.6.32-24-server
}

Please suggest how to get rid of this problem.

share|improve this question

1 Answer 1

If you are using grub2 (which was the default in 10.04), menu entries should not be manually added to grub.cfg. Instead they can be added in /etc/grub.d/40_custom or you can drop a new file in /etc/grub.d/. More GRUB2 info can be found here:

https://help.ubuntu.com/community/Grub2#Custom Menu Entries

As for the KGDB kernel itself, I'm certainly not an expert here. My understanding is that you need to also set kgdb8250=<port number>,<port speed>. You might try looking here for more KGDB specific help:

http://kgdb.linsyssoft.com/docu.htm

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.