个人微博:http://weibo.com/h2fly

欢迎技术交流


如果安装rhel5.x(如rhel5.5)或者centos5.x(如centos 5.5)等比较低的版本,就没有针对新的机器(r620 r720等)网卡的驱动,就需要单独安装。

对于dell620,其网卡是broadcom 5720。

,

下载网卡驱动地址

http://zh-cn.broadcom.com/support/ethernet_nic/downloaddrivers.php


**安装

[root@localhost ~]# yum groupinstall "Development Tools"

[root@localhost ~]# yum install kernel-devel

[root@localhost ~]# yum install kernel-xen-devel #如果使用了虚拟化,就必须安装否则会报错

如果不安装以上三个,可能报错:


rpmbuild包已经安装好了,在执行rpm -bb tg3.spec的时候,# rpmbuild -bb tg3.spec,报错如下:

makeflags.sh: No kernel source dirctory provieded.

make: * * * [tg3_flags.h] Error 255

error: Bad exit status from /var/tmp/rpm-tmp.24240 (%build)

RPM build errors:

Bad exit status from /var/tmp/rpm-tmp.24240(%build)

需要让客户安装RPM包“kernel-devel”和RPM包组"Development Tools"




# unzip linux-3.124c.zip

# cd Server/Linux/Driver

# rpm -ivh tg3-3.124c-1.src.rpm

# cd /usr/src/redhat/SPECS

# rpmbuild -bb tg3.spec

# cd /usr/src/redhat/RPMS/x86_64

# rpm -ivh tg3-3.124c-1.x86_64.rpm


**加载模块

# modprobe tg3


vim /etc/modprobe.conf

alias eth0 tg3

alias eth1 tg3



**重启。。。

个人微博:http://weibo.com/h2fly

欢迎技术交流