User`s guide

5 – Red Hat Linux Driver Installation
Installing the Driver
IS0053302-00 7 PRELIMINARY 5-5
Q
Before building a RAMDISK image, you must build a UP or SMP version of the
driver, as described in section 5.3.1 or 5.3.2.
Perform the following steps to load the qla4010 driver using a RAMDISK image:
1. Copy the files to /lib/modules/<kernel version>/kernel/drivers/scsi/ by typing:
# make install
2. Add the following line to /etc/modules.conf:
alias scsi_hostadapter0 qla4010
If there are multiple QLA40104010C HBAs in the system, you must have one
entry for each HBA in the /etc/modules.conf file. For example, if there are two
QLA4010/4010C HBAs in the system, add the following lines:
alias scsi_hostadapter0 qla4010
alias scsi_hostadapter1 qla4010
3. Type the following command to build the RAMDISK image that contains the
qla4010.o module:
# mkinitrd -f <RAMDISK image file name> <kernel version>
For example:
# mkinitrd -f /boot/newinitrd-image.img 2.4.7-10
# mkinitrd -f /boot/newinitrd-image.img 2.4.7-10smp
NOTE: To obtain your kernel version before using the above command, type:
# uname -r
Copy the file to /boot. (remove this sentence? It’s not in the readme file.)
4. Configure the boot loader with the new RAMDISK image.
For LILO, perform the following steps:
a. Add the following line to one of the kernel entry sections in the /etc/lilo.conf
file to use the RAMDISK image:
initrd=/boot/newinitrd-image.img
b. Run LILO by typing the following:
#/sbin/lilo
c. Reboot the system.
For GRUB, perform the following steps:
a. Add the following line to one of the kernel entry sections in the /etc/grub.conf
file to use the RAMDISK image:
initrd /newinitrd-image.img
b. Reboot the system. Select the kernel with the new RAMDISK image.