Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 07-26-2004, 02:16 PM   #1
LQ Newbie
Registered: Jul 2004
Distribution: Debian
Posts: 1

Rep: Reputation: 0
Custom install initrd for megaide - how to make?

I have an lsi megaide 133-2 raid card with mirrored drives. I'd like to boot of these drives, but the megaide.o has to be included in initrd I believe.

Here is what I tried:
Add a temporary HD on /dev/hda - install debian - compile new kernel, boot new kernel and insert megaide module - debootstrap the new /dev/sd0 raid device - chroot to new install and run base-config/lilo/mkinitrd/etc - remove temp drive and try to boot /dev/sd0.

This failed, lilo spit out 01 01 01. I think it's related to the addressing/bios of the first bootable device.

Here is what I *should* be able to do:
Throw in a stock woody netinst image and a floppy with megaide.o on it and let the (smarter-than-me) installer build an initrd that works. Problem is that there is no stock megaide.o that works, and I can't find an exact image of the source used to compile installation kernels, so I can't build it (even if I could, they are ancient 2.2 crap and I don't think I can even compile that with newer gcc).

So I want to install woody on a system with a HD that I have to pre-compile the drivers for.

Any ideas?
Old 07-27-2004, 05:00 AM   #2
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15

I had a problem like yours (with another brand pci ide-raid controller), you have details in this thread.

Fortunately we had the sources of the driver (ready to work with 2.6 kernels). I compiled it into the kernel (not like a module). And I left a small disk (800 mb) whith /boot partition (and kernel image) and another partition with a minimal debian distribution for rescue purposes. And all the rest of the stuff into the disk attached to the raid controller.

All working OK.

Well, if you have a megaide.o driver, you can copy the file to a floppy and, in the beginning of the debian installation, you can load this driver to have support of the drives attached to the raid controller. Debian insert this megaide.o driver into his default initrd, so you have support of your controller from then.

Hope to help you.


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
Custom initrd for bootable cd deoren Linux - General 13 02-12-2005 11:38 AM
How do I link to my custom during configure/make/install if I am not root? lbermude Linux - Software 2 12-13-2004 08:51 AM
Want to make custom install CD using newest xserver for fx5200 tuckerg76 Red Hat 0 12-29-2003 04:32 PM
Custom Kernel / No INIT / initrd? azl Linux - Newbie 2 11-01-2003 09:32 PM
how to make custom install boot disk? xcp Slackware 0 07-06-2002 02:22 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration