RHEL 5.5 上编译安装 be2net 网卡驱动


准备工作

HP Proliant BL460c G7刀片服务器,带两块 ServerEngines Corp. Emulex OneConnect 10Gb NIC (be3) (rev 01) 万兆网卡。

测试中发现,ifconfig 看到 error 计数不断上升,应用不停重启。尝试编译最新驱动模块。

yum install gcc gcc-c++
yum install redhat-rpm-config
yum install rpm-build
yum install kernel-PAE-devel kernel-devel

编译安装

rpm -ivh hp-be2net-4.0.359.0-2.src.rpm
rpmbuild --target=i686 -bb /usr/src/redhat/SPECS/hp-benet.kmp.spec
ifconfig eth0 down
ifconfig eth1 down
modprobe -r be2net
cd /lib/modules/2.6.18-194.el5PAE/kernel/drivers/net/
mv benet benet.bak
rpm -ivh --nodeps /usr/src/redhat/RPMS/i686/kmod-hp-be2net-PAE-4.0.359.0-2.i686.rpm
modprobe be2net
modinfo be2net | grep -i version
lsmod | grep be2net
service network restart