Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1355176
  • 博文数量: 416
  • 博客积分: 10495
  • 博客等级: 上将
  • 技术积分: 4258
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-23 22:13
文章分类

全部博文(416)

文章存档

2015年(7)

2014年(42)

2013年(35)

2012年(14)

2011年(17)

2010年(10)

2009年(18)

2008年(127)

2007年(72)

2006年(23)

2005年(51)

分类: LINUX

2009-05-09 16:33:01

文件: e1000e-0.5.11.2.tar.gz
大小: 199KB
下载: 下载
t400  intel 82567LM网卡
os centos 4.2
网上查了一下,t400大部分linux下都需要编译驱动。
 
 
Building and Installation
=========================

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, 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 archive:

     tar zxf e1000e-x.x.x.tar.gz

3. Change to the driver src directory:

     cd e1000e-x.x.x/src/

4. Compile the driver module:

     # make install

   The binary will be installed as:

     /lib/modules//kernel/drivers/net/e1000e/e1000e.[k]o

   The install locations listed above are the default locations.  They
   might not be correct for certain Linux distributions.

5. Load the module using either the insmod or modprobe command:

     modprobe e1000e

     insmod e1000e

   Note that for 2.6 kernels the insmod command can be used if the full
   path to the driver module is specified.  For example:

     insmod /lib/modules//kernel/drivers/net/e1000e/e1000e.ko

   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 ethx

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  

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're no longer getting interrupts in
cat /proc/interrupts for the ethX e1000e device, then this workaround
may be necessary.
 
 
 
---------
make install的时候出现错误

make install
make -C /lib/modules/2.6.9-42.ELsmp/build SUBDIRS=/home/e1000e-0.5.18.3/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-42.EL-smp-i686'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.9-42.EL-smp-i686'
# remove all old versions of the driver
find /lib/modules/2.6.9-42.ELsmp -name e1000e.ko -exec rm -f {} \; || true
find /lib/modules/2.6.9-42.ELsmp -name e1000e.ko.gz -exec rm -f {} \; || true
install -D -m 644 e1000e.ko /lib/modules/2.6.9-42.ELsmp/kernel/drivers/net/e1000e/e1000e.ko
/sbin/depmod -a || true
install -D -m 644 e1000e.7.gz /usr/share/man/man7/e1000e.7.gz
man -c -P'cat > /dev/null' e1000e || true
Failed to open the message catalog man on the path NLSPATH=
 
建一个/man目录编译过去,哈哈,解决了。
阅读(2145) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~