因為在原生 Centos 4.8 上所提供的核心 (2.6.9-89.31.1.EL) 模組版本為
$ sudo /sbin/modinfo bnx2x
filename: /lib/modules/2.6.9-89.31.1.EL/kernel/drivers/net/bnx2x.ko
parm: debug:default debug msglevel
parm: poll:use polling (for debug)
parm: use_inta:use INT#A instead of MSI-X
parm: disable_tpa:disable the TPA (LRO) feature
version: 1.45.23-1 7A1BF1713BBB0BA1125A3D6
license: GPL
description: Broadcom NetXtreme II BCM57710 Driver
author: Eliezer Tamir
alias: pci:v000014E4d00001650sv*sd*bc*sc*i*
alias: pci:v000014E4d0000164Fsv*sd*bc*sc*i*
alias: pci:v000014E4d0000164Esv*sd*bc*sc*i*
depends: libcrc32c
vermagic: 2.6.9-89.31.1.EL gcc-3.4
1. 下載原廠提供之 driver source
1.1 至Broadcom原廠下載並解開
http://zh-tw.broadcom.com/support/ethernet_nic/netxtremeii10.php
下載 Linux 部分: linux-5.2.55.zip
1.2 解開 zip
$ unzip -d ~/tmp linux-5.2.55.zip
2. 安裝 compile 需要工具
$ sudo yum install rpm-build gcc kernel-devel.x86_64
3. 用 src.rpm進行編譯與安裝
3.1安裝 src.rpm
$ cd ~/tmp/Server/Linux/Driver/ ; sudo rpm -ivh netxtreme2-5.2.55-1.src.rpm
1:netxtreme2 ########################################### [100%]
3.2 編譯與安裝
$ cd /usr/src/redhat/ ; sudo rpmbuild -bb SPECS/netxtreme2.spec
確認沒錯誤訊息後,在 /usr/src/redhat/RPMS/x86_64/下應該會編譯完成 netxtreme2-5.2.55-1.x86_64.rpm . 確認並安裝
$ sudo rpm -ivh RPMS/x86_64/netxtreme2-5.2.55-1.x86_64.rpm
4.載入並確認版本
4.1 載入 bnx2x 模組(若必要的話,要先移除)
$ sudo /sbin/rmmod bnx2x ; sudo /sbin/modprobe bnx2x
4.2 確認目前driver 版本$ sudo /sbin/modinfo bnx2x
filename: /lib/modules/2.6.9-89.31.1.EL/updates/bnx2x.ko
parm: debug: Default debug msglevel
parm: mrrs: Force Max Read Req Size (0..3) (for debug)
parm: poll: Use polling (for debug)
parm: dropless_fc: Pause on exhausted host ring
parm: int_mode: Force interrupt mode other then MSI-X (1 INT#x; 2 MSI)
parm: disable_tpa: Disable the TPA (LRO) feature
parm: num_queues: Number of queues for multi_mode=1 (default is as a number of CPUs)
parm: multi_mode: Multi queue mode (0 Disable; 1 Enable (default))
cvs_version: $Revision: #6 $
version: 1.52.15 0A1AEAFC7BDD926F8D5C780
license: GPL
description: Broadcom NetXtreme II BCM57710/57711/57711E Driver
author: Eliezer Tamir
alias: pci:v000014E4d00001650sv*sd*bc*sc*i*
alias: pci:v000014E4d0000164Fsv*sd*bc*sc*i*
alias: pci:v000014E4d0000164Esv*sd*bc*sc*i*
depends:
vermagic: 2.6.9-89.31.1.EL gcc-3.4
沒有留言:
張貼留言