LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 08-14-2008, 08:02 AM   #1
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Rep: Reputation: 15
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 ??
 
Old 08-14-2008, 12:21 PM   #2
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Original Poster
Rep: Reputation: 15
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???
 
Old 08-14-2008, 01:11 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

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

Last edited by Quakeboy02; 08-14-2008 at 01:16 PM.
 
Old 08-14-2008, 01:20 PM   #4
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quakeboy02 View Post
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..
 
Old 08-14-2008, 01:24 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
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.
 
Old 08-15-2008, 07:30 AM   #6
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quakeboy02 View Post
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 ...
 
Old 08-15-2008, 10:36 AM   #7
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by aixilin View Post
You are really great....!!!!

Thanks a lot ..That's it ...
Glad I could help.
 
  


Reply



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
Add swap partiiton manually? fireball003 Slackware 7 04-09-2007 05:04 PM
Manually add programs into the Gnome Application Browser in 10.2 Hawky SUSE / openSUSE 2 02-22-2007 05:23 PM
Manually add depends to independent *.deb pljvaldez Debian 1 09-21-2006 09:51 PM
Problems w/ manually add. a driver at install. time Toshi3 Linux - General 0 09-13-2004 11:35 PM
how do you add/remove Gnome menu entries manually? randomx Linux - General 2 10-16-2003 10:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:24 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
Open Source Consulting | Domain Registration