Linux Driver Installation and Configuration: QLogic QME8242 Mezzanine Card User’s Guide
file:///T|/htdocs/NETWORK/QLogic/71922/en/lin_di.htm[9/26/2012 4:25:33 PM]
3. Build and install the driver modules from the source code by executing the
build.sh
script as follows:
# ./extras/build.sh install
The
build.sh
script does the following:
Builds the driver
.ko
files
Copies the
.ko
files to the appropriate directory:
/lib/modules/2.6.../extra/qlgc -qla4
xxx
Adds the appropriate directive in the
modprobe.conf
(if applicable)
Building the iSCSI IOCTL Driver for RHEL 5.
x
1. Go to the directory that contains the IOCTL package file,
qisioctl-src-vx.xx.xx-kx.tar.gz
.
2. Issue the following commands:
# tar xvzf qisioctl-src-vx.xx.xx-kx.tar.gz
# cd qisioctl-src-vx.xx.xx-kx
3. Build and install the IOCTL module by executing the
build.sh
script as follows:
# ./build.sh install
Manually Loading the Adapter Driver
1. Load the driver using one of the following methods:
To directly load the driver from the local build directory, issue the following commands:
# insmod /lib/modules/2.6.../kernel/drivers/scsi/scsi_transport_iscsi2.ko
# insmod qla4
xxx
.ko
To load the driver using modprobe, issue the following command:
# modprobe -v qla4
xxx
2. To load the qisioctl module using modprobe, issue the following command:
# modprobe -v qisioctl
3. Start the iqlremote daemon by issuing the following command:
# service iqlremote start
Unloading the Adapter Driver
To replace an existing inbox driver with a new out-of-box iSCSI driver, unload the existing driver and load the new driver,
qisioctl module and iqlremote daemon. To unload the driver, stop all applications using the driver and then unload the driver.
1. Stop the iqlremote daemon by issuing the following command:
# service iqlremote stop
2. Unload the qisioctl module, by issuing the following command:
# modprobe -r qisioctl
3. To unload the driver using modprobe, issue the following command:
# modprobe -r qla4
xxx
Rebuilding the RAM Disk with the New Driver
1. Edit the
/etc/modprobe.conf
file and add the following entry (if it is not present):
alias scsi_hostadapterX qla4
xxx
Where
X
is based on the order of the SCSI modules being loaded.
2. To create a backup copy of the RAM disk image, issue the following commands: