LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (http://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to manually add SATA driver manually when kernel boot? (http://www.linuxquestions.org/questions/linux-kernel-70/how-to-manually-add-sata-driver-manually-when-kernel-boot-662741/)

aixilin 08-14-2008 08:02 AM

How to manually add SATA driver manually when kernel boot?
 
Today I update the kernel from 2.6.8 to 2.6.24 for etch.

After I build and install the new kernel version, it show me errors :

Alert:/dev/sda1 doesn't exist .Dropping to a shell.

I search old post about this problem.

It maybe because the SATA driver was mounted as module.

So I should manually add it to some configure file so that it can work as kernel boot.

But which file should be changed >?? .config or menu.lst or fstab??

Anybody can help me ??

aixilin 08-14-2008 12:21 PM

I think the reason is I use the old config file to configure the new kernel. So it can not find drivers for SATA.


I add libata,sata_via,ata_piix,sd_mod,scsi_mod to /etc/modules and restart.

It still has same problem.


Then I add libata,sata_via,ata_piix,sd_mod,scsi_mod to /etc/mkinitrd/modules, and do :

mkinitrd -o /boot/initrd.img.2.6.24-custom 2.6.24-custom

It show me there is no libata and sata_via,etc..

So I think I need install these modules manually.


I go to /usr/src/drivers/

I find above module's source file...


How could I compile the driver for SATA???

Quakeboy02 08-14-2008 01:11 PM

Don't know what I was thinking, but my original post was all wrong, so I've deleted it.

aixilin 08-14-2008 01:20 PM

Quote:

Originally Posted by Quakeboy02 (Post 3247642)
Don't know what I was thinking, but my original post was all wrong, so I've deleted it.


Tks for your reply,unfortunately I didn't see your post..


Now the problem is how to compile the SATA driver in the linux source file to get .ko file.

If you have some suggestions ,please tell me..

Quakeboy02 08-14-2008 01:24 PM

OK, I think I've got it right this time. I believe it was kernel 2.6.16 when they changed the naming convention for the SATA stuff in the .config file. So:

In 2.6.8 you will see something like this for the SATA_SIL controller:
CONFIG_SCSI_SATA_SIL=m


In 2.6.24 it would need to be:
CONFIG_SATA_SIL=m

Notice that the change is that they deleted "SCSI" from the string. Change yours wherever you see "CONFIG_SCSI_SATA" to "CONFIG_SATA" and see if that fixes it for you.

NOTE: The string "CONFIG_SCSI" is valid for SCSI devices, but "CONFIG_SCSI_SATA" is not, so be careful what you change.

Added:
You will have to recompile for this to take effect.

aixilin 08-15-2008 07:30 AM

Quote:

Originally Posted by Quakeboy02 (Post 3247658)
OK, I think I've got it right this time. I believe it was kernel 2.6.16 when they changed the naming convention for the SATA stuff in the .config file. So:

In 2.6.8 you will see something like this for the SATA_SIL controller:
CONFIG_SCSI_SATA_SIL=m


In 2.6.24 it would need to be:
CONFIG_SATA_SIL=m

Notice that the change is that they deleted "SCSI" from the string. Change yours wherever you see "CONFIG_SCSI_SATA" to "CONFIG_SATA" and see if that fixes it for you.

NOTE: The string "CONFIG_SCSI" is valid for SCSI devices, but "CONFIG_SCSI_SATA" is not, so be careful what you change.

Added:
You will have to recompile for this to take effect.

You are really great....!!!!

Thanks a lot ..That's it ...

Quakeboy02 08-15-2008 10:36 AM

Quote:

Originally Posted by aixilin (Post 3248424)
You are really great....!!!!

Thanks a lot ..That's it ...

Glad I could help. :)


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