LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1223|回复: 11

如何在ETHERNET的网卡列表中添加BROADCOM的网卡!

[复制链接]
发表于 2003-7-23 12:51:10 | 显示全部楼层 |阅读模式
我买了DELL的I8500NB,现在网卡不能驱动,网卡是BROADCOM的440x,我已经安装了驱动,但是在ETHERNET的列表里看不到这个网卡,如果将这个网卡添在ETHERNET的列表里?要打开哪个文件?没有网卡太难受了!
请帮我呀!
 楼主| 发表于 2003-7-23 13:13:50 | 显示全部楼层
下面的是关于安装的README:
                           Installation Notes
                       Broadcom BCM4400 Linux Driver
                              Version 2.0.2
                                04/28/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.


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.



 楼主| 发表于 2003-7-23 13:21:14 | 显示全部楼层
但是其中几个命令不能使用:
#rpm -bb ********
还有:
#insmod ******
这两个命令都不能正确使用,但是#man insmod 却是存在的,不知为什么不能使用!
我是用tar.gz包安装的, 没有用#insmod ******命令TEST ,在/lib/modules/<kernel_version>/kernel/drivers/net/
有bcm4400.o这个文件,但在ETHERNET里没有BROADCOM 440x 的字样,没办法驱动网卡!

ETHERNET就是在redhat-config-network 里选择硬件类型时的选项,我应该咋办?打电话给DELL的公司的技术支持,一群吃屎的!

:help :help :help :help :help :help
发表于 2003-7-23 15:08:10 | 显示全部楼层
我使用的gentoo 的kernel 中,就内建支持这制芯片的网卡的

你还是自己从源码编译,然后使用 insmod 或 modprobe 来加载吧
发表于 2003-7-23 16:29:17 | 显示全部楼层

自己编译它的驱动,然后使用insmod来安装模块就可以可呀

 楼主| 发表于 2003-7-23 16:32:32 | 显示全部楼层
最初由 liuspider 发表
我使用的gentoo 的kernel 中,就内建支持这制芯片的网卡的

你还是自己从源码编译,然后使用 insmod 或 modprobe 来加载吧

可是当我用insmod命令时,系统说没有这个命令呀,那是咋回事?
 楼主| 发表于 2003-7-24 09:30:01 | 显示全部楼层

回复: 自己编译它的驱动,然后使用insmod来安装模块就可以可呀

最初由 Eg_zm 发表

可是我用insmod 和modprobe这两个命令时出现:
bash :unknow commmand
而我用man insmond 或 man modprobe 时证明这两个命令是存在的呀,为什么会出现这种情况?高手们帮帮我吧,装不了网卡,我的NB就几乎没用了!
:eek: :eek: :eek: :eek: :eek: :eek:
:help :help :help :help :help :help
发表于 2003-7-24 09:35:45 | 显示全部楼层
你是用root用户?
locate insmod
找到insmod在那里,然后再试试吧
 楼主| 发表于 2003-7-24 12:06:02 | 显示全部楼层
最初由 ZDN 发表
你是用root用户?
locate insmod
找到insmod在那里,然后再试试吧

我以ROOT身分进入OS,也可以安装了,但在ETHERNET里仍看不到这款网卡,气死我了!咋办呀?:help :help :help :help :help :help :help :help :help :help
发表于 2003-7-24 12:24:09 | 显示全部楼层
insmod 在/sbin/
cd /sbin
./insmod

如果找不到,就locate insmod
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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