LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: xzhjie

求救:RH9下broadcom网卡问题

[复制链接]
发表于 2003-7-31 16:44:30 | 显示全部楼层

回复: 求救:DELL1100本本网卡不能在LINUX下工作

最初由 xzhjie 发表
我的本本是DELL1100,网卡是Broadcom 440x 10/100 Integrated Controller,在Windows2000和WinXP下正常驱动,在redhat下不能工作,谁能告诉我该如何去做?

你到这里下载这个网卡的驱动:
http://www.broadcom.com/
然后按照它的说明安装,但一定要以root 身份进入OS才能安装成功,我的也是DELL的NB 是I8500,网卡已经安装成功!
发表于 2003-8-24 07:28:44 | 显示全部楼层

求救:RH9下broadcom网卡问题

本人笔记本配有broadcom 44x 10/100 integrated controller网卡(windows2000和xp都可以识别并使用),有网通宽带接入,装有Red Hat Linux 9,不知道该如何驱动网卡及因特网软件配置,望高手赐教,感激不尽!
   本人虽接触电脑4年有余,还是计算机专业,但对于Linux还是一窍不通,所以还望赐教者语言能通俗易懂。最好能讲解一下图形化界面下的配置方法,那命令行看了头大啊~_~\\\
发表于 2003-8-25 01:10:38 | 显示全部楼层
http://www.linuxsir.cn/forum.php ... 8%BF%A8%C7%FD%B6%AF
你可以用lspci看一下是否识别出来了
发表于 2003-8-25 09:46:32 | 显示全部楼层
redhat-config-network
图形化的。。很简单。。
发表于 2003-8-25 13:47:19 | 显示全部楼层

回复: 求救:RH9下broadcom网卡问题

最初由 bearor 发表
本人笔记本配有broadcom 44x 10/100 integrated controller网卡(windows2000和xp都可以识别并使用),有网通宽带接入,装有Red Hat Linux 9,不知道该如何驱动网卡及因特网软件配置,望高手赐教,感激不尽!
   本人虽接触电脑4年有余,还是计算机专业,但对于Linux还是一窍不通,所以还望赐教者语言能通俗易懂。最好能讲解一下图形化界面下的配置方法,那命令行看了头大啊~_~\\\


我的本本用的也是BROADCOM的4400网卡,安装RH9不能自动认到,你得到www.broadcom.com下载最新2.05的驱动,然后以ROOT 身体进入RH,用:tar xzvf *** 解压缩,进入解开的目录,读README,如下:
                           Installation Notes
                       Broadcom BCM4400 Linux Driver
                              Version 2.0.5
                                07/02/2003

                          Broadcom Corporation
                          16215 Alton Parkway,
                          Irvine, CA 92619-7013

                Copyright (c) 2000-2003 Broadcom Corporation
                           All rights reserved


Table of Contents
=================

  Introduction
  Limitations
  Packaging
  Installing Source RPM Package
  Building Driver From TAR File
  Unloading and Removing Driver
  Module Parameters
  Driver Messages
  Statistics
  

Introduction
============

This file describes the Linux driver for the Broadcom BCM4400
series 10/100 Mbps Ethernet Network Controllers.


Limitations
===========

The current version of the driver has been tested on the latest Red Hat
and United Linux distributions, as well as other similar Linux distributions
for i386 CPU architectures using 2.4.x kernels. The driver has been tested
up to kernel version 2.4.20.

The driver has not been ported to other CPU architectures.


Packaging
=========

The driver is released in two packaging formats: source RPM and compressed tar
formats. The file names for the two packages are bcm4400-<version>.src.rpm and
bcm4400-<version>.tar.gz respectively. Identical source files to build the
driver are included in both packages.


Installing Source RPM Package
=============================

The following are general guidelines for installing the driver. Refer to
DISTRIB.TXT for additional installation notes for various Linux distributions.

1. Install the source RPM package:

   rpm -ivh bcm4400-<version>.src.rpm

2. CD to the RPM path and build the binary driver for your kernel:

   cd /usr/src/{redhat,OpenLinux,turbo,packages,rpm ..}

   rpm -bb SPECS/bcm4400.spec

or

   rpmbuild -bb SPECS/bcm4400.spec (for RPM version 4.x.x)

Note that the RPM path is different for different Linux distributions.

3. Install the newly built package (driver and man page):

   rpm -ivh RPMS/i386/bcm4400-<version>.i386.rpm

The driver will be installed in the following path:

2.2.x kernels:

    /lib/modules/<kernel_version>/net/bcm4400.o

2.4.x kernels:

    /lib/modules/<kernel_version>/kernel/drivers/net/bcm4400.o

4. Load the driver:

   insmod bcm4400

5. To configure network protocol and address, refer to various Linux
documentations.


Building Driver From TAR File
=============================

The following are general guidelines for installing the driver. Refer to
DISTRIB.TXT for additional installation notes for various Linux distributions.

1. Create a directory and extract the files:

   tar xvzf bcm4400-<version>.tar.gz

2. Build the driver bcm4400.o as a loadable module for the running kernel:

   cd src
   make

3. Test the driver by loading it:

   insmod bcm4400.o

4. Install the driver and man page:

   make install

See RPM instructions above for the location of the installed driver.

5. To configure network protocol and address, refer to various Linux
documentations.


Unloading and Removing Driver
=============================

To unload the driver, use ifconfig to bring down all eth# interfaces opened
by the driver, then do the following:

rmmod bcm4400


If the driver was installed using rpm, do the following to remove it:

rpm -e bcm4400


If the driver was installed using make install from the tar file, the driver
bcm4400.o has to be manually deleted from the system. Refer to the section
"Installing Source RPM Package" for the location of the installed driver.


Module Parameters
=================

Optional parameters for the driver can be supplied as command line arguments
to the insmod command. Typically, these parameters are set in the file
/etc/modules.conf (see the man page for modules.conf). These parameters take
the form

    <parameter>=value[,value,...]

where the multiple values for the same parameter are for multiple NICs
installed in the system.

Note that default or other meaningful values will be used when invalid values
are selected. Some combinations of parameter values may conflict and lead to
failures. The driver cannot detect all such conflicting combinations.

All the parameters are listed below.

line_speed

    Selects the line speed of the link. This parameter is used together with
    full_duplex and auto_speed to select the speed and duplexity of the link
    and the setting of autonegotiation.
   
    The valid values are:
   
    0      Autonegotiate for highest speed supported by link partner (default)
    10     10 Mbps
    100    100 Mbps

    If line_speed is set to 10, 100, or 1000, the NIC will autonegotiate for
    the selected speed (and selected duplexity) if auto_speed is set to 1.
    If auto_speed is set to 0, the selected speed and duplexity will be
    set without autonegotiation. Note that 1000 Mbps must be negotiated for
    copper twisted pair links.

auto_speed

    Enables or disables autonegotiation. The valid values are:

    0      Autonegotiation disabled
    1      Autonegotiation enabled (default)

    Note that this parameter is ignored and assumed 1 if line_speed is set
    to 0.
   
full_duplex

    Selects the duplexity of the link. This paramter is used together with
    line_speed to select the speed and duplexity of the link. Note that this
    parameter is ignored if line_speed is 0.
   
    The valid values are:
   
    0      half duplex
    1      full duplex (default)
   
   
rx_flow_control

    Enables or disables receiving flow control (pause) frames. This parameter
    is used together with auto_flow_control. The valid values are:
   
    0      pause receive disabled (default)
    1      pause receive enabled if auto_flow_control is set to 0, or
           pause receive advertised if auto_flow_control is set to 1

tx_flow_control

    Enables or disables transmitting flow control (pause) frames. This parameter
    is used together with auto_flow_control. The valid values are:
   
    0      pause transmit disabled (default)
    1      pause transmit enabled if auto_flow_control is set to 0, or
           pause transmit advertised if auto_flow_control is set to 1

auto_flow_control

    Enables or disables autonegotiation of flow control. This parameter is used
    together with rx_flow_control and tx_flow_control to determine the
    advertised flow control capability. The valid values are:
   
    0      flow control autonegotiation disabled (default)
    1      flow control autonegotiation enabled with capability specified in
           rx_flow_control and tx_flow_control (only valid if line_speed is
           set to 0 or auto_speed is set to 1)

tx_pkt_desc_cnt

    Configures the number of transmit descriptors. Default is 64. The
    valid range is from 1 to 511.

rx_pkt_desc_cnt

    Configures the number of receive descriptors. Default is 64. The
    valid range is from 1 to 511.

enable_wol

    Enables or disables magic packet Wake-On-LAN when the system is shutdown.
    Note that not all systems support Wake-On-LAN. The valid values are:

    0    magic packet Wake-On-LAN disabled (default)
    1    magic packet Wake-On-LAN enabled


Driver Messages
===============

The following are the most common sample messages that may be logged in the file
/var/log/messages. Use dmesg -n <level> to control the level at which messages
will appear on the console. Most systems are set to level 6 by default.

Broadcom 4401 Ethernet Driver bcm4400 ver. 1.0.0 (08/21/02)

    Driver signon


eth#: Broadcom BCM4401 100Base-T found at mem f7ffc000, IRQ 18, node addr
0010180407b2

    NIC detected


bcm4400: eth# NIC Link is Up, 100 Mbps full duplex

    Link up and speed indication


bcm4400: eth# NIC Link is Down

    Link down indication


Statistics
==========

Detailed statistics and configuration information can be viewed in the file
/proc/net/nicinfo/eth#.info.



我是用:
Building Driver From TAR File
=============================

The following are general guidelines for installing the driver. Refer to
DISTRIB.TXT for additional installation notes for various Linux distributions.

1. Create a directory and extract the files:

   tar xvzf bcm4400-<version>.tar.gz

2. Build the driver bcm4400.o as a loadable module for the running kernel:

   cd src
   make

3. Test the driver by loading it:

   insmod bcm4400.o

4. Install the driver and man page:

   make install

See RPM instructions above for the location of the installed driver.

5. To configure network protocol and address, refer to various Linux
documentations.

方法安装成功的,安装完成后,用redhat-config-network 命令调出网络配置的图形界面,点ADDNEW ,然后选择ERTHNET,就会看到BROADCOM4400的网卡了,下面的配置不用我说了吧!
发表于 2003-10-5 16:21:35 | 显示全部楼层
goooood
多谢7dehao兄和hades兄
收藏了
发表于 2006-4-21 15:10:16 | 显示全部楼层
请教: 我装的RHT9,在vmware上装的,install完成,insmod bcm4400.o时出现error. 说是init_modules的问题, 请高人指点一下!谢谢!
回复 支持 反对

使用道具 举报

发表于 2006-10-9 14:36:37 | 显示全部楼层
Post by stoneywang
请教: 我装的RHT9,在vmware上装的,install完成,insmod bcm4400.o时出现error. 说是init_modules的问题, 请高人指点一下!谢谢!

楼上的兄弟啊。
就我用vmware的经验,网卡驱动不是这个。
不管你什么网卡,他都是作为AMD打头的一个网卡型号应用的。
回复 支持 反对

使用道具 举报

发表于 2006-10-9 14:47:41 | 显示全部楼层
小弟的惠普d220网卡也是Broadcom 440x 10/100 Integrated Controller的。
根据上面各位大哥的说明,去bcm官网上下载了linux-1.00g压缩包,解开后是:
b44-1.00g-1.src.rpm和b44-1.00g.tar.gz还有readme文件。
可是根据上面的提示执行(以rpm包说吧),执行到rpmbuild -bb b44.spec时,出现如下错误:
[root@localhost SPECS]# rpmbuild -bb  b44.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.98006
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf b44-1.00g
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/b44-1.00g.tar.gz
+ tar -xvvf -
drwxr-xr-x root/root         0 2006-06-07 21:21:07 b44-1.00g/
-rw-r--r-- root/root      3990 2006-06-07 21:21:14 b44-1.00g/Makefile
-rw-r--r-- root/root     64037 2006-06-07 21:29:19 b44-1.00g/b44.c
-rwxr-xr-x root/root     15153 2006-06-07 21:21:07 b44-1.00g/LICENSE
-rw-r--r-- root/root     23272 2006-06-07 21:21:07 b44-1.00g/b44.h
-rw-r--r-- root/root      2076 2006-06-07 21:21:07 b44-1.00g/b44.4
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd b44-1.00g
++ /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.80086
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd b44-1.00g
+ LANG=C
+ export LANG
+ make
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -I/lib/modules/2.4.20-8/build/include -DRED_HAT_LINUX_KERNEL -DOLD_NETIF -DOLD_DMA -DOLD_MALLOC -DNO_DMA_MAPPING_ERROR -O2   -c -o b44.o b44.c
b44.c: In function `b44_get_drvinfo':
b44.c:1877: warning: implicit declaration of function `pci_name'
b44.c:1877: warning: passing arg 2 of `strcpy' makes pointer from integer without a cast
b44.c: At top level:
b44.c:2140: variable `b44_ethtool_ops' has initializer but incomplete type
b44.c:2141: unknown field `get_drvinfo' specified in initializer
b44.c:2141: warning: excess elements in struct initializer
b44.c:2141: warning: (near initialization for `b44_ethtool_ops')
b44.c:2142: unknown field `get_settings' specified in initializer
b44.c:2142: warning: excess elements in struct initializer
b44.c:2142: warning: (near initialization for `b44_ethtool_ops')
b44.c:2143: unknown field `set_settings' specified in initializer
b44.c:2143: warning: excess elements in struct initializer
b44.c:2143: warning: (near initialization for `b44_ethtool_ops')
b44.c:2144: unknown field `nway_reset' specified in initializer
b44.c:2144: warning: excess elements in struct initializer
b44.c:2144: warning: (near initialization for `b44_ethtool_ops')
b44.c:2145: unknown field `get_link' specified in initializer
b44.c:2145: `ethtool_op_get_link' undeclared here (not in a function)
b44.c:2145: warning: excess elements in struct initializer
b44.c:2145: warning: (near initialization for `b44_ethtool_ops')
b44.c:2146: unknown field `get_wol' specified in initializer
b44.c:2146: warning: excess elements in struct initializer
b44.c:2146: warning: (near initialization for `b44_ethtool_ops')
b44.c:2147: unknown field `set_wol' specified in initializer
b44.c:2147: warning: excess elements in struct initializer
b44.c:2147: warning: (near initialization for `b44_ethtool_ops')
b44.c:2148: unknown field `get_ringparam' specified in initializer
b44.c:2148: warning: excess elements in struct initializer
b44.c:2148: warning: (near initialization for `b44_ethtool_ops')
b44.c:2149: unknown field `set_ringparam' specified in initializer
b44.c:2149: warning: excess elements in struct initializer
b44.c:2149: warning: (near initialization for `b44_ethtool_ops')
b44.c:2150: unknown field `get_pauseparam' specified in initializer
b44.c:2150: warning: excess elements in struct initializer
b44.c:2150: warning: (near initialization for `b44_ethtool_ops')
b44.c:2151: unknown field `set_pauseparam' specified in initializer
b44.c:2151: warning: excess elements in struct initializer
b44.c:2151: warning: (near initialization for `b44_ethtool_ops')
b44.c:2152: unknown field `get_msglevel' specified in initializer
b44.c:2152: warning: excess elements in struct initializer
b44.c:2152: warning: (near initialization for `b44_ethtool_ops')
b44.c:2153: unknown field `set_msglevel' specified in initializer
b44.c:2153: warning: excess elements in struct initializer
b44.c:2153: warning: (near initialization for `b44_ethtool_ops')
b44.c:2154: unknown field `get_strings' specified in initializer
b44.c:2154: warning: excess elements in struct initializer
b44.c:2154: warning: (near initialization for `b44_ethtool_ops')
b44.c:2155: unknown field `get_stats_count' specified in initializer
b44.c:2155: warning: excess elements in struct initializer
b44.c:2155: warning: (near initialization for `b44_ethtool_ops')
b44.c:2156: unknown field `get_ethtool_stats' specified in initializer
b44.c:2156: warning: excess elements in struct initializer
b44.c:2156: warning: (near initialization for `b44_ethtool_ops')
b44.c: In function `b44_init_one':
b44.c:2424: warning: implicit declaration of function `SET_ETHTOOL_OPS'
b44.c: At top level:
b44.c:2140: storage size of `b44_ethtool_ops' isn't known
make: *** [b44.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.80086 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.80086 (%build)
自然在/usr/src/redhat/RPMS/i386下面也没有相关的rpm文件了。
小弟的rh是9.0版本,内核应该是2.4.20的。
请问这是怎么回事啊?
是否驱动下载错误呢?
前面大家说的那个驱动是否给小弟发一份呢?bashenandi@163.com,官网上找不到你们说的那个啊。
谢谢大家了。
回复 支持 反对

使用道具 举报

发表于 2008-6-6 18:16:10 | 显示全部楼层
我的QQ号,52543638,希望得到您的帮助,我正面临这个问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表