User`s guide

5 – Red Hat Linux Driver Installation
Installing the Driver
5-6 PRELIMINARY IS0053302-00 7
Q
5.3.5
Building a Custom Kernel with the QLogic Driver
Should this section be in the manual? This is new to me. Also, how do these
instructions fit with the rest of this section? Is this procedure instead of, or in addition
to, building a UP or SMP version of the driver?
Since it is not feasible to construct a single set of kernel build instructions for every
possible hardware or software configuration, this section provides an example of
how to compile the driver into the Linux kernel. You may have to make some
adjustments in the procedure for your particular system hardware or software
configuration.
This process is only supported in Red Hat versions 8, 9, and Advanced Server 2.1.
In the following sections, the kernel source tree is referenced as /usr/src/linux. Under
the Red Hat distribution, the normal directory path is /usr/src/linux-2.4.
5.3.5.1
Prerequisites
Verify that both kernel-headers and kernel-source RPMS are already installed by
typing the following:
# rpm -qa | grep kernel
If the kernel-headers and kernel-source RPMs are not installed, install them from
the distribution CD by typing:
# rpm -i kernel-source* (Not required for Red Hat 9.)
# rpm -i kernel-headers* (Not required for Red Hat 9.)
5.3.5.2
Building a Custom Kernel to Load the Driver
The following instructions provide an example of how to build a custom kern to load
the driver.
1. Create a directory under kernel source tree. Using the driver disk created in
section 5.2, copy the qla4xxxsrc-vx.xx.tgz file to the directory and extract the
files. For example:
# mkdir /usr/src/linux/drivers/scsi/qla4xxx/
# cd /usr/src/linux/drivers/scsi/qla4xxx/
# mcopy a:*.tgz . (The period (.) at the end is required.)
# tar -xvzf *.tgz
# rm -f Makefile
# cp -f Makefile.kernel Makefile
2. Edit the Makefile under the kernel scsi directory. For example:
# cd /usr/src/linux/drivers/scsi
# vi Makefile