個人微網誌: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
**重新開機。。。