LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-19-2006, 06:18 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 48
How to Debug Linux Kernel Boot process


Hi,

I am trying to enable DMA modes for my Hard drives by compiling the 'AMD and Nvidia IDE Chipset' option under Device Drivers->ATA/ATAPI/MFM/RLL support in 'make xconfig'. Now when I boot my system with drivers built into the kernel nothing happens. The system boots normally but the hard drivers does not dectect the drivers required for DMA support. So is there a way where I can see why it is not able to load/detect those drivers by enabling some kind of debugging during the Linux Kernel boot process?

I am using Debian etch with kernel 2.6.16.

Thanks
 
Old 06-20-2006, 07:50 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
In the 2.4 kernel there was an option you had to set in xconfig if you wanted DMA to be automatically selected by the kernel at boot time. This is true independent of what hardware/modules you are using. Otherwise an init script had to handle it. I am guessing that this is true for 2.6 also.

If you compiled these as modules (rather than directly into the kernel), you can see if those modules have been loaded using the command lsmod.

There are probably some boot time messages in /var/log/messages or other log files in /var/log.
 
Old 06-20-2006, 02:56 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by blackhole54
In the 2.4 kernel there was an option you had to set in xconfig if you wanted DMA to be automatically selected by the kernel at boot time. This is true independent of what hardware/modules you are using. Otherwise an init script had to handle it. I am guessing that this is true for 2.6 also.

If you compiled these as modules (rather than directly into the kernel), you can see if those modules have been loaded using the command lsmod.

There are probably some boot time messages in /var/log/messages or other log files in /var/log.
I have already done what you have suggested and I am struggling for the last 1 week to get it work. When I do the lsmod I can see the module loaded but still it seems that my IDE drive is not aware of it. That's why I would like to debug the instance "When the module gets loaded" during the boot time. What is the most efficient and accurate way to do that?

Thanks once again for replying.
 
Old 06-20-2006, 10:44 PM   #4
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Have you looked at this thread (particularly post #8)?

http://www.linuxquestions.org/questi...d.php?t=298024
 
Old 06-22-2006, 07:30 PM   #5
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by blackhole54
Have you looked at this thread (particularly post #8)?

http://www.linuxquestions.org/questi...d.php?t=298024
Yes dude I have already done loads of researching on the Internet and I think it a BIOS issue so I would first like to debug the module and see what values do it hold when the Kernel tries to load it.

Thanks once again.
 
  


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
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 05:21 PM
How to use gdb to debug child process? ariana Programming 2 05-03-2005 02:50 PM
Debug Linux kernel in vmware (two machines in vmware)?? cyu021 Programming 0 03-30-2005 08:46 PM
Boot process stops after custom kernel build FuzzyDuc Debian 3 11-28-2004 07:47 AM
How to debug a child process? koyi Programming 3 09-11-2003 06:23 AM


All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
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