| Linux - Kernel This forum is for all discussion relating to the Linux kernel. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-14-2008, 08:02 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2008
Posts: 28
Rep:
|
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 ??
|
|
|
|
08-14-2008, 12:21 PM
|
#2
|
|
LQ Newbie
Registered: Aug 2008
Posts: 28
Original Poster
Rep:
|
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???
|
|
|
|
08-14-2008, 01:11 PM
|
#3
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
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.
|
|
|
|
08-14-2008, 01:20 PM
|
#4
|
|
LQ Newbie
Registered: Aug 2008
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by Quakeboy02
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..
|
|
|
|
08-14-2008, 01:24 PM
|
#5
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
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.
|
|
|
|
08-15-2008, 07:30 AM
|
#6
|
|
LQ Newbie
Registered: Aug 2008
Posts: 28
Original Poster
Rep:
|
Quote:
Originally Posted by Quakeboy02
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 ...
|
|
|
|
08-15-2008, 10:36 AM
|
#7
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
Quote:
Originally Posted by aixilin
You are really great....!!!!
Thanks a lot ..That's it ...
|
Glad I could help. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:30 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|