我正在尝试更新用于KGDB设置的目标m/c grub.cfg文件,但是在启动m/c时,它被完全挂起,而不是请求/等待远程gdb连接。以下是我加入的记项:
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
}我还编译并将/boot/vmlinuz-2.6.15.5-kgdb & /boot/System.map-2.6.15.5-kgdb从devlopement m/c编译到目标m/c。
在grub.cfg中添加KGDB之前的STD条目是:-
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
}请建议如何解决这个问题。
发布于 2010-10-03 18:54:21
如果您使用的是grub2 (这是10.04中的缺省值),则不应该手动将菜单项添加到grub.cfg中。相反,可以在/etc/grub.d/40_custom中添加它们,也可以在/etc/grub.d/中删除一个新文件。更多的GRUB2信息可以在这里找到:
https://help.ubuntu.com/community/Grub2#Custom菜单项
至于KGDB内核本身,我当然不是这里的专家。我的理解是,您还需要设置kgdb8250=<port number>,<port speed>。您可以尝试在这里查找更多特定于KGDB的帮助:
http://kgdb.linsyssoft.com/docu.htm
https://askubuntu.com/questions/4230
复制相似问题