QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3145|回复: 18

FC4下Broadcom网卡安装问题。谢谢!

[复制链接]
发表于 2006-2-1 00:09:36 | 显示全部楼层 |阅读模式
我用的是FC4,笔记本Acer Ferrari3200,网卡Broadcom NetXtreme Gigabit Ethernet。在进行网络配置的时候总激活不了eth0,自动DHCP分配IP失败。于是认为是驱动程序的原因下了Linux版的驱动程序装,文件名tg3-3.43b-1.src.rpm。
由于是新手于是上网(Windows)查得是源rpm,并查到以下方法:
方法一:
1.执行rpm -i your-package.src.rpm
2. cd /usr/src/redhat/SPECS
3. rpmbuild -bp your-package.specs 一个和你软件包同名的specs文件
4. cd /usr/src/redhat/BUILD/your-package/ 一个和你的软件包同名目录
5. ./configure 这一步和编译普通的源码软件一样,可以加上参数
6. make
7. make install
方法二:
1.执行rpm -i you-package.src.rpm
2. cd /usr/src/redhat/SPECS
前两步和方法一相同
3. rpmbuild -bb your-package.specs 一个和你的软件包同名specs文件
这时,在/usr/src/redhat/RPM/i386/ (根据具体包的不同,也可能是i686,noarch等等)
在这个目录下,有一个新的rpm包,这个是编译好的二进制文件。
执行rpm -i new-package.rpm即可安装完成。

用了以上两种方法均到第二步后,发现我的SPECS目录下只有tg3.spec(算不同名么?),而且第三步(两种)一执行完就会出现:
error: Legacy syntax is unsupported: copyright
error: line 9: Unknown tag: Copyright: GPL
请问这是什么问题呢?我以上的方法和判断是否有误呢?请不吝赐教。谢谢!!
发表于 2006-2-1 11:34:40 | 显示全部楼层
直接去Broadcom官方网站下linux下的驱动源代码, 然后自己
configure--》make---》make install
回复

使用道具 举报

 楼主| 发表于 2006-2-1 13:59:09 | 显示全部楼层
不好意思前面没有说清楚。我就是在Broadcom官方网站下的,http://zh-cn.broadcom.com/support/ethernet_nic/downloaddrivers.php,下的Linux(tg3)3.43b的那一个。下下来是tg3-3.43.tgz。
在root下解压出tg3.src.rpm,用我前面说的方法不行。rpm里面有tg3.spec,tg3-3.43b.tar.bz2,文件夹tg3-3.43b,tg3-3.43b里面tg3.c,tg3.h,LICENSE,ChangeLog,Makefile。
在非root用户下解压出文件夹tg3-3.43b,里面tg3.c,tg3.h,ChangeLog,Makefile。
没有configure,没有办法用你说的这个办法啊,用了说没有这个文件。
回复

使用道具 举报

 楼主| 发表于 2006-2-5 01:08:57 | 显示全部楼层
不知道怎么回事网卡被识别出来了,也设ADSL了,我用的是铁通的,没有用户名和密码,在windows下一开机就连着网的。在linux里面也就没有设置用户名和密码。IP选的是DHCP自动。可是网卡没有办法激活。请问这是怎么回事呢?是驱动没装好么?
回复

使用道具 举报

 楼主| 发表于 2006-2-5 22:45:22 | 显示全部楼层
我开了些网上对网络配置的命令的文章,并没有太懂,也只是跟着用了一下,我把返回的结果贴到下面,帮着看一下是什么问题吧:)

[root@localhost ~]# rpm -q system-config-network
system-config-network-1.3.26-1
[root@localhost ~]# rpm -q system-config-network-tui
system-config-network-tui-1.3.26-1
[root@localhost ~]# neat
ALSA lib conf.c:1578snd_config_load1) _toplevel_:51:23:No such file or directory
ALSA lib conf.c:2821snd_config_hook_load) /etc/alsa/cards/aliases.conf may be old or corrupted: consider to remove or fix it
ALSA lib conf.c:2684snd_config_hooks_call) function snd_config_hook_load returned error: No such file or directory
ALSA lib pcm.c:1959snd_pcm_open_conf) Invalid type for PCM default definition (id: default, value: cards.pcm.default)
[root@localhost ~]# /etc/init.d/network start
弹出环回接口: [ 确定 ]
弹出界面 eth0:
正在决定 eth0 的 IP 信息...失败了。
[失败]
弹出界面 Tietong: [失败]
[root@localhost ~]# lspci -v
00:07.1 FireWire (IEEE 1394): Texas Instruments PCI4510 IEEE-1394 Controller (prog-if 10 [OHCI])
Subsystem: Acer Incorporated [ALI]: Unknown device 0057
Flags: bus master, medium devsel, latency 64, IRQ 11
Memory at d0016000 (32-bit, non-prefetchable) [size=2K]
Memory at d0010000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [44] Power Management version 2

00:09.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
Subsystem: Wistron NeWeb Corp.: Unknown device 1220
Flags: fast devsel, IRQ 10
Memory at d0014000 (32-bit, non-prefetchable) [size=8K]

00:0b.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5788 Gigabit Ethernet (rev 03)
Subsystem: Acer Incorporated [ALI]: Unknown device 0057
Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 4
Memory at d0000000 (32-bit, non-prefetchable) [size=64K]
Capabilities: [48] Power Management version 2
Capabilities: [50] Vital Product Data
Capabilities: [58] Message Signalled Interrupts: 64bit+ Queue=0/3 Enable-

00:11.6 Communication controller: VIA Technologies, Inc. AC'97 Modem Controller (rev 80)
Subsystem: Acer Incorporated [ALI]: Unknown device 0057
Flags: medium devsel, IRQ 5
I/O ports at 1400 [size=256]
Capabilities: [d0] Power Management version 2

[root@localhost ~]# lsmod
Module Size Used by
hci_usb 18761 0
parport_pc 28933 1
lp 13001 0
parport 40585 2 parport_pc,lp
autofs4 29253 2
i2c_dev 11073 0
i2c_core 21569 1 i2c_dev
rfcomm 42333 0
l2cap 30661 5 rfcomm
bluetooth 56133 3 hci_usb,rfcomm,l2cap
sunrpc 167813 1
pcmcia 29025 2
ipt_REJECT 5569 1
ipt_state 1857 5
ip_conntrack 41497 1 ipt_state
iptable_filter 2881 1
ip_tables 19521 3 ipt_REJECT,ipt_state,iptable_filter
nls_utf8 2113 2
vfat 13377 2
fat 54621 1 vfat
dm_mod 58101 0
video 15941 0
button 6609 0
battery 9413 0
ac 4805 0
sd_mod 20545 0
md5 4033 1
ipv6 268097 8
usb_storage 73225 0
scsi_mod 148105 2 sd_mod,usb_storage
ohci1394 41353 0
ieee1394 304441 1 ohci1394
yenta_socket 21449 1
rsrc_nonstatic 12737 1 yenta_socket
pcmcia_core 50909 3 pcmcia,yenta_socket,rsrc_nonstatic
uhci_hcd 35152 0
ehci_hcd 41037 0
snd_via82xx_modem 16485 0
shpchp 94405 0
via_ircc 24021 0
irda 129657 1 via_ircc
crc_ccitt 2113 1 irda
snd_via82xx 30081 1
gameport 18633 1 snd_via82xx
snd_ac97_codec 75961 2 snd_via82xx_modem,snd_via82xx
snd_seq_dummy 3653 0
snd_seq_oss 37057 0
snd_seq_midi_event 9153 1 snd_seq_oss
snd_seq 62289 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 51185 0
snd_mixer_oss 17857 2 snd_pcm_oss
snd_pcm 100169 4 snd_via82xx_modem,snd_via82xx,snd_ac97_codec,snd_pcm_oss
snd_timer 33605 2 snd_seq,snd_pcm
snd_page_alloc 9669 3 snd_via82xx_modem,snd_via82xx,snd_pcm
snd_mpu401_uart 10049 1 snd_via82xx
snd_rawmidi 30305 1 snd_mpu401_uart
snd_seq_device 8781 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd 57157 12 snd_via82xx_modem,snd_via82xx,snd_ac97_codec,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 10913 2 snd
tg3 108229 0
joydev 9601 0
ext3 132553 2
jbd 86233 1 ext3

[root@localhost ~]# ifconfig eth0 on
on: 主机名搜索失败
ifconfig: `--help' gives usage information.
[root@localhost ~]# ifup eth0

正在决定 eth0 的 IP 信息...失败了。

谢谢!
回复

使用道具 举报

发表于 2006-2-6 19:02:53 | 显示全部楼层
下载下来用tar  -xvzf 解压后会有两个文件,里面还有一个后缀名为tgz得文件,同样用前面得命令解压,然后进入解压后的目录make一下再make install,注意一下make出来得模块文件的名字然后再modprobe 该模块,最后ifup
回复

使用道具 举报

 楼主| 发表于 2006-2-7 09:55:57 | 显示全部楼层
不好意思,想指出一下,下下来是tg3-3.43.tgz。解压出文件夹tg3-3.43b,里面tg3.c,tg3.h,ChangeLog,Makefile。没见到所说的两个文件和解压后出来的tgz。

[wangxiang@localhost boradcom]$ su
Password:
[root@localhost boradcom]# tar -xvzf tg3-3.43b.tgz
tg3-3.43b/tg3.c
tg3-3.43b/tg3.h
tg3-3.43b/Makefile
tg3-3.43b/ChangeLog
[root@localhost boradcom]# cd tg3-3.43b
[root@localhost tg3-3.43b]# ls
ChangeLog  Makefile  tg3.c  tg3.h
[root@localhost tg3-3.43b]# make
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b/tg3.o
In file included from /mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b/tg3.c:77:
/mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b/tg3.h:232: 错误:‘skb_header_clone d’ 类型冲突
include/linux/skbuff.h:398: 错误:‘skb_header_cloned’ 的上一个定义在此
make[2]: *** [/mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b/tg3.o] 错误 1
make[1]: *** [_module_/mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
make: *** [default] 错误 2
[root@localhost tg3-3.43b]# make install
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b/tg3.o
In file included from /mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b/tg3.c:77:
/mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b/tg3.h:232: 错误:‘skb_header_clone d’ 类型冲突
include/linux/skbuff.h:398: 错误:‘skb_header_cloned’ 的上一个定义在此
make[2]: *** [/mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b/tg3.o] 错误 1
make[1]: *** [_module_/mnt/share/Linux/LinuxSoft/boradcom/tg3-3.43b] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
make: *** [default] 错误 2
[root@localhost tg3-3.43b]# /sbin/modprobe tg3-3.43b
FATAL: Module tg3_3.43b not found.
回复

使用道具 举报

发表于 2006-2-8 19:34:30 | 显示全部楼层
下载下来用tar -xvzf 解压后会有两个文件,里面还有一个后缀名为tgz得文件

呵呵, 我是在win下用rar看的, 可能有点出入.
Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'

FC4自带的gcc4比较新, faint
回复

使用道具 举报

 楼主| 发表于 2006-2-8 19:47:40 | 显示全部楼层
那然后呢?gcc比较新怎么处理?
回复

使用道具 举报

发表于 2006-2-8 22:10:54 | 显示全部楼层
Broadcom 的模块是  sk98lin 吧
加载这个看看

modprobe.conf 里加 alias eth0 sk98lin  ?
回复

使用道具 举报

 楼主| 发表于 2006-2-8 23:34:49 | 显示全部楼层
不行,这样改过以后激活不了,重起以后自己又改回tg3了
回复

使用道具 举报

 楼主| 发表于 2006-2-9 09:20:41 | 显示全部楼层
又装了一遍驱动,没看到有什么错误,可是加载不了模块,用rpm -q也显示没安装。这是怎么回事呢?
[root@localhost ~]#rpm -ivh bcm5700-8.3.14.src.rpm
[root@localhost ~]# cd /usr/src/redhat/SPECS
[root@localhost SPECS]# rpmbuild -bb bcm5700.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8478
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf bcm5700-8.3.14
+ /bin/mkdir -p bcm5700-8.3.14
+ cd bcm5700-8.3.14
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm5700-8.3.14.tgz
+ tar -xvvf -
-rw-r--r-- root/root      1938 2005-11-03 07:49:27 5701rls.c
-rw-r--r-- root/root      7954 2005-11-03 07:49:27 5701rls.h
-rw-r--r-- root/root     14212 2005-11-03 07:49:27 autoneg.c
-rw-r--r-- root/root     14308 2005-11-03 07:49:27 autoneg.h
-rw-r--r-- root/root     26702 2005-11-03 07:49:27 b57diag.c
-rw-r--r-- root/root     16674 2005-11-03 07:49:27 b57proc.c
-rw-r--r-- root/root    156012 2005-11-03 07:53:41 b57um.c
-rw-r--r-- root/root      2486 2005-11-03 07:49:27 bits.h
-rw-r--r-- root/root     13411 2005-11-03 07:49:27 fw_lso05.h
-rw-r--r-- root/root     24994 2005-11-03 07:49:27 fw_stkoffld.h
-rw-r--r-- root/root     19928 2005-11-03 07:49:27 lm.h
-rw-r--r-- root/root     15692 2005-11-03 07:49:27 mm.h
-rw-r--r-- root/root     10411 2005-11-03 07:49:27 nicext.h
-rw-r--r-- root/root     11780 2005-11-03 07:49:27 queue.h
-rw-r--r-- root/root      3933 2005-11-03 07:49:27 tcp_seg.c
-rw-r--r-- root/root    322349 2005-11-03 08:00:25 tigon3.c
-rw-r--r-- root/root    141008 2005-11-03 07:49:27 tigon3.h
-rw-r--r-- root/root     17093 2005-11-03 07:49:27 bcm5700.4
-rwxr-xr-x root/root      4843 2005-11-03 07:49:27 Makefile
-rw-r--r-- root/root     20435 2005-11-03 08:06:14 README.TXT
-rwxr-xr-x root/root     15153 2005-11-03 07:49:27 LICENSE
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm5700-8.3.14.tgz
+ tar -xvvf -
-rw-r--r-- root/root      1938 2005-11-03 07:49:27 5701rls.c
-rw-r--r-- root/root      7954 2005-11-03 07:49:27 5701rls.h
-rw-r--r-- root/root     14212 2005-11-03 07:49:27 autoneg.c
-rw-r--r-- root/root     14308 2005-11-03 07:49:27 autoneg.h
-rw-r--r-- root/root     26702 2005-11-03 07:49:27 b57diag.c
-rw-r--r-- root/root     16674 2005-11-03 07:49:27 b57proc.c
-rw-r--r-- root/root    156012 2005-11-03 07:53:41 b57um.c
-rw-r--r-- root/root      2486 2005-11-03 07:49:27 bits.h
-rw-r--r-- root/root     13411 2005-11-03 07:49:27 fw_lso05.h
-rw-r--r-- root/root     24994 2005-11-03 07:49:27 fw_stkoffld.h
-rw-r--r-- root/root     19928 2005-11-03 07:49:27 lm.h
-rw-r--r-- root/root     15692 2005-11-03 07:49:27 mm.h
-rw-r--r-- root/root     10411 2005-11-03 07:49:27 nicext.h
-rw-r--r-- root/root     11780 2005-11-03 07:49:27 queue.h
-rw-r--r-- root/root      3933 2005-11-03 07:49:27 tcp_seg.c
-rw-r--r-- root/root    322349 2005-11-03 08:00:25 tigon3.c
-rw-r--r-- root/root    141008 2005-11-03 07:49:27 tigon3.h
-rw-r--r-- root/root     17093 2005-11-03 07:49:27 bcm5700.4
-rwxr-xr-x root/root      4843 2005-11-03 07:49:27 Makefile
-rw-r--r-- root/root     20435 2005-11-03 08:06:14 README.TXT
-rwxr-xr-x root/root     15153 2005-11-03 07:49:27 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,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.67521
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm5700-8.3.14
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/usr/src/redhat/BUILD/bcm57 00-8.3.14 modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/b57um.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/b57proc.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/tigon3.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/autoneg.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/5701rls.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/tcp_seg.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/b57diag.o
  LD [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/bcm5700.o
  Building modules, stage 2.
  MODPOST
  CC      /usr/src/redhat/BUILD/bcm5700-8.3.14/bcm5700.mod.o
  LD [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/bcm5700.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.20530
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm5700-8.3.14
+ LANG=C
+ export LANG
+ unset DISPLAY
++ uname -r
++ cut -c1-3
++ sed 's/2\.[56]/2\.6/'
+ BCM_KVER=2.6
+ '[' 2.6 = 2.6 ']'
+ BCM_DRV=bcm5700.ko
+ echo '%defattr(-,root,root)'
++ uname -r
+ '[' -d /lib/modules/2.6.11-1.1369_FC4/kernel/3rdparty/bcm5700 ']'
++ uname -r
+ '[' -d /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/addon/bcm5700 ']'
++ uname -r
+ '[' -d /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/bcm ']'
++ uname -r
+ '[' -d /lib/modules/2.6.11-1.1369_FC4/kernel ']'
++ uname -r
+ mkdir -p /var/tmp/bcm5700-buildroot/lib/modules/2.6.11-1.1369_FC4/kernel/drive rs/net
++ uname -r
+ echo /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/bcm5700.ko
+ '[' -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
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/usr/src/redhat/BUILD/bcm57 00-8.3.14 modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
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.3.14
0 blocks
find: /var/tmp/bcm5700-buildroot/usr/lib: 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.3.14-1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.30169
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm5700-8.3.14
+ DOCDIR=/var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.3.14
+ export DOCDIR
+ rm -rf /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.3.14
+ /bin/mkdir -p /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.3.14
+ cp -pr LICENSE README.TXT /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.3 .14
+ exit 0
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHave Prefix) <= 4.0-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Processing files: bcm5700-debuginfo-8.3.14-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/bcm5700-build root
Wrote: /usr/src/redhat/RPMS/i386/bcm5700-8.3.14-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bcm5700-debuginfo-8.3.14-1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.57450
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm5700-8.3.14
+ rm -rf /var/tmp/bcm5700-buildroot /usr/src/redhat/BUILD/file.list.bcm5700
+ exit 0
[root@localhost SPECS]# cd /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5 700-8.3.14.tar.gz_FILES/bcm5700-8.3.14/src
[root@localhost src]# make
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/mnt/share/Linux/LinuxSoft/ boradcom/Linux/Driver/bcm5700-8.3.14.tar.gz_FILES/bcm5700-8.3.14/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
[root@localhost src]# insmod bcm5700.o
insmod: error inserting 'bcm5700.o': -1 Invalid module format
[root@localhost src]# cd
[root@localhost ~]# cd /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver
[root@localhost Driver]# tar xvzf bcm5700-8.3.14.tar.gz
bcm5700-8.3.14/
bcm5700-8.3.14/src/
bcm5700-8.3.14/src/5701rls.c
bcm5700-8.3.14/src/5701rls.h
bcm5700-8.3.14/src/autoneg.c
bcm5700-8.3.14/src/autoneg.h
bcm5700-8.3.14/src/b57diag.c
bcm5700-8.3.14/src/b57proc.c
bcm5700-8.3.14/src/b57um.c
bcm5700-8.3.14/src/bits.h
bcm5700-8.3.14/src/fw_lso05.h
bcm5700-8.3.14/src/fw_stkoffld.h
bcm5700-8.3.14/src/lm.h
bcm5700-8.3.14/src/mm.h
bcm5700-8.3.14/src/nicext.h
bcm5700-8.3.14/src/queue.h
bcm5700-8.3.14/src/tcp_seg.c
bcm5700-8.3.14/src/tigon3.c
bcm5700-8.3.14/src/tigon3.h
bcm5700-8.3.14/src/Makefile
bcm5700-8.3.14/src/bcm5700.4
bcm5700-8.3.14/README.TXT
bcm5700-8.3.14/LICENSE
[root@localhost Driver]# cd bcm5700-8.3.14/src/
[root@localhost src]# make
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/mnt/share/Linux/LinuxSoft/ boradcom/Linux/Driver/bcm5700-8.3.14/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/b5 7um.o
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/b5 7proc.o
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/ti gon3.o
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/au toneg.o
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/57 01rls.o
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/tc p_seg.o
  CC [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/b5 7diag.o
  LD [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/bc m5700.o
  Building modules, stage 2.
  MODPOST
  CC      /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/bc m5700.mod.o
  LD [M]  /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5700-8.3.14/src/bc m5700.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
[root@localhost src]# insmod bcm5700.o
insmod: error inserting 'bcm5700.o': -1 Invalid module format
[root@localhost src]# make install
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/mnt/share/Linux/LinuxSoft/ boradcom/Linux/Driver/bcm5700-8.3.14/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
gzip -c bcm5700.4 > bcm5700.4.gz
[root@localhost src]# rpm -q bcm5700
package bcm5700 is not installed
[root@localhost src]#
回复

使用道具 举报

发表于 2006-2-9 10:14:18 | 显示全部楼层
Run '/sbin/depmod -a' to update the module database.

这个没做吧?
回复

使用道具 举报

 楼主| 发表于 2006-2-9 10:36:13 | 显示全部楼层
啊,原来这里还有个提示!不知道运行过程中还会给提示……谢啦!
回复

使用道具 举报

 楼主| 发表于 2006-2-9 11:01:49 | 显示全部楼层
没啥区别啊……
[root@localhost ~]# cd /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver
[root@localhost Driver]# rpm -ivh bcm5700-8.3.14-1.src.rpm
   1:bcm5700                ########################################### [100%]
[root@localhost Driver]# cd /usr/src/redhat
[root@localhost redhat]# cd SPECS
[root@localhost SPECS]# rpmbuild -bb bcm5700.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.89571
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf bcm5700-8.3.14
+ /bin/mkdir -p bcm5700-8.3.14
+ cd bcm5700-8.3.14
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm5700-8.3.14.tgz
+ tar -xvvf -
-rw-r--r-- root/root      1938 2005-11-03 07:49:27 5701rls.c
-rw-r--r-- root/root      7954 2005-11-03 07:49:27 5701rls.h
-rw-r--r-- root/root     14212 2005-11-03 07:49:27 autoneg.c
-rw-r--r-- root/root     14308 2005-11-03 07:49:27 autoneg.h
-rw-r--r-- root/root     26702 2005-11-03 07:49:27 b57diag.c
-rw-r--r-- root/root     16674 2005-11-03 07:49:27 b57proc.c
-rw-r--r-- root/root    156012 2005-11-03 07:53:41 b57um.c
-rw-r--r-- root/root      2486 2005-11-03 07:49:27 bits.h
-rw-r--r-- root/root     13411 2005-11-03 07:49:27 fw_lso05.h
-rw-r--r-- root/root     24994 2005-11-03 07:49:27 fw_stkoffld.h
-rw-r--r-- root/root     19928 2005-11-03 07:49:27 lm.h
-rw-r--r-- root/root     15692 2005-11-03 07:49:27 mm.h
-rw-r--r-- root/root     10411 2005-11-03 07:49:27 nicext.h
-rw-r--r-- root/root     11780 2005-11-03 07:49:27 queue.h
-rw-r--r-- root/root      3933 2005-11-03 07:49:27 tcp_seg.c
-rw-r--r-- root/root    322349 2005-11-03 08:00:25 tigon3.c
-rw-r--r-- root/root    141008 2005-11-03 07:49:27 tigon3.h
-rw-r--r-- root/root     17093 2005-11-03 07:49:27 bcm5700.4
-rwxr-xr-x root/root      4843 2005-11-03 07:49:27 Makefile
-rw-r--r-- root/root     20435 2005-11-03 08:06:14 README.TXT
-rwxr-xr-x root/root     15153 2005-11-03 07:49:27 LICENSE
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/bcm5700-8.3.14.tgz
+ tar -xvvf -
-rw-r--r-- root/root      1938 2005-11-03 07:49:27 5701rls.c
-rw-r--r-- root/root      7954 2005-11-03 07:49:27 5701rls.h
-rw-r--r-- root/root     14212 2005-11-03 07:49:27 autoneg.c
-rw-r--r-- root/root     14308 2005-11-03 07:49:27 autoneg.h
-rw-r--r-- root/root     26702 2005-11-03 07:49:27 b57diag.c
-rw-r--r-- root/root     16674 2005-11-03 07:49:27 b57proc.c
-rw-r--r-- root/root    156012 2005-11-03 07:53:41 b57um.c
-rw-r--r-- root/root      2486 2005-11-03 07:49:27 bits.h
-rw-r--r-- root/root     13411 2005-11-03 07:49:27 fw_lso05.h
-rw-r--r-- root/root     24994 2005-11-03 07:49:27 fw_stkoffld.h
-rw-r--r-- root/root     19928 2005-11-03 07:49:27 lm.h
-rw-r--r-- root/root     15692 2005-11-03 07:49:27 mm.h
-rw-r--r-- root/root     10411 2005-11-03 07:49:27 nicext.h
-rw-r--r-- root/root     11780 2005-11-03 07:49:27 queue.h
-rw-r--r-- root/root      3933 2005-11-03 07:49:27 tcp_seg.c
-rw-r--r-- root/root    322349 2005-11-03 08:00:25 tigon3.c
-rw-r--r-- root/root    141008 2005-11-03 07:49:27 tigon3.h
-rw-r--r-- root/root     17093 2005-11-03 07:49:27 bcm5700.4
-rwxr-xr-x root/root      4843 2005-11-03 07:49:27 Makefile
-rw-r--r-- root/root     20435 2005-11-03 08:06:14 README.TXT
-rwxr-xr-x root/root     15153 2005-11-03 07:49:27 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,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.89571
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm5700-8.3.14
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/usr/src/redhat/BUILD/bcm57 00-8.3.14 modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/b57um.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/b57proc.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/tigon3.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/autoneg.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/5701rls.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/tcp_seg.o
  CC [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/b57diag.o
  LD [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/bcm5700.o
  Building modules, stage 2.
  MODPOST
  CC      /usr/src/redhat/BUILD/bcm5700-8.3.14/bcm5700.mod.o
  LD [M]  /usr/src/redhat/BUILD/bcm5700-8.3.14/bcm5700.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.71835
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm5700-8.3.14
+ LANG=C
+ export LANG
+ unset DISPLAY
++ uname -r
++ cut -c1-3
++ sed 's/2\.[56]/2\.6/'
+ BCM_KVER=2.6
+ '[' 2.6 = 2.6 ']'
+ BCM_DRV=bcm5700.ko
+ echo '%defattr(-,root,root)'
++ uname -r
+ '[' -d /lib/modules/2.6.11-1.1369_FC4/kernel/3rdparty/bcm5700 ']'
++ uname -r
+ '[' -d /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/addon/bcm5700 ']'
++ uname -r
+ '[' -d /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/bcm ']'
++ uname -r
+ '[' -d /lib/modules/2.6.11-1.1369_FC4/kernel ']'
++ uname -r
+ mkdir -p /var/tmp/bcm5700-buildroot/lib/modules/2.6.11-1.1369_FC4/kernel/drive rs/net
++ uname -r
+ echo /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net/bcm5700.ko
+ '[' -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
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/usr/src/redhat/BUILD/bcm57 00-8.3.14 modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
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.3.14
0 blocks
find: /var/tmp/bcm5700-buildroot/usr/lib: 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.3.14-1
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.85398
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm5700-8.3.14
+ DOCDIR=/var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.3.14
+ export DOCDIR
+ rm -rf /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.3.14
+ /bin/mkdir -p /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.3.14
+ cp -pr LICENSE README.TXT /var/tmp/bcm5700-buildroot/usr/share/doc/bcm5700-8.3 .14
+ exit 0
Requires(interp): /bin/sh /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHave Prefix) <= 4.0-1
Requires(post): /bin/sh
Requires(postun): /bin/sh
Processing files: bcm5700-debuginfo-8.3.14-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/bcm5700-build root
Wrote: /usr/src/redhat/RPMS/i386/bcm5700-8.3.14-1.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/bcm5700-debuginfo-8.3.14-1.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.65594
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd bcm5700-8.3.14
+ rm -rf /var/tmp/bcm5700-buildroot /usr/src/redhat/BUILD/file.list.bcm5700
+ exit 0
[root@localhost SPECS]# /sbin/depmod -a
[root@localhost SPECS]# cd /mnt/share/Linux/LinuxSoft/boradcom/Linux/Driver/bcm5 700-8.3.14/src
[root@localhost src]# make
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/mnt/share/Linux/LinuxSoft/ boradcom/Linux/Driver/bcm5700-8.3.14/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
[root@localhost src]# insmod bcm5700.o
insmod: error inserting 'bcm5700.o': -1 Invalid module format
[root@localhost src]# make install
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/mnt/share/Linux/LinuxSoft/ boradcom/Linux/Driver/bcm5700-8.3.14/src modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
[root@localhost src]# rpm -q bcm5700
package bcm5700 is not installed
[root@localhost src]#
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-27 07:54 , Processed in 0.096969 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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