Linux Driver Software: Broadcom NetXtreme II Network Adapter User Guide
file:///T|/htdocs/NETWORK/BroadCom/71921/NetXtremeII/en/linux.htm[9/26/2012 3:28:46 PM]
2. Change the directory to the RPM path and build the binary driver for your kernel (the RPM path is different for different
Linux distributions):
cd /usr/src/
redhat,OpenLinux,turbo,packages,rpm ...
or
rpmbuild -bb SPECS/netxtreme2.spec (for RPM version 4.x.x)
NOTE: During your attempt to install a source RPM package, the following message may be displayed:
error: cannot create %sourcedir /usr/src/redhat/SOURCES
The most likely cause of the error is that the rpm-build package has not been installed. Locate the rpm-build
package on the Linux installation media and install it using the following command:
rpm -ivh rpm-build-
version
.
arch
.rpm
Complete the installation of the source RPM.
3. Install the newly built package (driver and man page):
rpm -ivh RPMS/i386/netxtreme2 -
version
.
arch
.rpm
The --force option is needed if installing over an existing distribution that may already contain an older version of
the driver.
The driver is installed to the following path:
2.6.x kernels
/lib/modules/
kernel_version
/kernel/drivers/net/bnx2.ko
2.6.16 kernels and newer (bnx2 driver)
/lib/modules/kernel_version/kernel/drivers/net/bnx2.ko
/lib/modules/kernel_version/kernel/drivers/net/cnic.ko
2.6.16 kernels and newer (bnx2i driver)
/lib/modules/kernel_version/kernel/drivers/scsi/bnx2i/bnx2i.ko
4. Load the driver:
insmod bnx2.ko (on 2.6.x kernels)
or
modprobe bnx2
Verify that your network adapter supports iSCSI by checking the message log. If the message "bnx2i: dev eth0
does not support iSCSI" appears in the message log after loading the bnx2i driver, then iSCSI is not supported. This
message may not appear until the interface is opened, as with:
ifconfig eth0 up
5. Load the cnic driver (if applicable):
insmod cnic.ko
or
modprobe cnic
To configure the network protocol and address, refer to the documentation provided with your operating system.
Installing the KMP Package
NOTE: The examples in this procedure refer to the bnx2x driver, but also apply to the bnx2 and bnx2i drivers.
1. Install the KMP package:
rpm -ivh <file>
rmmod bnx2x
2. Load the driver:
modprobe bnx2x
Building the Driver from the Source TAR File