LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Kernel options for ICH7 SATA controller? (http://www.linuxquestions.org/questions/linux-from-scratch-13/kernel-options-for-ich7-sata-controller-548887/)

accp-james 04-25-2007 09:50 AM

*RESOLVED* Kernel options for ICH7 SATA controller?
 
*** RESOLVED***

I completed a build for LFS SVN04202007, everything seems to work except that I can't get a working kernel to boot on my system because despite my best efforts I can't seem to get my SATA hard drive detected.

I know the rest of the build process worked because I can simply cp the kernel image and initrd file from my host distro (Fedora Core 6) to the boot folder of my LFS partition and boot it... but my understanding is that everything you can do with a kernel+initrd should be able to be done by building necessary kernel components static instead of as modules?

I have set various SCSI options in the config to Y, set AHCI, ATA and the ata_piix driver as Y, not M... I know the drive is working correctly, as stated, because I can boot using the host distro kernel. Does the initrd do something that I'm not aware of or is there a kernel option that I need that I'm not enabling or... ?

I'd be happy to post snippets of my .config, but I'm not sure which ones are relevant and I would think posting the whole thing would be considered 'rude'. Let me know what you need to know to help me and I"ll provide it :) Thanks!

sparc86 04-25-2007 11:12 AM

Please, post the whole ".config" file. :D

accp-james 04-25-2007 10:48 PM

Got it figured out via trial and error. Apparently I had SCSI generic support enabled as a module, changing that from M to Y took care of it.

Via 'make menuconfig', the following needed to be enabled:

Device Drivers->SCSI
SCSI Device Support
SCSI Disk Support
SCSI Generic Support

Device Drivers->ATA
Serial ATA Support
AHCI Support
Intel PIIX Support

sparc86 04-25-2007 11:24 PM

Quote:

Originally Posted by accp-james
Got it figured out via trial and error. Apparently I had SCSI generic support enabled as a module, changing that from M to Y took care of it.

Via 'make menuconfig', the following needed to be enabled:

Device Drivers->SCSI
SCSI Device Support
SCSI Disk Support
SCSI Generic Support

Device Drivers->ATA
Serial ATA Support
AHCI Support
Intel PIIX Support



Yes, remember, ALWAYS compile the boot disk as built-in, otherwise it can never boot Linux. If you had, for example, an IDE as boot disk, then would be ok if the SCSI one was as module. Got it? :-)

accp-james 04-27-2007 08:57 AM

Yup, knew that. Just didn't realize SCSI Generic was necessary for disk support, always heard of it in reference to using IDE CD-ROM drives with the SCSI interface.


All times are GMT -5. The time now is 04:41 AM.