LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-24-2011, 04:31 AM   #1
galapogos
Member
 
Registered: May 2008
Posts: 227

Rep: Reputation: 30
Getting kernel to boot on both IDE and AHCI mode


Hi,

I have a kernel that I downloaded from kernel.org and built myself with all the AHCI options I could find statically built into the kernel as I don't want to use an initrd.

The kernel boots up fine when I select AHCI mode in BIOS. However, when I select IDE, LILO gives a 99 99 99 error. I'm not sure what's wrong but is it due to a lack of IDE drivers in the kernel, even though the drive is a SATA drive?

I would like the kernel to boot in both AHCI or IDE mode if possible.
 
Old 10-24-2011, 07:20 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866
I would recommend to start with the standard configuration for your distro and then adding the AHCI options. I never had any problems on my Slackware boxes when switching the mode, just ran fine anyways.
 
Old 10-24-2011, 11:10 AM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
Post the output of 'lspci -k'.

Why exactly do you need the legacy IDE mode ? AHCI is the best mode to use. For IDE mode you need controller-specific drivers that may be (and often are) buggy.
 
Old 10-24-2011, 11:55 AM   #4
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
@TobiSGD this isn't any distro, it's a custom built kernel.

@H_TeXMeX_H, if I can't even get it to boot in IDE mode, how do I post the output of lspci? Booting up in AHCI mode would only should the AHCI drivers right? Unless, I boot up to a LiveCD that will have the drivers required.

Anyway, the reason is because I'd like the drive to boot up in as many PC configurations as possible, and hence I'd like to handle the case where the user has a system that its BIOS SATA settings set to IDE mode.
 
Old 10-24-2011, 12:00 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
In a terminal type this in and press Enter, then you copy and paste it here:

Code:
lspci -k
Yes, booting in AHCI mode will show the AHCI drivers. However, I can also tell what controller you have and guess the right driver to use. You can also use a live CD, boot in IDE mode, see the driver and built that into the kernel.
 
Old 10-24-2011, 09:48 PM   #6
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
It's an intel P55 chipset and I'm using the integrated SATA controller.

Is there a way to build in drivers such that it works across most modern intel/AMD systems? i.e. the intel ICH/PCH family, whatever AMD uses, and maybe the Marvell/JMicron drivers as well? I remember seeing IDE options in the kernel config, however some have a caveat that they are deprecated and are incompatible with the SATA drivers.

Edit: it's probably a LILO issue instead. I built in all relevant PATA drivers into the kernel, but LILO still gives me continuous "99" error messages. Must be some BIOS setting that it's incompatible with...any ideas? I tried changing from linear to lba32, still no go.

Last edited by galapogos; 10-24-2011 at 10:24 PM.
 
Old 10-24-2011, 11:48 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866Reputation: 4866
Some BIOSes have the option to re-arrange the disks when in IDE mode. May it be possible that LILO can't find its data because of that?
 
Old 10-25-2011, 02:06 AM   #8
galapogos
Member
 
Registered: May 2008
Posts: 227

Original Poster
Rep: Reputation: 30
OK it's actually a hardware problem. I tried it on another drive and it works just fine...I've had other problems with that particular hardware...so I'm not gonna sweat it.

Thanks!
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't install from DVD with AHCI enabled, only IDE quiescere Slackware 3 05-12-2011 03:36 PM
AHCI/IDE configuration not found in BIOS==kernel panic sync shashank.neocfc Linux - Laptop and Netbook 2 10-25-2010 01:26 AM
[SOLVED] Is there a way to use ACPI and not boot in IDE mode for acer timeline 1810tz? kilauea Linux - Laptop and Netbook 4 07-31-2010 07:39 PM
Can't get SATA drive in AHCI mode, stuck with ata_piix Silverpike Linux - Hardware 3 04-07-2010 10:34 PM
Fedora 9x64 AHCI problem - no boot (only CD Rom boot) after install sandaili Fedora 1 06-06-2008 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:02 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration