lspci -v可以找到驱动模块为igb。dmesg | 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
vi kcompat.h
:4015
comment enum pkt_hash_types and problem closed.