CentOS5 update NIC driver bnx2 version:2.0.2 (1/2)

Source: Internet
Author: User
Tags zip

Update Bnx2 version:2.0.2–>2.1.11

Operating system: CentOS release 5.10 (Final)

The code is as follows Copy Code
[Root@blog.hexu.org ~]$ Cat/etc/redhat-release
CentOS release 5.10 (Final)

Failure phenomenon: Network card without cause automatically down, use service network restart Restart after not how long will automatically down, the number of connections in about 200, no ARP attack;


Network card information:

The code is as follows Copy Code
[root@blog.hexu.org ~]$ CAT/VAR/LOG/DMESG |grep eth0
eth0:broadcom netxtreme II BCM5716 1000base-t (C0) PCI Express found at Mem da000000, IRQ, node addr 782bcb4b61f8

[root@blog.hexu.org ~]$ Lspci |grep-i ETH
01:00.0 Ethernet controller:broadcom Corporation netxtreme II BCM5716 Gigabit Ethernet (rev. 20)
01:00.1 Ethernet controller:broadcom Corporation netxtreme II BCM5716 Gigabit Ethernet (rev. 20)

Current NIC driver:

The code is as follows Copy Code
[Root@blog.hexu.org ~]$ ethtool-i eth0
Driver:bnx2
version:2.0.2
firmware-version:5.2.3 NCSI 2.0.10
bus-info:0000:01:00.0

Download the latest network card driver:

http://www.broadcom.com/support/ethernet_nic/netxtremeii.php

Linux

ISCSI HBA only supported on RHEL 5.4, SUSE SLES-SP1 or newer versions of these distributions
I am downloading the current version of Linux-7.8.56.zip

Install update Driver:

The code is as follows Copy Code
[Root@blog.hexu.org ~]$ Unzip Linux-7.8.56.zip
Archive:linux-7.8.56.zip
creating:server/linux/driver/
Inflating:server/linux/driver/install. Txt
inflating:server/linux/driver/netxtreme2-7.8.56-1.src.rpm
Inflating:server/linux/driver/netxtreme2-7.8.56.tar.gz
Inflating:server/linux/driver/netxtreme2_sup-7.8.56-1.iso.tar.gz
Inflating:server/linux/driver/readme.bnx2.txt
Inflating:server/linux/driver/readme.bnx2fc.txt
Inflating:server/linux/driver/readme.bnx2i.txt
Inflating:server/linux/driver/readme.bnx2x.txt
Inflating:server/linux/driver/release.bnx2.txt
Inflating:server/linux/driver/release.bnx2fc.txt
Inflating:server/linux/driver/release.bnx2i.txt
Inflating:server/linux/driver/release.bnx2x.txt
Inflating:server/linux/driver/release.fclibs.txt

[Root@blog.hexu.org ~]$ CD server/linux/driver/
[Root@blog.hexu.org driver]$ RPM-IVH netxtreme2-7.8.56-1.src.rpm

To reconstruct the RPM package for the corresponding system:

The code is as follows Copy Code
[Root@blog.hexu.org driver]$ cd/usr/src/redhat/specs/
[Root@blog.hexu.org specs]$ RPMBUILD-BB Netxtreme2.spec

To install a new RMP package:

The code is as follows Copy Code
[Root@blog.hexu.org specs]$ cd/usr/src/redhat/rpms/x86_64
[Root@blog.hexu.org x86_64]$ RPM-IVH netxtreme2-7.8.56-1.x86_64.rpm

Switch network card driver:

The code is as follows Copy Code
[Root@blog.hexu.org ~]$ Cat change_driver.sh
Rmmod Bnx2
Rmmod bnx2x
Modprobe bnx2

Modprobe bnx2x

[root@blog.hexu.org ~]$ chmod u+x change_driver.sh

Background execution Script:

The code is as follows Copy Code
[root@blog.hexu.org ~]$./change_driver.sh &

Note: Sometimes you may need to reboot the server to allow the server system to completely reload the new driver:

To view the new NIC driver information:

The code is as follows Copy Code
[Root@dbapp101 x86_64]$ ethtool-i eth0
Driver:bnx2
version:2.1.11
firmware-version:6.2.12 BC 5.2.3
bus-info:0000:01:00.0

There is no automatic down situation at the moment.

Home 1 2 last page

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.