User`s guide

12 – Red Hat Linux Driver Installation
Installing the Driver
FC2354601-00 E 12-5
Q
After building a UP or SMP version of the driver, you must load the driver by one of
the following methods:
n Manually (see section 12.3.2.3)
n Through a RAMDISK image, which you must build (see section 12.3.2.4).
12.3.2.1
Building a Uniprocessor (UP) Version of the Driver
Perform the following steps to build a UP version of the qla2xxx driver:
1. Extract the kernel-header and kernel-source RPM files from the first Red Hat
CD-ROM.
# cd /mnt/cdrom/RedHat/RPMS
# rpm -iv kernel-headers*.rpm
# rpm -iv kernel-source*.rpm
2. Prepare source headers by changing to the kernel source directory. For
example:
# cd /usr/src/linux-2.4
3. Configure additional support. First, type the following command to access the
Main Menu:
# make menuconfig
a. From the Main Menu, select SCSI Support and press ENTER.
b. From the SCSI Support menu, select SCSI Generic Support and press
the SPACEBAR twice.
c. Select Exit to exit the Main Menu.
The system prompts Do you wish to save your new kernel configuration?
Select Yes. The system saves a new config file .config in the current
directory.
4. Under the kernel source directory, type the following:
# make dep
5. Create a new directly, /qla2x00. Using the disk created in section 12.2, copy
the qla2x00src-vx.yy-fo.tgz file to /qla2x00 and extract the files. For example:
# mkdir qla2x00
# cd qla2x00
# mcopy a:*.tgz . (The period (.) at the end is required.)
# tar -xvzf *.tgz
6. Build the driver qla2300.o from the source code by typing:
# make all OSVER=linux-2.4
NOTE: Refer to Makefile for additional supported command line parameters.