Broadcom netxtreme II bcm5706/5708/5709/5716 Driver Drive Problem handling method

Source: Internet
Author: User
Tags rpmbuild

Recently discovered that the server's network card often will itself down and then a few minutes later suddenly own up, this problem does not appear regularly, and will recur, can not artificially reproduce the failure environment. The problem persists after the network cable has been replaced. After consulting a large number of online data, it is suspected that the network card startup program problems, need to update the network card driver.

Broadcom netxtreme II bcm5706/5708/5709/5716 Driver drivers are hot-updated and do not require a restart or flash, there may be a packet drop, which is basically allowed in the business.

Here's how I've documented the approach:

1. Use a virtual machine to install an operating system environment that is consistent with the production environment

1.1 Confirming the production environment

My production environment is CentOS 6.4 64 bit.

# uname-r2.6.32-358.el6.x86_64

You can see that the kernel version is 2.6.32-358

1.2 Creating a virtual machine environment

The installation method of virtual machine is omitted here, we can find it online.

2. Install make GCC rpm-build redhat-rpm-config components via Yum

Use Yum to install the make GCC rpm-build redhat-rpm-config component, which has already been installed to skip this step.

# yum-y Install make gcc rpm-build redhat-rpm-configloaded plugins:fastestmirrorloading mirror speeds from cached Hostfi Lesetting up Install processpackage 1:make-3.81-20.el6.x86_64 already installed and latest Versionpackage Gcc-4.4.7-11.el6.x86_64 already installed and latest Versionpackage rpm-build-4.8.0-38.el6_6.x86_64 already installed and latest Versionpackage Redhat-rpm-config-9.0.3-42.el6.centos.noarch already installed and latest version

3, install Kernel-devel package, Yum may not be consistent with your operating core, then need to go online download and kernel-consistent kernel-devel

3.1 Check if a suitable devel package is available through the Yum list Kernel-devel

# yum List|grep kernel-develkernel-devel.x86_64                      2.6.32-504.1.3.el6             Updates

It can be found that the Devel package is only 2.6.32-504, this package will not compile properly for 2.6.43-358 driver, so my environment cannot be used.

can go to http://rpm.pbone.net/website Search kernel-devel-2.6.32-358 Package, if your kernel version and my not the same please search for their own package


4, download the driver srpm package

4.1 Download the latest driver from official website

netxtreme ii  5716, this driver is not given directly on the download page. But the page has such a sentence broadcom No Longer provides drivers and documentation for  netxtreme II qlogic So you can click QLogic to go to the NetXtreme II driver download page.

because my operating system is CentOS 6.4, so I downloaded the Driver package for netxtreme2-7.10.12-2.rhel6u4.src.rpm

# wget http://ldriver.qlogic.com/driver-srpms/netxtreme2/netxtreme2-7.10.12-2.rhel6u4.src.rpm--2014-05-29 03:17:17--  http://ldriver.qlogic.com/driver-srpms/netxtreme2/netxtreme2-7.10.12-2.rhel6u4.src.rpmResolving Ldriver.qlogic.com ... 198.70.193.47Connecting to ldriver.qlogic.com|198.70.193.47|:80 ... Connected. HTTP request sent, awaiting response ... oklength:2699127 (2.6M) [audio/x-pn-realaudio-plugin]saving to: "netxtreme2-7.10.12-2.rhel6u4.src.rpm" 100%[==== =======================================================================================================>] 2,699,127   9.87k/s in   3m 10s  2014-05-29 03:20:32 (13.8 kb/s)-"netxtreme2-7.10.12-2.rhel6u4.src.rpm" saved [2699127/2699127]

5. Install SRPM Package

# RPM-IVH netxtreme2-7.10.12-2.rhel6u4.src.rpm warning:netxtreme2-7.10.12-2.rhel6u4.src.rpm:header V4 DSA/SHA1 Signature, key ID 29a6a44a:nokey   1:netxtreme2             ########################################### [100%]

After running, you will get a ~/rpmbuild directory

6, enter the Rpmbuild directory, use RPMBUILD-BB Spec/xxxx.spec to get RPM package

# CD ~/rpmbuild# RPMBUILD-BB Specs/kmp-netxtreme2.spec

After the run is complete, you can get the ~/rpmbuild/rpms directory, which holds the driver installation package

# ll ~/rpmbuild/rpms/x86_64/total 3928-rw-r--r--. 1 root root 3762148 may 03:25 kmod-netxtreme2-7.10.12-2.rhel6u4.x86_64.rpm-rw-r--r--. 1 root root  256968 may 03:25 netxtreme2-doc-7.10.12-2.rhel6u4.x86_64.rpm

What we need is kmod-netxtreme2-7.10.12-2.rhel6u4.x86_64.rpm.

8. Test RPM Package

# RPM-IVH ~/rpmbuild/rpms/x86_64/kmod-netxtreme2-7.10.12-2.rhel6u4.x86_64.rpmpreparing ... ################ ########################### [100%] 1:kmod-netxtreme2 ########################################### [100%]

 
  

The installation lasts for an unresponsive period of time, please keep running and do not interrupt execution.

If the installation is complete we can verify that the installed driver is in place by Modinfo Bnx2

# Modinfo Bnx2filename:/lib/modules/2.6.32-358.el6.x86_64/extra/netxtreme2/bnx2.koversion:2.2.5flicense: gpldescription:broadcom netxtreme II bcm5706/5708/5709/5716 driverauthor:michael Chan <[EMAIL PR Otected]>srcversion:2b877a043f01667d1a4b5cealias:pci:v000014e4d0000163csv*sd*bc*sc*i*alias:pci : v000014e4d0000163bsv*sd*bc*sc*i*alias:pci:v000014e4d0000163asv*sd*bc*sc*i*alias:pci:v000014e4d0000163 9sv*sd*bc*sc*i*alias:pci:v000014e4d000016acsv*sd*bc*sc*i*alias:pci:v000014e4d000016aasv*sd*bc*sc*i*ali          As:pci:v000014e4d000016aasv0000103csd00003102bc*sc*i*alias:pci:v000014e4d0000164csv*sd*bc*sc*i*alias:          Pci:v000014e4d0000164asv*sd*bc*sc*i*alias:pci:v000014e4d0000164asv0000103csd00003106bc*sc*i*alias: pci:v000014e4d0000164asv0000103csd00003101bc*sc*i*depends:vermagic:2.6.32-358.el6.x86_64 SMP Mod_unloa     D modversions Parm:      Disable_msi:disable Message signaled Interrupt (MSI) (int) Parm:stop_on_tx_timeout:For debugging purposes, Prevent a chip reset when a TX timeout occurs (int)

You can see that the driver has been updated to 2.2.5f.

9, upload the production of RPM to the business environment, using the RPM command installation.


Narrating, I updated the drive still found that there is a flow of the phenomenon, the problem has not been resolved, but the driver update is normal, update the driver's friends can reference.

Broadcom netxtreme II bcm5706/5708/5709/5716 Driver Drive Problem handling method

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.