To build a binary RPM* package of this driver, run 'rpmbuild -tb
e1000e.tar.gz'.
NOTES:
- For the build to work properly, the currently running kernel MUST match
the version and configuration of the installed kernel sources. If you have
just recompiled the kernel reboot the system now.
- RPM functionality has only been tested in Red Hat distributions.
1. Move the base driver tar file to the directory of your choice. For
example, use '/home/username/e1000e' or '/usr/local/src/e1000e'.
2. Untar/unzip the archive, where <x.x.x> is the version number for the
driver tar file:
tar zxf e1000e-<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 e1000e-<x.x.x>/src/
4. Compile the driver module:
# make install
The binary will be installed as:
/lib/modules/<KERNEL VERSION>/kernel/drivers/net/e1000e/e1000e.[k]o
The install location listed above is the default location. This may differ
for various Linux distributions.
5. Load the module using the modprobe command:
modprobe e1000e
With 2.6 based kernels also make sure that older e1000e drivers are removed
from the kernel, before loading the new module:
rmmod e1000e; modprobe e1000e
6. Assign an IP address to the interface by entering the following, where x
is the interface number:
ifconfig eth <x> <IP_address>
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>
TROUBLESHOOTING: Some systems have trouble supporting MSI and/or MSI-X
interrupts. If you believe your system needs to disable this style of
interrupt, the driver can be built and installed with the command:
# make CFLAGS_EXTRA=-DDISABLE_PCI_MSI install
Normally the driver will generate an interrupt every two seconds, so if you
can see that you are no longer getting interrupts in cat /proc/interrupts for
the ethX e1000e device, then this workaround may be necessary.
转载于:https://blog.51cto.com/hackyao/1337565