Solution to Intel350T4 installation under Linux

我们使用的是 Intel I350 T4 网卡,有四个网口, lspci 可以看到设备,但 ifconfig 中只有集成网卡 eth0.

         lspci -v可以找到驱动模块为igbdmesg | grepigb是发现igb probe failed with error -5和错误" NVMChecksum Is Not Valid",只能通过修改驱动源码来纠正,方法如下:

         1) Download Intel igb driver sourcefrom

         https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=13663

         2) Decompress the source

         tar zxvf igb-[VERSION].tar.gz

         cd igb-[VERSION]/src

    3) Delete the following entire piece ofcode in src/igb_main.c at line 2418

            

         /* make sure the NVM is good */

         if (e1000_validate_nvm_checksum(hw)< 0) {

                   dev_err(pci_dev_to_dev(pdev),"The NVM Checksum Is Not"

                   " Valid\n");

                   err = -EIO;

                   goto err_eeprom;

         }

         4) Run the following commands inside src folder,

         sudo modprobe -r igb

         sudo make install

         sudo modprobe igb


        5) This morning I update my CentOS to 6.6 and found following errors while compile igb:


make -C /lib/modules/2.6.32-504.el6.x86_64/build SUBDIRS=/home/ceni/Downloads/igb-5.2.5/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-504.el6.x86_64'
  CC [M]  /home/ceni/Downloads/igb-5.2.5/src/igb_main.o
In file included from /home/ceni/Downloads/igb-5.2.5/src/igb.h:55,
                 from /home/ceni/Downloads/igb-5.2.5/src/igb_main.c:53:
/home/ceni/Downloads/igb-5.2.5/src/kcompat.h:4015: error: nested redefinition of ‘enum pkt_hash_types’
/home/ceni/Downloads/igb-5.2.5/src/kcompat.h:4015: error: redeclaration of ‘enum pkt_hash_types’
/home/ceni/Downloads/igb-5.2.5/src/kcompat.h:4016: error: redeclaration of enumerator ‘PKT_HASH_TYPE_NONE’
include/linux/skbuff.h:613: note: previous definition of ‘PKT_HASH_TYPE_NONE’ was here
/home/ceni/Downloads/igb-5.2.5/src/kcompat.h:4017: error: redeclaration of enumerator ‘PKT_HASH_TYPE_L2’
include/linux/skbuff.h:614: note: previous definition of ‘PKT_HASH_TYPE_L2’ was here
/home/ceni/Downloads/igb-5.2.5/src/kcompat.h:4018: error: redeclaration of enumerator ‘PKT_HASH_TYPE_L3’
include/linux/skbuff.h:615: note: previous definition of ‘PKT_HASH_TYPE_L3’ was here
/home/ceni/Downloads/igb-5.2.5/src/kcompat.h:4019: error: redeclaration of enumerator ‘PKT_HASH_TYPE_L4’
include/linux/skbuff.h:616: note: previous definition of ‘PKT_HASH_TYPE_L4’ was here
/home/ceni/Downloads/igb-5.2.5/src/igb_main.c:9821: fatal error: opening dependency file /home/ceni/Downloads/igb-5.2.5/src/.igb_main.o.d: Permission denied
compilation terminated.
make[2]: *** [/home/ceni/Downloads/igb-5.2.5/src/igb_main.o] Error 1
make[1]: *** [_module_/home/ceni/Downloads/igb-5.2.5/src] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-504.el6.x86_64'
make: *** [default] Error 2


This problem was caused by the kernel version checking in the compat layer.

vi kcompat.h

:4015

comment enum pkt_hash_types and problem closed.




  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值