So I've been wrestling with ubuntu 8.10 to try and make it work with the kernel debugger (kgdb) that is included with 2.6.27. I am trying to run this on a kernel I compiled myself using the same config file that the stock kernel was compiled with and compiling the source from the linux-source-2.6.27 package. I have not changed any of the kernel config options. The relevant sections of the file for kgdb are as follows:
I complied the kernel using make-kpkg as such:
# CONFIG_KGDB_TESTS is not set
and then installed the resulting .deb with dpkg. Everything boots up normally and I can verify that I'm running my kernel as such:
$ fakeroot make-kpkg --revision=1 --append-to-version=-david --initrd kernel_image
When I try to boot the kernel with kgdbwait, the kernel boots up normally. Here is the grub entry:
$ uname -a
Linux ubuntu-test 188.8.131.52-david #1 SMP Wed Dec 24 19:23:47 EST 2008 i686 GNU/Linux
As far as I understand it, when I boot with these options, the kernel should hang close to the beginning of boot with the following output and wait for a remote connection from gdb with the following message:
title Ubuntu 8.10, kernel 184.108.40.206-david with kgdb
kernel /boot/vmlinuz-220.127.116.11-david root=UUID=a47d32d3-d5a3-454f-abd2-9e10f1aec517 ro crashkernel=384M-2G:64M@16M,2G-:128M@16M kgdbwait kgdb8250=0,115200
Instead I'm just booting up as if kgdbwait isn't even there.
Waiting for connection from remote gdb...
Some further info that is probably useful:
$ dmesg | grep -i kgdb
[ 0.000000] Kernel command line: root=UUID=a47d32d3-d5a3-454f-abd2-9e10f1aec517 ro crashkernel=384M-2G:64M@16M,2G-:128M@16M kgdbwait kgdb8250=0,115200
I'm running this on VMware Fusion 2.0.1 with VMware Tools 7.9.3, build-128865. Other than that, everything is standard stuff from the intrepid repository.
$ grep -i kgdb /var/log/kern.log
Dec 26 01:24:32 ubuntu-test kernel: [ 0.000000] Kernel command line: root=UUID=a47d32d3-d5a3-454f-abd2-9e10f1aec517 ro crashkernel=384M-2G:64M@16M,2G-:128M@16M kgdbwait kgdb8250=0,115200
Any help on this would be appreciated.