Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] KGDB no work in gentoo-source
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
robinswan
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2005
Posts: 139

PostPosted: Sun Jan 18, 2009 8:45 am    Post subject: [SOLVED] KGDB no work in gentoo-source Reply with quote

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
View user's profile Send private message
robinswan
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2005
Posts: 139

PostPosted: Mon Jan 19, 2009 3:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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