Installation guide

AT-ANC10S/2 and AT-ANC10S/4 Adapters Installation and User’s Guide
47
Installing Linux Driver Software
There are two ways to install the Linux driver software — from the Source
RPM Package or by building the driver from the source TAR file. See the
following sections:
“Installing the Source RPM Package” on page 47
“Building the Driver from the Source TAR File” on page 48
If a bnx2x driver is loaded and you update the Linux kernel, you
must recompile the driver module if it was installed using the source
RPM or the TAR package.
Installing the
Source RPM
Package
The procedure in this section describes how to install the Source RPM
Package.
To install the Source RPM Package, do the following:
1. Enter the following command:
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 each Linux distribution):
cd /usr/src/
redhat,OpenLinux,turbo,packages,rpm
...
rpm -bb SPECS/netxtreme2.spec
or
rpmbuild -bb SPECS/netxtreme2.spec (for RPM version
4.x.x)
The error message error: cannot create %sourcedir /
usr/src/redhat/SOURCES is displayed if the rpm-build package
is not installed. To resolve the problem, locate the rpm-build
package on the Linux installation media and install it using the
following command:
rpm -ivh rpm-build-version.arch.rpm
Then complete the installation of the source RPM.
3. Install the newly built package which includes the driver and man
page: