LinuxSir.cn,穿越时空的Linuxsir!

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

HP笔记本,NX6120 ED626PA,网卡安装不上,请教各位大虾!

[复制链接]
发表于 2008-6-26 00:51:17 | 显示全部楼层 |阅读模式
试过一些方法,但是搞不定:
1、lspci -v
这个命令不识别,不知道怎么看网卡的芯片型号。
2、uname -a
Linux localhost.localdomain 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 i686 i386 GNU/Linux
3、下载了一个驱动(好像是这个芯片):Broadcom b44 Linux Driver
但是编译的时候有Error,信息如下:
[root@localhost redhat]# rpm -bb SPECS/b44.spec
-bb: unknown option
[root@localhost redhat]# rpm -b SPECS/b44.spec
-b: unknown option
[root@localhost redhat]# rpmbuild -bb SPECS/b44.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.17670
+ 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.36270
+ 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.36270 (%build)

4、使用RPM包也有同样的错误,不知道怎么回事;
5、Kernel-source和开发工具什么的我都安装了。

大家可以看看这个网址,应该是电脑的配置:
http://h50176.www5.hp.com/support/RF050PA/drivers/os_1093.html

刚学习Linux,还请大家帮忙想想办法。:thank
 楼主| 发表于 2008-6-26 01:07:53 | 显示全部楼层
这个里面说的好像跟我的有点像,可是我就是按照说明一步步做的,使用压缩包的方式make源代码也不行。
http://www.linuxsir.cn/bbs/thread59125.html
唯一有区别的是我是在终端里面su到root账户的,不是直接进去的。难道有关系?
我再重启进入linux试试。
回复 支持 反对

使用道具 举报

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

本版积分规则

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