9 – Red Hat Linux Driver InstallationBuilding a Driver from the Sources9-12 FC2354601-00 ATo load the qla2300 driver, do one of the following: For Red Hat Linux 6.2 and 7.0, copy qla2300.o to /lib/modules/<kernelrelease version>/scsi directory. For Red Hat Linux 7.1 and 7.2, copyqla2300.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.oType the following to unload the qla2x00 driver manually:# modprobe –r qla23009.5Building a Driver from the SourcesIf your Linux kernel version does not match the one built by QLogic prebuilt driverbinaries, you need to build the driver in your configuration locally. To build asingle-processor or uniprocessor (UP) version of the qla2x00 or qla2300 driver, seesection 9.5.1. To build a symmetric multiprocessor (SMP) version of the qla2x00 orqla2300 driver, see section 9.5.2.9.5.1Building a Uniprocessor Version of the DriverPerform 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 RedHat CD-ROM.# cd /mnt/cdrom/RedHat/RPMS# rpm -iv kernel-headers*.rpm# rpm -iv kernel-source*.rpm2. Using the source code driver floppy disk you created in section 9.2.3, copythe 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