Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Kernel Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd December 2008, 14:23
ngocct ngocct is offline
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to ngocct
Default How to config kdb to debug kernel 2.6.24

Hello all !

I want to patch the kdb (Build-in Kernel Debugger) to my kernel (packet 2.6.24) for debugging. I performed:

1. Make directory linux-source at /home/ngocct and extract packet linux source 2.6.24 to this directory.
mkdir linux-source/
tar jxvf linux-source-2.6.24.tar.bz2 -C /home/ngocct/linux-source
2. change to linux-source directory then patch two kdb patches to kernel source.
patch -p1 < /home/ngocct/patch/kdb-v4.4-2.6.24-common-2
patch -p1 < /home/ngocct/patch/kdb-v4.4-2.6.24-x86-2

no error or warming to reported.

3. config
make menuconfig
// then I load my old config and change:
CONFIG_KDB=y
Setting this also sets CONFIG_KALLSYMS=y.
CONFIG_KDB_MODULES=n
KDB may be extended, compiling kdb/modules.
CONFIG_KDB_OFF=n
CONFIG_KALLSYMS=y
CONFIG_FRAME_POINTER=y
// save to -> .config

4. Buil kernel
make-kpkg clean
fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers


5. Install The New Kernel
dpkg -i linux-image-2.6.24.3-custom_2.6.24.3-custom-10.00.Custom_i386.deb
dpkg -i linux-headers-2.6.24.3-custom_2.6.24.3-custom-10.00.Custom_i386.deb

// ok and in /boot/gru/menu.lst I saw:
title Ubuntu 8.04.1, kernel 2.6.24.3-custom
root (hd0,2)
kernel /boot/vmlinuz-2.6.24.3-custom root=UUID=1544a9fa-0c0d-4ba8-9903-db7e892e2b77 ro quiet splash
initrd /boot/initrd.img-2.6.24.3-custom
quiet

title Ubuntu 8.04.1, kernel 2.6.24.3-custom (recovery mode)
root (hd0,2)
kernel /boot/vmlinuz-2.6.24.3-custom root=UUID=1544a9fa-0c0d-4ba8-9903-db7e892e2b77 ro single
initrd /boot/initrd.img-2.6.24.3-custom


6. Reboot

sudo reboot

7. Problem

apter reboot I check the kdb status ( in user-mode).
cat /proc/sys/kernel/kdb
// screen :
1
I login as root then invoke the kdb by press Pause on keyboard, but the kdb don't invoke. The system is halted and two lamp Caps Lock and Scroll Lock is blinking. I must hard reset.


Please help me to fix this problem and can debugging my kernel by kdb.

Thank a lot !

Last edited by ngocct; 23rd December 2008 at 08:52. Reason: fix spelling as I type
Reply With Quote
Sponsored Links
  #2  
Old 23rd December 2008, 15:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Any errors in your logs or in the output of
Code:
dmesg
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
ngocct (25th December 2008)
  #3  
Old 15th April 2010, 09:56
snayak1 snayak1 is offline
Junior Member
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hi
I am also facing similar problem as described above.

Can anyone please help me out ??
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ispconfig IE7 Xen aurelius Installation/Configuration 8 19th October 2008 11:46
Google Apps dayjahone General 19 29th March 2008 18:25
/tmp filled with clamav files --> user over quota ArnOS Installation/Configuration 28 15th March 2008 10:19
ISPConfig 2.2.14 released till General 48 20th July 2007 00:46
WG311v2 almost working with Edgy (w/o ndiswrapper) need help with the rest caudata Server Operation 11 13th November 2006 21:02


All times are GMT +2. The time now is 22:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.