LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   upgrade kenrel 2.6.18-6-686 -->2.6.20.8 - Waiting for root file system SCSI & SATA (https://www.linuxquestions.org/questions/debian-26/upgrade-kenrel-2-6-18-6-686-2-6-20-8-waiting-for-root-file-system-scsi-and-sata-694527/)

powah1234 01-02-2009 12:32 PM

upgrade kenrel 2.6.18-6-686 -->2.6.20.8 - Waiting for root file system SCSI & SATA
 
hello,

I'm trying to recompile my kernel with debian.
I have copied /boot/config for my new kernel configuration.

When i have choosed load a configuration file in menuconfig, i see few errors that tells me there is a problem with my sata hard drive.

After a few search on internet, i saw that section for sata have changed in sata sections.Also, i have decided to activate all in the menuconfig in hard with Y option.


My first question is, how to know which driver to activate instead of activate all ?


My second question : what is the best options ? module [M] or hard[*]




After have activate all options in device drivers sata section, i have recompiled all.

But at reboot, i have this message :

Code:

Waiting for root file system ... then
alert! dev/sda1 does not exist. dropping to a shell.

for information,


config file for 2.6.20.8 (work)

Code:

tux:/boot# cat config-2.6.18-6-686 |grep -i sata
# CONFIG_BLK_DEV_IDE_SATA is not set
CONFIG_SCSI_SATA=m
CONFIG_SCSI_SATA_AHCI=m
CONFIG_SCSI_SATA_SVW=m
CONFIG_SCSI_SATA_MV=m
CONFIG_SCSI_SATA_NV=m
CONFIG_SCSI_SATA_QSTOR=m
CONFIG_SCSI_SATA_PROMISE=m
CONFIG_SCSI_SATA_SX4=m
CONFIG_SCSI_SATA_SIL=m
CONFIG_SCSI_SATA_SIL24=m
CONFIG_SCSI_SATA_SIS=m
CONFIG_SCSI_SATA_ULI=m
CONFIG_SCSI_SATA_VIA=m
CONFIG_SCSI_SATA_VITESSE=m

config file for 2.6.20.8 (doesnt work)

Code:

tux:/boot# cat config-2.6.20.8 |grep -i sata
CONFIG_BLK_DEV_IDE_SATA=y
CONFIG_SATA_AHCI=y
CONFIG_SATA_SVW=y
CONFIG_SATA_MV=y
CONFIG_SATA_NV=y
CONFIG_SATA_QSTOR=y
CONFIG_SATA_PROMISE=y
CONFIG_SATA_SX4=y
CONFIG_SATA_SIL=y
CONFIG_SATA_SIL24=y
CONFIG_SATA_SIS=y
CONFIG_SATA_ULI=y
CONFIG_SATA_VIA=y
CONFIG_SATA_VITESSE=y


I really don't understand ! why it doens't work ?
Have i forget an option ?

Thanks in advance

Dutch Master 01-02-2009 01:39 PM

If you want Linux to boot from an SATA disk you'll need to configure SATA support into the kernel and the initrd image for that kernel (but that happens automatically when you build it, IIRC) It should not be a module!

In any case, the 2.6.20 kernel is old, my advise is to get latest stable kernel (2.6.28) from the kernel.org guys and use that instead. This kernel is more secure and supports more devices then the old 2.6.20 branch you're using now.

Quakeboy02 01-02-2009 01:52 PM

Did you change your device.map? It's been a long time since I crossed 2.6.18 boundary, but I think I had to change the device.map to /dev/sda. You'll need CONFIG_SCSI set, of course. From my config:
Code:

CONFIG_SCSI=m
CONFIG_SATA_AHCI=m

Oh, and you'll need CONFIG_ATA, as well, I think.

Jongi 01-04-2009 02:57 PM

did 2.6.18-6-686 differentiate between sata and pata?

kallel 05-14-2009 05:53 AM

I had the same problem when I tried to compile kernel 2.6.20 on my debian kernel 2.6.18.
The problem is related to the SATA disk driver. you have to configure your sata disk driver before compilation.
to do: in make menu config go to :
1- Device Drivers --->
2- Serial ATA (prod) and Parallel ATA (experimental) drivers --->
3- select the "<M> ATA device support"
4- select your sata disk related modules or select all modules
and then continue your compilation

KALLEL


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