View previous topic :: View next topic |
Author |
Message |
robinswan Tux's lil' helper

Joined: 14 Oct 2005 Posts: 139
|
Posted: Sun Jan 18, 2009 8:45 am Post subject: [SOLVED] KGDB no work in gentoo-source |
|
|
I tired to test the KGDB to debug my drivers with gentoo-source, follow the "KGDB Quickstart" Documentation,
enable KGDB function in kernel configuration, and boot my machine with the kgdb kernel.
but I can not see the KGDB working in booting process. why? In the KGDB documentation,
KGDB functionalized kernel will stop in process and prompt the message waiting the host gdb command.
my kernel configuration for KGDB:
Code: | $ grep -n "KGDB" /usr/src/linux/.config
1775:CONFIG_HAVE_ARCH_KGDB=y
1776:CONFIG_KGDB=y
1777:CONFIG_KGDB_SERIAL_CONSOLE=y
1778:# CONFIG_KGDB_TESTS is not set
|
my kernel booting parameter for KGDB
Code: | $ cat /boot/grub/grub.conf
default 0
timeout 30
title Linux-2.6.27-kgdb
root(hd0,4)
kernel /boot/kernel-2.6.27-kgdb root=/dev/hda6 kgdbwait
|
Last edited by robinswan on Mon Jan 19, 2009 3:22 am; edited 1 time in total |
|
Back to top |
|
 |
robinswan Tux's lil' helper

Joined: 14 Oct 2005 Posts: 139
|
Posted: Mon Jan 19, 2009 3:21 am Post subject: |
|
|
I resolved the problem by adding kernel booting argument kgdboc=ttyS0,115200
the grub.conf about kgdb booting look like bellow:
Code: |
default 0
timeout 30
title Linux-2.6.27-kgdb
root(hd0,4)
kernel /boot/kernel-2.6.27-kgdb root=/dev/hda6 kgdbwait kgdboc=ttyS0,115200
|
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|