LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2008, 11:30 AM   #1
thehobster
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Is it possible to load a device driver into an offline kernel?


I know that sounds crazy, but I can't figure this one out.

I loaded up a Red Hat EL 4 system, and using the dd Grub option, I was able to load my RAID drivers at install time.

Weeks later, required kernel updates appear after running up2date. Like the newbie I am, I accept them and move on. The next time I boot, the kernel panics. It seems the new kernel doesn't include the RAID drivers (ADPAHCI).

I ended up selecting the OLD kernel to get the system back up and running, but, of course, I need the new kernel to have the RAID driver drivers.

Is there a way to install the RAID driver into the kernel when it's not running?

If not, is there a way to prompt at boot time to load the a RAID driver (a la dd command)?

Thanks...

D.
 
Old 03-24-2008, 12:41 PM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Well, supplying the driver is compiled as a module, you would want to add the driver name to /etc/modules...but then you would have to worry about init-scripts loading at the proper time, and I don't even think they would work, assuming you may need the RAID driver to actually access the boot drive.

Alternately, you could compile the driver into the kernel, but that would mean you need to have the kernel sources available for compiling.
 
Old 03-24-2008, 06:50 PM   #3
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
What’s generally used in this sort of thing is an initrd (initial ramdisk) which has the appropriate drivers for that small amount of time in between using the BIOS and using the kernel to handle RAID.

Perhaps your problem is a broken initrd, in which case you will have to remake it (making sure to specify RAID).
 
  


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
Problem in compiling a char device driver formerly for kernel 2.4 on kernel 2.6 payretep Linux - Newbie 6 09-24-2007 05:43 AM
ejecting I/O to offline device c0mputerking Linux - Software 2 09-10-2007 01:18 PM
To load new display driver in new kernel akauts Linux - Kernel 0 02-14-2007 07:26 PM
Character Device driver: How to load it automatically ? shendeswanand Linux - Software 0 02-09-2006 09:59 PM
automatic driver load & device permissions xtravar Linux - Hardware 0 06-17-2005 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:46 AM.

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