beautypg.com

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

Page 84

background image

Building and Installation

There are two methods for installing the igbvf driver:

l

Install from Source Code

l

Install Using KMP RPM

Install from Source Code

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

NOTE: 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.

1. Copy the base driver tar file from 'Linux/Source/base_driver/igbvf-tar.gz' on the driver CD,

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

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

tar zxf igbvf-.tar.gz

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

cd igbvf-/src/

4. Compile the driver module:

# make install

The binary will be installed as:

/lib/modules//kernel/drivers/net/igbvf/igbvf.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 igbvf

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

rmmod igbvf.ko; modprobe igbvf

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

number:

ifconfig eth up

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

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

ping

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 igbvf driver with DCA

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