LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 12-14-2006, 05:24 AM   #1
unixhack
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
RHEL5 debug kernel


Hello,

I am trying to debug a kernel module, which we ported to RHEL5. I find that /boot does not contain a debug vmlinux. Can someone tell me where to locate the debug kernel and how to drop into the debugger or ensure a dump is taken instead of a plain reboot on panic()'ing?
My /boot contains the following files:-
--------------------------------------------
# ls /boot
config-2.6.18-1.2747.el5 message
grub message.ja
initrd-2.6.18-1.2747.el5.img symvers-2.6.18-1.2747.el5.gz
initrd-2.6.18-1.2747.el5kdump.img System.map-2.6.18-1.2747.el5
lost+found vmlinuz-2.6.18-1.2747.el5
-------------------------------------------
Thanks
UH
 
Old 12-14-2006, 07:22 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
First RHEL5 is not released yet, so your using the beta2 test release based on your info.

Second, you might want to install the kernel src.rpm as Red Hat does not supply built debug kernel rpms. You might want to install the kerenl-devel rpm packages.
 
Old 12-14-2006, 08:20 AM   #3
unixhack
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Fine. I am downloading SRPMS-disc1.iso from redhat.
What do I install and how do I ensure that it drops into kdb when the system panics?

UH
 
Old 12-14-2006, 09:27 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
So it seems that you have not built a kernel before, judging by this query.

As a suggestion please review;

http://www.digitalhermit.com/linux/K...ild-HOWTO.html

Building a kernel for the Red Hat family is a little different from the guide, the steps in order are;

make mrproper
make menuconfig
make
make modules_install
make install

Now for about a year now you also have to prep the kernel source as supplied by Red Hat and family, these steps are covered here;

http://fedora.redhat.com/docs/releas...ata/#sn-kernel

Good luck
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone know whether RHEL5 will ship with PHP5? warning_uk Red Hat 8 09-10-2006 05:15 PM
kernel crash dump: where do I debug? ashlesha Linux - Software 0 08-23-2006 07:53 PM
Driver working with Debug kernel Not with Normal kernel saranjothy Linux - Wireless Networking 1 03-05-2006 09:22 AM
Kernel Panic debug kraydl Linux - General 2 10-31-2005 09:14 AM
[Question]kernel debug/ trace shogun1234 Linux - Newbie 0 09-21-2004 09:40 PM


All times are GMT -5. The time now is 03:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration