Cisco Systems 5709 Network Hardware User Manual


 
NetXtreme II User Guide
January 2010
Broadcom Corporation
Page 124 Installing Linux Driver Software Document ENGSRVT52-CDUM100-R
INSTALLING LINUX DRIVER SOFTWARE
Installing the Source RPM Package
Building the Driver from the Source TAR File
NOTE: If a bnx2/bnx2x/bnx2i driver is loaded and the Linux kernel is updated, the driver module must be recompiled
if the driver module was installed using the source RPM or the TAR package.
INSTALLING THE SOURCE RPM PACKAGE
NOTE: The examples in this procedure refer to the bnx2 driver, but also apply to the bnx2x and bnx2i drivers.
1. Install the source RPM package:
rpm -ivh netxtreme2-version.src.rpm
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 …
rpm -bb SPECS/bnx2.spec
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.
Depending on the kernel, the driver is installed to one of the following paths:
2.4.x kernels
/lib/modules/kernel_version/kernel/drivers/net/bnx2.o
2.6.x kernels
/lib/modules/kernel_version/kernel/drivers/net/bnx2.ko
For the bnx2i driver:
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