Dell QLogic Family of Adapters QLogic QME8242 Mezzanine Card User's Guide - Page 35
Building the Driver for SLES 11 and SLES11 SP1 Linux
View all Dell QLogic Family of Adapters manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 35 highlights
Linux Driver Installation and Configuration: QLogic QME8242 Mezzanine Card User's Guide Builds the driver .ko files. Copies the .ko files to the appropriate /lib/modules/2.6.../updates directory. Adds the appropriate directive in the modprobe.conf (if applicable). 3. Manually load the driver for Linux. To load the driver using modprobe, issue the following command: # modprobe -v qla2xxx To unload the driver using modprobe, issue the following command: # modprobe -r qla2xxx 4. Automatically load the driver by rebuilding the RAM disk to include the driver as follows: a. Edit the /etc/sysconfig/kernel file to modify the INITRD_MODULES directive and append "qla2xxx" to the string. For example: INITRD_MODULES=".... qla2xxx" where, qla2xxx is appended to the end of the directive. b. Create a backup copy of the RAMDISK image by issuing the following commands: # cd /boot # cp initrd-[kernel version] initrd-[kernel version].bak # mkinitrd NOTE: Depending on the server hardware, the RAMDISK file name may be different. c. To load the driver, reboot the host. Building the Driver for SLES 11 and SLES11 SP1 Linux 1. In the directory that contains the source driver file, qla2xxx-src-vx.xx.xx.xx.xx.xx-k4.tar.gz, issue the following commands: # tar -xzvf qla2xxx-src-vx.xx.xx.xx.xx.xx-k4.tar.gz # cd qla2xxx-x.xx.xx.xx.xx.xx-k4 2. 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 /lib/modules/2.6.../updates directory. Adds the appropriate directive in the modprobe.conf (if applicable). 3. Manually load the driver for Linux. Edit the /etc/modprobe.d/unsupported_modules file (SLES 11 only) to make the following change: allow_unsupported_modules 1 (replace 0 by 1) To load the driver using modprobe, issue the following command: # modprobe -v qla2xxx To unload the driver using modprobe, issue the following command: # modprobe -r qla2xxx 4. Automatically load the driver by rebuilding the RAM disk to include the driver. Edit the /etc/modprobe.d/unsupported_modules file (SLES 11 only) to make the following change: allow_unsupported_modules 1 (replace 0 by 1) Create a copy of the current RAMDISK by issuing the following commands: # cd /boot # cp initrd-[kernel version].img initrd-[kernel version].img.bak # mkinitrd NOTE: Depending on the server hardware, the RAMDISK file name may be different. file:///T|/htdocs/NETWORK/QLogic/71922/en/lin_di.htm[9/26/2012 4:25:33 PM]