System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding cciss Module to RHEL 4 U 4

 
Ganesh Balraman
Regular Advisor

Adding cciss Module to RHEL 4 U 4

Hi All ,

I am trying to install RHEL4 update 4 (kernel-2.6.9-5.EL) on HP Prolaint DL380 G5 .
while installing its not detecting the Hard Drive
DL380 G5 having HP Smart Array P400 controller and RHEL4 update 4 dos not contain this driver.

then i downloaded HP Smart Array driver "cpq_cciss-2.6.18-5.rhel4.i686.dd"
form http://h18004.www1.hp.com/support/files/server/us/download/27501.html


during installation i have provied the driver disk at boot prompt
boot : linux dd


using this driver disk i have successfully install RHEL4 update 4 on DL380 G5

its working fine .


now i am tring to insert cciss.ko driver module on initrd.img so that i can install RHEL4 on DL380 G5 with out providing the driver disk , means it will take the driver automatically .


I followed the following steps :

A ) extract the "cpq_cciss-2.6.18-5.rhel4.i686.dd.gz"

gunzip cpq_cciss-2.6.18-5.rhel4.i686.dd.gz

mount -o loop cpq_cciss-2.6.18-5.rhel4.i686.dd /mnt/scsi

mkdir /drivers

cp /mnt/* /drivers

cd /drivers

gunzip -S .cgz modules.cgz

cpio -ivd < modules

umount /mnt/scsi

so /drivers contains the following files.
modinfo
modules.pcimap
pcitable
modules.dep
rhdd
2.6.9-6.EL ( directory contains the cciss.ko driver module for HP Smart Array P400 controler)

B ) Insert cciss.ko into initrd.img and edit module-info , modules.dep , modules.pcimap , pcitable


# get the initial ramdisk image out of the RHEL4 update disk CD1

mkdir /CD1

#extract the RHEL4 iso file into /CD1

mkdir /image

cp /CD1/isolinux/initrd.img /image

cd /image

gzip -dc initrd.img > initrd.data # decompress it

# mount the ramdisk so you can access it's contents.

mount -o loop initrd.data /mnt/temp

# so we have a working copy of the compressed modules.

cp /mnt/temp/modules/modules.cgz /image

# extract the modules, which hide in a compressed cpio

gzip -dc modules.cgz > modules.cpio

# extract the modules in the ramdisk

cpio -idv < modules.cpio


# Put the HP Smart Array P400 module cciss.ko in with
the other modules. The source of your driver will vary depending on where
you get it from as mentioned earlier, but it should be in a proper kernel version
folder in the cciss driver download.

cp -p /drivers/2.6.9-5.EL/cciss.ko /image/2.6.9-5.EL/i686/

find 2.6.9-5.EL/ -depth -print | cpio -ov -H crc > modules.cpio # compress it in .cpio

gzip -c9 modules.cpio > modules.cgz # and compress it .cgz


cp -p modules.cgz /mnt/temp/modules # Put your compressed modules back in the image.


vim /mnt/temp/modules/module-info # edit the entry for the cciss to be for cciss and a text description.
cciss

scsi

"Update HP CCISS driver"


vim /mnt/temp/modules/pcitable # from the editor add the following and save:

0x103c 0x3220 "cciss" "CPQ|SAP6xx"
0x103c 0x3223 "cciss" "CPQ|SAP8xx"
0x103c 0x3230 "cciss" "CPQ|SAP4xx"
0x103c 0x3233 "cciss" "CPQ|SAE5xx"
0x103c 0x3238 "cciss" "CPQ|SAE2xx"


vim /mnt/temp/modules/modules.pcimap # from the editor add the following and save:
# pci module vendor device subvendor subdevice class class_mask driver_data
cciss 0x00000e11 0x0000b060 0xffffffff 0xffffffff 0x00000000 0x00000000 0x00000001
cciss 0x00000e11 0x0000b178 0xffffffff 0xffffffff 0x00000000 0x00000000 0x00000001
cciss 0x00000e11 0x00000046 0xffffffff 0xffffffff 0x00000000 0x00000000 0x00000001

vim /mnt/temp/modules/pci.ids # from the editor add the following line

0x103c Hewlett Packard Company
3223 Smart Array P800 Controller
3230 Smart Array P400 Controller
3233 Smart Array E500 Controller
3238 Smart Array E200 Controller



umount /mnt/temp # unmount the initrd.data now that you're done with it.

gzip -c9 initrd.data > initrd.img # compress the ramdisk back into image format.

cp -p initrd.img /CD1/isolinux/ # copy the modified ramdisk image back onto your rhel4 source disk 1.



#Create the ISO Image

mkisofs -R -J -T -no-emul-boot -boot-load-size 4 -boot-info-table -V "RHEL4-ES-U4-Disk1" -b isolinux/isolinux.bin -c isolinux/boot.cat -o RHEL4-ES-U4-Disk1.iso CD1


Now i have RHEL4-update4 disk which contains the HP Smart Array P400 controller driver module .


using this RHEL4-ES-U4-Disk1 i tried to devloyed on DL380 G5 .


while installing its detecting the Hard Drive and i am able to install linux successfully .


But the problem i am facing is that :

when i reboot the system after reboot its not loading the linux OS

the error messege i am getting
Red Hat nash version 4.1.18 starting
mkrootdev: label / not found

mount : error 2 mounting ext2
mount : error 2 mounting none
switchroot : mount faild 22

umount /initrd/dev faild 2

kernel panic not syncing






#Then i updated the in /CD1/RedHat/base/stage2.img


cd /image
mkdir /mnt/stage

mount -o loop stage2.img /mnt/stage

mkdir /image/stage-work
cd /mnt/stage
tar -cvf /image/stage2.tar .

cd /image/stage-work

tar -xvf /image/stage2.tar

cp -a /mnt/temp/modules/* /image/stage-work/modules/

mkcramfs stage-work/ stage2.img


cp stage2.img /CD1/RedHat/base/


Again i recreate the ISO and tried to install But i am getting the same error



Any help will be apreciated
5 REPLIES
TY 007
Honored Contributor

Re: Adding cciss Module to RHEL 4 U 4

Hello Ganesh,

>> mkrootdev: label / not found

Boot to Rescue Mode

Edit /etc/fstab

Replace "LABEL=/" with the Partition or Logical Volume Name.

Thanks
Ganesh Balraman
Regular Advisor

Re: Adding cciss Module to RHEL 4 U 4

in linux rescue mode i edited the file
/etc/fstab
/dev/cciss/c0d0p3 / ext3 defaults 1 1



(c0d0p3 is the root / partition)

and rebooted the system

again it is not working same kernel panic error


i think the steps i am following to include the driver is not correct

can you provide any link or document for the same
TY 007
Honored Contributor

Re: Adding cciss Module to RHEL 4 U 4

Hello Ganesh,

Previous Error?
>> Red Hat nash version 4.1.18 starting
>> mkrootdev: label / not found
>> mount : error 2 mounting ext2
>> mount : error 2 mounting none
>> switchroot : mount faild 22
>> umount /initrd/dev faild 2
>> kernel panic not syncing

How about Latest Error? "label / not found" error message still exist?

Try again in Rescue Mode, replace all "LABEL=xx" entries with appropriate Partition or Logical Volume Name.

After above, post the Latest Boot Error Message & /etc/fstab content.

Thanks
David Claypool
Honored Contributor

Re: Adding cciss Module to RHEL 4 U 4

I just installed a ProLiant DL380G5 with RHEL4U4 and didn't need any additional disks. According to http://www.hp.com/go/proliantlinux --> Red Hat --> Certifications, this box is supported with RHEL4U2 when dual-core processors are involved and RHEL4U4 when quad-core is in the box.
Al_56
Regular Advisor

Re: Adding cciss Module to RHEL 4 U 4

l had the same issue a while ago with RHEL 4.4 64 bit.

Tried to install 5 - 6 times without success.

In the end it was bad media (RHEL DVD) that caused the problem. l just reburnt the ISO and it installed correctly.

Installs fine with kickstart as well.

It's a frustrating problem, but for me it had a quick resolution.

Have you done a full test of the hardware?

Al