User`s guide
12 – Red Hat Linux Driver Installation
Installing the Driver
12-2 FC2354601-00 E
Q
12.3.1
Building a Custom Kernel to Load the Driver Automatically
The kernel automatically loads the qla2x00 driver at boot time if you include it in a
custom kernel. This process is supported only on Red Hat 7.1 and 7.2. The kernel
source tree is referenced as /usr/src/linux. Under the RedHat distribution, the
directory path is /usr/src/linux-2.4.
Before building a custom kernel, do the following:
n Verify that both kernel-headers and kernel-source RPMs are already installed
by typing the following:
# rpm -qa | grep kernel
n If the kernel-headers and kernel-source RPMs are not installed, install them from
the Red Hat distribution CD-ROM by typing the following commands:
# rpm -i kernel-source*
# rpm -i kernel-headers*
Perform the following steps to build a custom kernel:
1. Create a new QLogic directory under the kernel source tree, then copy the
qla2xxxsrc-vx.yy.tgz file from the driver disk you created in section 12.2 to the
new directory. Extract the driver source and additional information files from
the .tgz file. Finally, remove Makefile, the contents of which are not needed
when building a custom kernel, and copy the information from Makefile.kernal
into Makefile, which is read at boot time. For example:
# mkdir /usr/src/linux/drivers/scsi/qla2xxx/
# cd /usr/src/linux/drivers/scsi/qla2xxx/
# mcopy a:*.tgz . (The period (.) at the end is required.)
# tar -xvzf *.tgz
# rm -f makefile
# cp -f Makefile.kernel Makefile
2. Edit Makefile under the kernel scsi directory. For example:
# cd /usr/src/linux/drivers/scsi
# vi Makefile
a. Locate the following line:
subdir-$(CONFIG_SCSI_AIC7XXX) += aic7xxx