To Build the Fibre Channel Driver
32
StorageTek 8 Gb FC PCIe HBA From QLogic Installation Guide • March 2015
From the source code, you can build a
qla2xxx.ko
module and a
qla2xxx_conf.ko
module for
the host. You can then choose to load the driver manually or automatically, as described in
Load the Newly Built Fibre Channel Driver” on page 32
1.
In the directory that contains the source driver file,
qla2xxx-x.yy.zz-dist.tgz
, use
the commands shown in the following example.
#
tar -xvzf *.tgz
#
cd qlogic
#
./drvrsetup
(this extracts the source files directory into the current directory)
#
cd qla2xxx-
x.yy.zz
(
x.yy
indicates the driver version;
zz
indicates the file extension, which
is typically .ko for kernel modules (binaries)).
2.
Build and install the driver modules from the source code by executing the
build.sh
script.
#
./extras/build.sh install
This build script does the following:
■
Builds the driver
.ko
files.
■
Copies the
.ko
files to the appropriate directory:
/lib/modules/2.6.../kernel/
drivers/scsi/qla2xxx
■
Adds the appropriate directive in the
modprobe.conf.
local
to remove the
qla2xxx_conf
module when unloading the
qla2xxx
module.
■
Updates the newly built
qla2xxx_conf.ko
module with any previously saved
data in
/etc/qla2xxx.conf
.
3.
Choose how you want to load the driver, as described in
Fibre Channel Driver” on page 32
To Load the Newly Built Fibre Channel Driver
After you build the fibre channel driver, as described in
“To Build the Fibre Channel Driver
, you can choose to manually or automatically load the driver. This section
contains the following topics:
■
“To Manually Load the Fibre Channel Driver” on page 33
■