Building and installation, Install from source code – Dell Intel PRO Family of Adapters User Manual

Page 73

Advertising
background image

Building and Installation

There are three methods for installing the igb driver:

l

Install from Source Code

l

Install Using KMP RPM

l

Install Using KMOD RPM

Install from Source Code

To build a binary RPM* package of this driver, run 'rpmbuild -tb <filename.tar.gz>'. Replace <filename.tar.gz> with the
specific filename of the driver.

NOTE:

l

For the build to work properly it is important that the currently running kernel MATCH the version and con-
figuration of the installed kernel source. If you have just recompiled your kernel, reboot the system.

l

RPM functionality has only been tested in Red Hat distributions.

1. Copy the base driver tar file from 'Linux/Source/base_driver/igb-<x.x.x>tar.gz' on the driver CD,

where <x.x.x> is the version number for the driver tar file, to the directory of your choice. For example, use
'/home/username/igb' or '/usr/local/src/igb'.

2. Untar/unzip the archive, where <x.x.x> is the version number for the driver tar:

tar zxf igb-<x.x.x>.tar.gz

3. Change to the driver src directory, where <x.x.x> is the version number for the driver tar:

cd igb-<x.x.x>/src/

4. Compile the driver module:

# make install

The binary will be installed as:

/lib/modules/<KERNEL VERSION>/kernel/drivers/net/igb/igb.ko

The install locations listed above are the default locations. This might differ for various Linux distributions. For
more information, see the ldistrib.txt file included in the driver tar.

5. Install the module using the modprobe command:

modprobe igb

For 2.6 based kernels, make sure that the older igb drivers are removed from the kernel, before loading the
new module:

rmmod igb.ko; modprobe igb

6. Assign an IP address to and activate the Ethernet interface by entering the following, where <x> is the interface

number:

ifconfig eth<x> <IP_address> up

7. Verify that the interface works. Enter the following, where <IP_address> is the IP address for another machine

on the same subnet as the interface that is being tested:

ping <IP_address>

NOTE: Some systems have trouble supporting MSI and/or MSI-X interrupts. If your system needs to disable this
type of interrupt, the driver can be built and installed with the command:

#make CFLAGS_EXTRA=-DDISABLE_PCI_MSI install

Normally, the driver generates an interrupt every two seconds. If interrupts are not received in cat /proc/interrupts
for the ethX e1000e device, then this workaround may be necessary.

To build igb driver with DCA

If your kernel supports DCA, the driver will build by default with DCA enabled.

Advertising