Adding SATA/SCSI drivers to /boot/initrd.2.4.18-14.img
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat General > Adding SATA/SCSI drivers to /boot/initrd.2.4.18-14.img




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Adding SATA/SCSI drivers to /boot/initrd.2.4.18-14.img  
Dennis Peere


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-24-04 12:09 AM

Dear All,

I'm (still) trying to perform a  harddrive installation of RH8.0 (2.4.18-14)
on a SATA disk with a Promise SATA TX2Plus controller.
The problem is that the kernel doesn't recognize the controller at boot.
To solve this problem I've added the correct "driver" pdc-ultra.o to the
initrd that is used during the installation and changed the pcitable.
My system now installs correctly but after reboot I get the following error
message :
VFS: Cannot open root device "LABEL=/" or 00:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 00:00

This is because the pdc-ultra.o isn't included in the initrd.2.4.18-14.img.
Can someone please tell me how to add this file to the .img ?
I was able to add the file to the initrd.img of a boot floppy so I can acces
my installed system to test.

I tried the following procedure but it doesn't seem to work :
cp /boot/initrd-2.4.18.14.img /tmp
cd /tmp
mkdir initrd
mv initrd-2.4.18.14.img initrd-2.4.18.14.gz
gunzip initrd-2.4.18.14.gz
mount -o loop initrd-2.4.18.14 initrd
cp pdc-ultra.o /tmp/initrd/lib
cp scsi_mod.o /tmp/initrd/lib
cp sd_mod.o /tmp/initrd/lib

I inserted the following lines in /tmp/initrd/linuxrc before it starts
mounting file systems:
echo "Load scsi_mod module"
insmod /lib/scsi_mod.o
echo "Load sd_mod module"
insmod /lib/sd_mod.o
echo "Loading Promise module"
insmod /lib/pdc-ultra.o

cd /tmp
umount initrd
gzip initrd-2.4.18.14
mv initrd-2.4.18.14.gz initrd-2.4.18.14.img
cp -f /tmp/initrd-2.4.18.14.img /boot/initrd-2.4.18.14.img

After a reboot I get the message :
RAMDISK: Compressed image found at block 0

I hope someone can tell me where I went wrong...
Regards,

Dennis










[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:34 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum 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
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register