Q-Logic SANblade 2300 Marine RADAR User Manual


 
9 Red Hat Linux Driver Installation
Building a Driver from the Sources
9-12 FC2354601-00 A
To load the qla2300 driver, do one of the following:
For Red Hat Linux 6.2 and 7.0, copy qla2300.o to /lib/modules/<kernel
release version>/scsi directory. For Red Hat Linux 7.1 and 7.2, copy
qla2300.o to /lib/modules/<kernel release version>/drivers/scsi directory.
Update the dependency file.
You can either run depmod 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/scsi/scsi_mod.o
Type the following command:
# modprobe qla2300
Under the directory that contains the qla2300.o file, type:
# insmod qla2300.o
Type the following to unload the qla2x00 driver manually:
# modprobe r qla2300
9.5
Building a Driver from the Sources
If your Linux kernel version does not match the one built by QLogic prebuilt driver
binaries, you need to build the driver in your configuration locally. To build a
single-processor or uniprocessor (UP) version of the qla2x00 or qla2300 driver, see
section 9.5.1. To build a symmetric multiprocessor (SMP) version of the qla2x00 or
qla2300 driver, see section 9.5.2.
9.5.1
Building a Uniprocessor Version of the Driver
Perform the following steps to build a uniprocessor version of the qla2x00 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. Using the source code driver floppy disk you created in section 9.2.3, copy
the qla2x00src-x.xx.tgz file to the /home/qla2x00 directory.
# cd /home
# mkdir qla2x00
# cd /home/qla2x00
# mcopy a:*.tgz . (The period [.] at the end is required.)
# tar -xvzf qla*.tgz