LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-14-2008, 01:17 PM   #1
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Rep: Reputation: 15
How could I compile the driver for SATA manually?


When I upgrade the kernel to new version 2.6.24, I get errors like :


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

Then the screen show me Body-box tool.


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, 02:59 PM   #2
bwayson
LQ Newbie
 
Registered: Nov 2006
Location: Ventura California USA
Distribution: openSUSE
Posts: 23

Rep: Reputation: 3
You're making good progress. The drivers may already be compiled. Look in a location similar to /lib/modules/2.6.24/kernel/drivers/ata/ for files similar to sata_via.ko.

I think you probably need to figure out how to include the necessary sata driver in your initrd. I'm not a mkinitrd expert, so start with "man mkinitrd". Unless you overwrite the initrd file that etch installed (after you have made a backup copy), you will need to modify /boot/grub/menu.lst (if your bootloader is grub) or /etc/lilo.conf (if your bootloader is lilo) to tell the bootloader to load your custom initrd file and not etch's standard one. Good luck -- you are doing well.
 
Old 08-14-2008, 03:25 PM   #3
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
This thread is a dupe. I believe I've finally figured it out and answered in the other thread.
 
Old 08-15-2008, 07:40 AM   #4
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bwayson View Post
You're making good progress. The drivers may already be compiled. Look in a location similar to /lib/modules/2.6.24/kernel/drivers/ata/ for files similar to sata_via.ko.

I think you probably need to figure out how to include the necessary sata driver in your initrd. I'm not a mkinitrd expert, so start with "man mkinitrd". Unless you overwrite the initrd file that etch installed (after you have made a backup copy), you will need to modify /boot/grub/menu.lst (if your bootloader is grub) or /etc/lilo.conf (if your bootloader is lilo) to tell the bootloader to load your custom initrd file and not etch's standard one. Good luck -- you are doing well.
To solve this problem , one method is compile it manually, another method is change .config file before "menuconfig"

I still don't know how to compile the module and let the kernel find it correctly.
So I just can try second method..

Many tks to Quakeboy02. He told me the solution for this problem.
The problem is driver's name is changed in 2.6.2*.
For example , the CONFIG_SCSI_ATA in config-2.6.8 was changed to CONFIG_ATA in config-2.6.24.
Before I use old configure file ,I should rename the modules which were needed by SATA.


Tks for you reply..
 
Old 08-15-2008, 07:40 AM   #5
aixilin
LQ Newbie
 
Registered: Aug 2008
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Quakeboy02 View Post
This thread is a dupe. I believe I've finally figured it out and answered in the other thread.

Yes, sorry for redo it here..

Appricate for your answers..

I get it now...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to manually add SATA driver manually when kernel boot? aixilin Linux - Kernel 6 08-15-2008 10:36 AM
sata drive no longer mounting automatically (but will mount manually) henno Slackware 1 05-20-2006 09:01 AM
How do you manually install Nvidia driver? Micro420 SUSE / openSUSE 2 09-24-2005 04:57 AM
Problems w/ manually add. a driver at install. time Toshi3 Linux - General 0 09-13-2004 11:35 PM
how to uninstall manually compile software? dejavu_01 Slackware 4 05-13-2004 06:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:40 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