Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi I'd like to set up kgdb for 2.6.30 kernel.
Besides that, I have a question : is there a chance that 2.6.30 may run with a Hardy 8.04 distrib, in place of 2.6.24 original kernel ?
I hope so ...
Anyway, I've launched a kernel compilation 2,5 hour ago that should finish soon, just setting some options to use kgdb via menuconfig .
I think there are no more patches to apply to the kernel, am I right ?
If the build is finally ok, what should I do with this kernel ?
Use it on this machine (target) and put the sources on the other one (running kgdb) or run kgdb on this machine and put the kernel on the other one ?
Actually I've not really well understood that as you can guess it ...
Thanks for your help
Hi,
I've finally compiled 2.6.30 kernel with kgdb support.
I thought the kernel would wait while booting for a remote connection through kgdb, but actually it boots till the end and Gnome starts.
What should I do to make kgdb work ?
thanks for your help
Hi,
Thanks for your help,
How do you get pdf or html out of .tmpl files, for instance in Documentation/DocBook directory, within kernel source directory .
I tried to type make, then tried make pdfdocs, but none of these commands worked
Hello,
I was trying something similar. Were you able to bring up the KGDB on the 2.6.30 kernel ?
I have a very basic question. In the KGDB docs (kgdbquickstart-2.4.pdf)
i see that they mention, in page 1, item 1 & 2, that the patch is for 2.6.15 .. does this mean that we cannot use KGDB for debugging the 2.6.30 kernel ? should the kernel which is to be debugged, be of a version equal to 2.6.15 and lesser ?
what should be the tool chain versions ?
thanks and regards
pachu
The documentation you read is no more useful.
There is no need anymore to patch the kernel, just download the sources, for instance from kernel.org, go in the root directory of the sources and
then use either make xconfig or make menuconfig or something else to configure the kernel , ie set the options of the kernel .
You should go in Kernel Hacking sub-menu and select these options:
[*] Kernel debugging <-- not sure about this one [*] Compile the kernel with debug info[*] Compile the kernel with frame pointer[*] KGB: kernel debugging with remote gdb --->[*] KGDB: use kgdb over the serial console
and also that:
Device Drivers --->
Character Devices --->
Serial Drivers ---->
<*> 8250/16550 and compatible serial support[*] Console on 8250/16550 and compatible serial port
And I think that's it for the configuration step .
Then you have ti type make, the make modules_install and make install .
You'll have to check if your bootloader (grub, lilo or something else) has added an entry relative to the kernel you want to use,
and use correct kernel command line in this entry .
For instance in /boot/grub/menu.lst, I use this entry :
Hi cracorange,
Thanks for your info.
It helps me to solve my half question.
But what would you do on the development machine?
Do you use gdbmod-2.* ./vmlinux or gdb ./vmlinux?
I would like to debug the driver modules but I am really confised by the docs I got from the internet.
Thank you,
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.