QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 497|回复: 3

不知哪位前辈能帮我解释一下这些步骤都是什么意思?

[复制链接]
发表于 2004-11-25 16:50:49 | 显示全部楼层 |阅读模式
  不知哪位前辈能帮我解释一下这些步骤都是什么意思?


  我的笔记本是HP NC4000 ,网卡不能被正常识别,我在网上找到了他的驱动程序,我装的是REDHAT9。0,我在网卡的README里看到了安装的过程,但不是都是什么意思,不知哪位前辈能帮我解释一下,不胜感谢!  
              

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 bcm5700-<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/bcm5700.spec

or

   rpmbuild -bb SPECS/bcm5700.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/bcm5700-<version>.i386.rpm

Note that the --force option is needed if installing on Red Hat 7.2, 7.3,
2.1AS and others that already contain an older version of the driver.

The driver will be installed in the following path:

2.2.x kernels:

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

2.4.x kernels:

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

2.4.x kernels with bcm5700 as an addon driver (e.g. Red Hat 7.3, 2.1AS):

    /lib/modules/<kernel_version>/kernel/drivers/net/bcm/bcm5700.o

or

    /lib/modules/<kernel_version>/kernel/drivers/addon/bcm5700/bcm5700.o

2.6.0 kernels:

    /lib/modules/<kernel_version>/kernel/drivers/net/bcm5700.ko

4. Load the driver:

   insmod bcm5700
or
   modprobe bcm5700

If loading the driver on Red Hat 7.3, 2.1 AS or other newer kernels with the
tg3 driver, refer to the "Removing tg3 Driver" in DISTRIB.TXT before loading
the driver.

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 bcm5700-<version>.tar.gz

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

   cd src
   make

3. Test the driver by loading it:

   insmod bcm5700.o
or
   insmod bcm5700.ko (on 2.6.x kernels)

If loading the driver on Red Hat 7.3, 2.1 AS or other newer kernels with the
tg3 driver, refer to the "Removing tg3 Driver" in DISTRIB.TXT before loading
the driver.

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.


Patching Driver Into Kernel (Optional)
======================================

Patch files are included for patching the driver into some of the latest
2.4.x kernel source trees. This step is optional and should only be done
by users familiar with configuring and building the kernel. The patch
will modify the orginal kernel's source code.

Follow the following steps to patch the driver into kernel:

1. Select the patch file that matches your kernel and apply the patch:

   patch -p1 -d <kernel_src_root> < bcm5700-<version>-2.4.<x>.patch

where <version> is the version of the bcm5700 driver and 2.4.<x> is the
version of the kernel to patch (e.g. 2.4.10).

Note: <kernel_src_root> is usually /usr/src/linux or /usr/src/linux-2.4.<x>

2. Configure the kernel to include the bcm5700 driver. It can be found
under Network Device Support ---> Ethernet (1000 Mbit) ---> Broadcom BCM5700
support when make menuconfig is run. Select built-in or module for the driver:

   cd <kernel_src_root>
   make menuconfig

3. Compile the kernel:

   make dep
   make clean
   ....
   ....
发表于 2004-11-25 16:55:57 | 显示全部楼层
你下载的是source rpm,还是tarball?
回复

使用道具 举报

 楼主| 发表于 2004-11-25 17:00:58 | 显示全部楼层
前辈,我还没有入门,不好意思,你可以看一下,我的这个贴子。
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=94486&highlight=
回复

使用道具 举报

发表于 2004-11-25 17:10:43 | 显示全部楼层
哦,是这样的,你可以自己编译src.rpm

rpmbuild --rebuild bcm5700-7.3.5.src.rpm

然后进入/usr/src/redhat/RPMS/i386找到刚才编译好的rpm,安装

rpm -ivh bcm5700-7.3.5.i386.rpm

最后加载模块

modprobe bcm5700
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-27 10:21 , Processed in 0.044998 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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