QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 928|回复: 4

rpm -bb SPECS/bcm5700.spec是什么?

[复制链接]
发表于 2005-5-1 11:25:12 | 显示全部楼层 |阅读模式
我在装网卡的时候,按照说明书上的方法安装到rpm -bb SPECS/bcm5700.spec就过不去了,大侠们帮忙看看,好像就没有-bb这个参数啊!!超级郁闷!!!
另-rpm和tar文件是不是都可以装驱动呀?cd src; make;
这一步是什么意思?make不成功,也过不去啊!
我的网卡是华硕A7V333-X主板自带的网卡,bcm5700,晕,broadcom公司的网卡竟然认不出来?好伤心~~~
说明书如下:
Installing Source RPM Package
=============================

1. Install the source RPM package:

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

If installing the driver on SuSE Linux, refer to the Notes section below
before continuing.

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

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.1, 7.2,
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 driver patched in (e.g. Red Hat 7.1, 7.2):

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

or

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

4. Load the driver:

  insmod bcm5700

If loading the driver on Red Hat 7.3, 2.1 AS or newer Red Hat kernels, refer
to the Notes section below before loading the driver.

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

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

1. Create a directory and extract the files:

  tar xvzf bcm5700-<version>.tar.gz

If installing the driver on SuSE Linux, refer to the Notes section below
before continuing.

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

If loading the driver on Red Hat 7.3, 2.1 AS or newer Red Hat kernels, refer
to the Notes section below 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.

Notes
=====
发表于 2005-5-1 12:46:35 | 显示全部楼层
...
rpmbuild -bb SPECS/bcm5700.spec
...
回复

使用道具 举报

 楼主| 发表于 2005-5-1 14:00:27 | 显示全部楼层
太谢谢-月下刀客-公社论坛版主了,困扰了我多年的问题解决了一步,可是还有问题得请教版主。还是上面的问题,到了rpm -ivh RPMS/i386/bcm5700-2.2.27-1.i386.rpm这一步的时候,得到如下:
Prepering。。。            #########################[100%]
Package    bcm5700-2.2.27-1 is already installed file /usr/share/man/man4/bcm5700.4.gz from install of bcm5700-2.2.27-1 c
onflicts with file from package bcm5700-2.2.27-1
不知道这步成功了没有啊?好像有冲突?E文不好呵呵。
然后我又执行下一步:insmod bcm5700 显示如下:
Using /lib/modules/2.4.20-8/kernel/drivers/net/bcm5700.o
         /lib/modules/2.4.20-8/kernel/drivers/net/bcm5700.o:init_module:No such device     Hint:insmod errors can be caused by incorrect module parameters,including invalid IO or IRQ parameters
you may find more information in syslog or the output from dmesg.
不知道这又是什么意思啊?
IO和IRQ好像挺重要,可我不知道在哪里查啊?我的网卡我也不知道IO和IRQ是多少呀?
再次恳请版主及各位大侠帮忙吧!!
我已经弄了半年了,没有人指导还是配不通网卡,万分谢谢!!!
回复

使用道具 举报

发表于 2005-5-1 15:28:10 | 显示全部楼层
上一步用rpm -Uvh RPMS/i386/bcm5700-2.2.27-1.i386.rpm升级安装看看

上面提示你可运行dmesg看看输出,或查看/var/log/syslog(不知有没有这个文件)
回复

使用道具 举报

 楼主| 发表于 2005-5-1 19:40:26 | 显示全部楼层
不行呀,我试过了,还是Package bcm5700-2.2.27-1 is already installed file /usr/share/man/man4/bcm5700.4.gz from install of bcm5700-2.2.27-1 c
onflicts with file from package bcm5700-2.2.27-1
我看了看dmsg结果有:divert:not allocating divert_blk for non-ethernet device ppp0 pcnet32.c : v1.27b 01.10.2002 [email protected]
不知道是什么意思?
网卡真难配,晕死。
帮忙啦~~~~~~~
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-20 07:09 , Processed in 0.038270 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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