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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear All,

I'm (still) trying to perform a kickstart 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 when booting after installation. 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

_________________________________________________________________
Gratis e-mail ? http://www.msn.be/hotmail




[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux