Network installations, Installing the source rpm package, Building the driver from the source tar file – Dell Broadcom NetXtreme Family of Adapters User Manual

Page 41

Advertising
background image

Linux Driver Software: Broadcom NetXtreme BCM57XX User Guide

file:///C|/Users/Nalina_N_S/Documents/NetXtreme/English/linux.htm[9/5/2014 3:32:10 PM]

3. Install the DKMS RPM driver package.

rpm -ivh tg3-version dkms.noarch.rpm

Installing the Source RPM Package

Prerequisites:

Linux kernel source
C compiler

Procedure:

1. Install the source RPM package.

rpm -ivh tg3-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/tg3.spec or rpmbuild -bb SPECS/tg3.spec
rpmbuild -bb SPECS/tg3.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/SOURCE

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.i386.rpm

Complete the installation of the source RPM.

3. Install the newly-built package (driver and man page).

rpm -ivh RPMS/i386/tg3-version.i386.rpm

Depending on the kernel, the driver is installed to the following path:

2.6.x kernels:

/lib/modules/kernel_version/kernel/drivers/net/tg3.ko

4. Load the driver.

modprobe tg3

To configure the network protocol and address, refer to the Linux version-specific documentation.

Building the Driver from the Source TAR File

1. Create a directory (tg3-version) and extract the TAR files to the directory.

tar xvzf tg3-version.tgz

2. Build the driver tg3.o as a loadable module for the running kernel.

CD tg3-version
make clean
make; make install

3. Test the driver by loading it.

rmmod tg3
modprobe tg3

No message should be returned if this command runs properly.

NOTE: See the RPM instructions above for the location of the installed driver.

4. To configure network protocol and address, refer to the manuals supplied with your operating system.

Network Installations

For network installations through NFS, FTP, or HTTP (using a network boot disk or PXE), a driver disk that contains the tg3
driver may be needed. The driver disk images for the most recent Red Hat versions are included. Boot drivers for other Linux

Advertising