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]
# cd /boot
# cp initrd-[
kernel version
].img initrd-[
kernel version
].img.bak
3. Rebuild the initrd image by issuing the following commands:
# mkinitrd -f initrd-[
kernel version
].img `uname -r`
4. Reboot to boot from the new initrd image and new driver.
NOTE:
Depending on the server hardware, the RAMDISK file name may be different.
Building the iSCSI Adapter Driver for SLES 10 SP3 and SLES 11
Building and Installing the Adapter Driver
1. Go to the directory that contains the source driver file,
qla4
xxx
-v
x.xx.xx.xx.xx.xx
-d
x
.tar.gz
.
2. Enter the following commands:
# tar -xzvf qla4
xxx
-v
x.xx.xx.xx.xx.xx
-d
x
.tar.gz
# cd qla4
xxx
-
x.xx.xx.xx.xx.x
-d
x
3. Build and install the driver modules from the source code by executing the
build.sh
script as follows:
# ./extras/build.sh install
4. The
build.sh
script does the following:
Builds the driver
.ko
files
Copies the
.ko
files to the appropriate directory:
/lib/modules/2.6.../updates
Adds the appropriate directive in the
modprobe.conf
(if applicable)
5. To build the iSCSI IOCTL Driver for SLES 10 SP3 and SLES 11, issue the following commands:
# tar xvzf qisioctl-src-v
x.xx.xx
-d
x
.tar.gz
# cd qisioctl-src-v
x.xx.xx
-d
x
# ./build.sh install
Manually Loading the Adapter Driver
1. To load the driver, use one of the following methods:
To load the driver directly from the local build directories, issue the following command:
# insmod /lib/modules/2.6.../updates/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 using the modprobe command as follows:
# modprobe -r qisioctl
3. To unload the driver using modprobe, enter the following command: