User`s guide
12 – Red Hat Linux Driver Installation
Installing the Driver
12-4 FC2354601-00 J
Q
5. Create a new directory, /qla2x00. Using the driver disk created in section 12.2,
copy the qla2x00-vx.yy.zz-dist.tgz file to /qla2x00 and extract the files. For
example:
# mkdir qla2x00
# cd qla2x00
# mount /mnt/floppy
# cp /mnt/floppy/*.tgz . (The period (.) at the end is required.)
# tar -xvzf *.tgz
# cd qlogic
# ./drvrsetup (This step extracts the driver source files into the current
directory.)
6. Build the qla2300.o driver from the source code by typing:
# make all SMP=1 OSVER=linux-2.4
NOTE: Refer to Makefile for additional supported command line parameters.
After building an SMP version of the driver, you must load the driver by one of the
following methods:
■
Manually (see section 12.3.3)
■
Through a RAMDISK image, which you must build (see section 12.3.4)
12.3.3
Loading the Driver Manually
Before loading the driver manually, you must build a UP or SMP version of the driver,
as described in sections 12.3.1 and 12.3.2.
To load the driver directly from the local build directory, type the following:
# insmod qla2300.o
To load the driver using modprobe, follow these steps:
1. Copy driver binary files. Type the following:
# cp qla2300.o /lib/modules/<kernel
version>/kernel/drivers/scsi/
2. Update the module dependency file. You can either enter the
depmod -a
command or make sure that the following line is in the /lib/modules/<kernel
release version>/modules.dep file:
/lib/modules/<kernel version>/kernel/drivers/scsi/qla2300.o: \
/lib/modules/<kernel version>/kernel/drivers/
3. Type the following to load the driver:
# modprobe qla2300