分享

windtear 追求完美: bcm5700 driver 解决RHEL Linux 下默认 tg3 无法正确驱动 Broadcom Corporation|NetXtreme BCM5704 Gigabit Ethernet 网卡的问题

 flyhorse2k 2006-08-16

September 15, 2005

bcm5700 driver 解决RHEL Linux 下默认 tg3 无法正确驱动 Broadcom Corporation|NetXtreme BCM5704 Gigabit Ethernet 网卡的问题

http:///archives/2005/09/15/000772.html

bcm5700 driver 解决RHEL Linux 下默认 tg3 无法正确驱动 Broadcom Corporation|NetXtreme BCM5704 Gigabit Ethernet 网卡的问题

请参阅本文更新版

# ethtool -i eth0
driver: tg3
version: 3.6RH
firmware-version:
bus-info: 02:02.0

https://bugzilla./bugzilla/show_bug.cgi?id=123218
http://people./linville/kernels/rhel3/patches/jwltest-tg3-3_27RH.patch
Comment #42 From John W. Linville       on 2005-05-11 16:26 EST      [reply]              

Internal reports indicate that updating to later firmware for tg3 hardware has
resolved this issue.  I‘m closing this (again) on that basis.  Please re-open
if this issue continues.  Please note that not all instances of the
"tg3_stop_block timed out" message are problematic, so please limit any more
activity in this bug to cases involving actual lose of network function. 
Thanks!

bcm 最新官方驱动
(2005-12-28 更新: http://www./support/ethernet_nic/downloaddrivers.php
http://www./support/ethernet_nic/driver-sla.php?driver=570x-Linux
http://www./docs/driver_download/570x/linux-8.3.14.zip
)
http://www./drivers/downloaddrivers.php
http://www./docs/driver_download/570x/linux-8.2.18.zip
2005-08-23  13:49              193,786 bcm5700-8.2.18-1.src.rpm
            2005-08-23  13:49              192,448 bcm5700-8.2.18.tar.gz
            2005-08-23  13:49              419,721 bcm_sup-8.2.18.tar.gz
            2005-08-23  13:49                5,869 DISTRIB.TXT
            2005-08-23  13:49               20,827 README.TXT
            2005-08-23  19:00              813,463 linux-8.2.18.zip
            2005-08-02  08:25                2,217 bcm5700.spec
            2005-08-02  08:32              192,375 bcm5700-8.2.18.tgz
            2005-08-02  08:33                  368 INFO.TXT
            9 个文件      1,841,074 字节
            export DISPLAY=test
            rpmbuild --rebuild bcm5700-8.2.18-1.src.rpm
            rpm -Uvh /usr/src/redhat/RPMS/i386/bcm5700-8.2.18-1.i386.rpm
            # rpmbuild --rebuild bcm5700-8.2.18-1.src.rpm
            Installing bcm5700-8.2.18-1.src.rpm
            Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.2975
            + umask 022
            + cd /usr/src/redhat/BUILD
            + LANG=C
            + export LANG
            + unset DISPLAY
            + cd /usr/src/redhat/BUILD
            + rm -rf bcm5700-8.2.18
            + /bin/mkdir -p bcm5700-8.2.18
            + cd bcm5700-8.2.18
            + /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm5700-8.2.18.tgz
            + tar -xvvf -
            -rw-r--r-- root/root      1935 2005-08-02 01:33:05 5701rls.c
            -rw-r--r-- root/root      7954 2005-08-02 01:33:05 5701rls.h
            -rw-r--r-- root/root     14209 2005-08-02 01:33:05 autoneg.c
            -rw-r--r-- root/root     14308 2005-08-02 01:33:05 autoneg.h
            -rw-r--r-- root/root     26702 2005-08-02 01:33:05 b57diag.c
            -rw-r--r-- root/root     16625 2005-08-02 07:27:20 b57proc.c
            -rw-r--r-- root/root    150197 2005-08-02 08:22:09 b57um.c
            -rw-r--r-- root/root    151409 2005-08-02 01:33:05 b57um.org.c
            -rw-r--r-- root/root      2486 2005-08-02 01:33:05 bits.h
            -rw-r--r-- root/root     13411 2005-08-02 01:33:05 fw_lso05.h
            -rw-r--r-- root/root     24994 2005-08-02 01:33:05 fw_stkoffld.h
            -rw-r--r-- root/root     19860 2005-08-02 01:33:05 lm.h
            -rw-r--r-- root/root     15567 2005-08-02 01:33:05 mm.h
            -rw-r--r-- root/root     10411 2005-08-02 01:33:05 nicext.h
            -rw-r--r-- root/root     11780 2005-08-02 01:33:05 queue.h
            -rw-r--r-- root/root      3930 2005-08-02 01:33:05 tcp_seg.c
            -rw-r--r-- root/root    319626 2005-08-02 01:33:05 tigon3.c
            -rw-r--r-- root/root    140018 2005-08-02 01:33:05 tigon3.h
            -rwxr-xr-x root/root     17093 2005-08-02 08:24:39 bcm5700.4
            -rwxr-xr-x root/root      4659 2005-08-02 01:33:05 Makefile
            -rw-r--r-- root/root     20267 2005-08-02 08:21:59 README.TXT
            -rw-r--r-- root/root     15153 2005-08-02 01:33:05 LICENSE
            + STATUS=0
            + ‘[‘ 0 -ne 0 ‘]‘
            + /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm5700-8.2.18.tgz
            + tar -xvvf -
            -rw-r--r-- root/root      1935 2005-08-02 01:33:05 5701rls.c
            -rw-r--r-- root/root      7954 2005-08-02 01:33:05 5701rls.h
            -rw-r--r-- root/root     14209 2005-08-02 01:33:05 autoneg.c
            -rw-r--r-- root/root     14308 2005-08-02 01:33:05 autoneg.h
            -rw-r--r-- root/root     26702 2005-08-02 01:33:05 b57diag.c
            -rw-r--r-- root/root     16625 2005-08-02 07:27:20 b57proc.c
            -rw-r--r-- root/root    150197 2005-08-02 08:22:09 b57um.c
            -rw-r--r-- root/root    151409 2005-08-02 01:33:05 b57um.org.c
            -rw-r--r-- root/root      2486 2005-08-02 01:33:05 bits.h
            -rw-r--r-- root/root     13411 2005-08-02 01:33:05 fw_lso05.h
            -rw-r--r-- root/root     24994 2005-08-02 01:33:05 fw_stkoffld.h
            -rw-r--r-- root/root     19860 2005-08-02 01:33:05 lm.h
            -rw-r--r-- root/root     15567 2005-08-02 01:33:05 mm.h
            -rw-r--r-- root/root     10411 2005-08-02 01:33:05 nicext.h
            -rw-r--r-- root/root     11780 2005-08-02 01:33:05 queue.h
            -rw-r--r-- root/root      3930 2005-08-02 01:33:05 tcp_seg.c
            -rw-r--r-- root/root    319626 2005-08-02 01:33:05 tigon3.c
            -rw-r--r-- root/root    140018 2005-08-02 01:33:05 tigon3.h
            -rwxr-xr-x root/root     17093 2005-08-02 08:24:39 bcm5700.4
            -rwxr-xr-x root/root      4659 2005-08-02 01:33:05 Makefile
            -rw-r--r-- root/root     20267 2005-08-02 08:21:59 README.TXT
            -rw-r--r-- root/root     15153 2005-08-02 01:33:05 LICENSE
            + STATUS=0
            + ‘[‘ 0 -ne 0 ‘]‘
            ++ /usr/bin/id -u
            + ‘[‘ 0 = 0 ‘]‘
            + /bin/chown -Rhf root .
            ++ /usr/bin/id -u
            + ‘[‘ 0 = 0 ‘]‘
            + /bin/chgrp -Rhf root .
            + /bin/chmod -Rf a+rX,g-w,o-w .
            + exit 0
            Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.2975
            + umask 022
            + cd /usr/src/redhat/BUILD
            + cd bcm5700-8.2.18
            + LANG=C
            + export LANG
            + unset DISPLAY
            + make
            gcc -DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256             -DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT             -DINCLUDE_5701_AX_FIX=1 -DRED_HAT_LINUX_KERNEL -Wall -Wstrict-prototypes             -I/lib/modules/2.4.21-20.ELsmp/build/include -O2
            (
            -c -o b57um.o b57um.c
            -c -o b57proc.o b57proc.c
            -c -o tigon3.o tigon3.c
            -c -o autoneg.o autoneg.c
            -c -o 5701rls.o 5701rls.c
            -c -o tcp_seg.o tcp_seg.c
            -c -o b57diag.o b57diag.c
            )
            ld -i b57um.o b57proc.o tigon3.o autoneg.o 5701rls.o tcp_seg.o b57diag.o -o bcm5700.o
            + exit 0
            Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.26197
            + umask 022
            + cd /usr/src/redhat/BUILD
            + cd bcm5700-8.2.18
            + LANG=C
            + export LANG
            + unset DISPLAY
            ++ uname -r
            ++ cut -c1-3
            ++ sed ‘s/2\.[56]/2\.6/‘
            + BCM_KVER=2.4
            + ‘[‘ 2.4 = 2.6 ‘]‘
            + BCM_DRV=bcm5700.o
            + echo ‘%defattr(-,root,root)‘
            ++ uname -r
            + ‘[‘ -d /lib/modules/2.4.21-20.ELsmp/kernel/3rdparty/bcm5700 ‘]‘
            ++ uname -r
            + ‘[‘ -d /lib/modules/2.4.21-20.ELsmp/kernel/drivers/addon/bcm5700 ‘]‘
            ++ uname -r
            + ‘[‘ -d /lib/modules/2.4.21-20.ELsmp/kernel/drivers/net/bcm ‘]‘
            ++ uname -r
            + ‘[‘ -d /lib/modules/2.4.21-20.ELsmp/kernel ‘]‘
            ++ uname -r
            + mkdir -p /var/tmp/bcm5700-buildroot/lib/modules/2.4.21-20.ELsmp/kernel/drivers/net
            ++ uname -r
            + echo /lib/modules/2.4.21-20.ELsmp/kernel/drivers/net/bcm5700.o
            + ‘[‘ -d /usr/share/man ‘]‘
            + mkdir -p /var/tmp/bcm5700-buildroot/usr/share/man/man4
            + echo ‘/usr/share/man/man4/bcm5700.4.*‘
            + make install PREFIX=/var/tmp/bcm5700-buildroot
            gzip -c bcm5700.4 > bcm5700.4.gz
            *** Run ‘/sbin/depmod -a‘ to update the module database.
            + /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/bcm5700-8.2.18
            0 blocks
            find: /var/tmp/bcm5700-buildroot/usr/lib/debug: No such file or directory
            + /usr/lib/rpm/redhat/brp-compress
            + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
            + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
            + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
            Processing files: bcm5700-8.2.18-1
            Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.50856
            + umask 022
            + cd /usr/src/redhat/BUILD
            + cd bcm5700-8.2.18
            + DOCDIR=/var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.2.18
            + export DOCDIR
            + rm -rf /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.2.18
            + /bin/mkdir -p /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.2.18
            + cp -pr LICENSE README.TXT /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.2.18
            + exit 0
            Requires(interp): /bin/sh /bin/sh
            Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
            Requires(post): /bin/sh
            Requires(postun): /bin/sh
            Processing files: bcm5700-debuginfo-8.2.18-1
            Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/bcm5700-buildroot
            Wrote: /usr/src/redhat/RPMS/i386/bcm5700-8.2.18-1.i386.rpm
            Wrote: /usr/src/redhat/RPMS/i386/bcm5700-debuginfo-8.2.18-1.i386.rpm
            Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.50856
            + umask 022
            + cd /usr/src/redhat/BUILD
            + cd bcm5700-8.2.18
            + rm -rf /var/tmp/bcm5700-buildroot /usr/src/redhat/BUILD/file.list.bcm5700
            + exit 0
            Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.50856
            + umask 022
            + cd /usr/src/redhat/BUILD
            + rm -rf bcm5700-8.2.18
            + exit 0
            # rpm -qilp /usr/src/redhat/RPMS/i386/bcm5700-8.2.18-1.i386.rpm
            Name        : bcm5700                      Relocations: (not relocatable)
            Version     : 8.2.18                            Vendor: Broadcom Corporation
            Release     : 1                             Build Date: Thu 15 Sep 2005 04:39:18 PM CST
            Install Date: (not installed)               Build Host: dev.ipcn.org
            Group       : System Environment/Base       Source RPM: bcm5700-8.2.18-1.src.rpm
            Size        : 180434                           License: GPL
            Signature   : (none)
            Summary     : Broadcom Gigabit ethernet driver
            Description :
            This package contains Broadcom‘s Gigabit ethernet driver.
            /lib/modules/2.4.21-20.ELsmp/kernel/drivers/net/bcm5700.o
            /usr/share/doc/bcm5700-8.2.18
            /usr/share/doc/bcm5700-8.2.18/LICENSE
            /usr/share/doc/bcm5700-8.2.18/README.TXT
            /usr/share/man/man4/bcm5700.4.gz
            # ls -ltr /lib/modules//kernel/drivers/net/bcm5700.o
            修改 /etc/modules.conf
            把
            alias eth0 tg3
            alias eth1 tg3
            改为
            alias eth0 bcm5700
            alias eth1 bcm5700
            当掉网卡 卸载驱动 加载新驱动
            (注意  当掉网卡会造成远程连接断开!!)
            ifdown eth0
            ifdown eth1
            rmmod tg3
            modprobe -v bcm5700
            完成就好了
            # ethtool -i eth0
            driver: bcm5700
            version: 8.2.18
            firmware-version: 5704-v3.26
            bus-info: 02:02.0
            Broadcom Gigabit Ethernet Driver bcm5700 with Broadcom NIC Extension (NICE) ver. 8.2.18 (08/01/05)
            divert: allocating divert_blk for eth0
            eth0: HP NC7782 Gigabit Server Adapter found at mem fdf70000, IRQ 25, node addr 00143850f30c
            eth0: Broadcom BCM5704 Integrated Copper transceiver found
            eth0: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
            divert: allocating divert_blk for eth1
            eth1: HP NC7782 Gigabit Server Adapter found at mem fdf60000, IRQ 26, node addr 00143850f30b
            eth1: Broadcom BCM5704 Integrated Copper transceiver found
            eth1: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON, 802.1Q VLAN ON, NAPI ON
            eth1: Using PCI INTX interrupt
            eth0: Using PCI INTX interrupt
            bcm5700: eth1 NIC Link is UP, 100 Mbps full duplex
            bcm5700: eth0 NIC Link is UP, 100 Mbps full duplex
            ip_tables: (C) 2000-2002 Netfilter core team

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约