LinuxSir.cn,穿越时空的Linuxsir!

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

驱动intel 2200BG无线网卡-make ipw2200卡住了

[复制链接]
发表于 2006-8-5 15:53:53 | 显示全部楼层 |阅读模式
学校和宿舍只能无线上网,很郁闷的是我的fc5总是不能驱动我的无线网卡,

无线网卡型号:intel 2200BG
操作系统: FC5(正式版)
下载驱动: ieee80211 , ipw2200,ipw2200-fw

操作过程:
先编译安装ieee80211  ->make 和make install 没有错误提示
编译ipw2200 -> make失败

失败提示如下:我不知道错误在什么地方,大侠给个提示

  1. [root@Lyon ipw2200-1.1.0]# make
  2. mkdir -p /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/tmp/.tmp_versions
  3. cp /lib/modules/2.6.15-1.2054_FC5/net/ieee80211/.tmp_versions/*.mod /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/tmp/.tmp_versions
  4. make -C /lib/modules/2.6.15-1.2054_FC5/build M=/home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0 MODVERDIR=/home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/tmp/.tmp_versions modules
  5. make[1]: Entering directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
  6.   CC [M]  /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/ipw2200.o
  7. In file included from include/linux/fs.h:220,
  8.                  from include/linux/mm.h:16,
  9.                  from include/asm/pci.h:7,
  10.                  from include/linux/pci.h:648,
  11.                  from /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/ipw2200.h:46,
  12.                  from /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/ipw2200.c:33:
  13. include/linux/mutex.h:46: error: redefinition of ‘struct semaphore’
  14. In file included from include/linux/fs.h:220,
  15.                  from include/linux/mm.h:16,
  16.                  from include/asm/pci.h:7,
  17.                  from include/linux/pci.h:648,
  18.                  from /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/ipw2200.h:46,
  19.                  from /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/ipw2200.c:33:
  20. include/linux/mutex.h:77:1: warning: "mutex_init" redefined
  21. In file included from /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/ipw2200.c:33:
  22. /home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/ipw2200.h:41:1: warning: this is the location of the previous definition
  23. make[2]: *** [/home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0/ipw2200.o] Error 1
  24. make[1]: *** [_module_/home/lyon/Desktop/wireless/intel_ipw2200_110/ipw2200-1.1.0] Error 2
  25. make[1]: Leaving directory `/usr/src/kernels/2.6.15-1.2054_FC5-i686'
  26. make: *** [modules] Error 2
  27. [root@Lyon ipw2200-1.1.0]#

复制代码
发表于 2006-8-5 19:25:52 | 显示全部楼层
升级内核可以支持ipw2200。有问题联系我qq:199659
回复 支持 反对

使用道具 举报

发表于 2006-8-5 20:08:08 | 显示全部楼层
No need to install anything!!
Just copy firmware to the lib folder
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-5 22:39:02 | 显示全部楼层
yes,I have been copyied firmware to the lib folder.

first,   tar zxvf ipw2200-fw-2.4  (from www.intel.com)
and then copy *.fw to the /lib/fireware/

or install ipw2200-firmware-2.4-2.0.rf.noarch.rpm
回复 支持 反对

使用道具 举报

发表于 2006-8-6 00:10:06 | 显示全部楼层
ATrpms 上有 RPM 包的
我的是3945的,用 yum 装了就可以用了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-6 00:41:36 | 显示全部楼层
请问安装了那些呢?
回复 支持 反对

使用道具 举报

发表于 2006-8-6 12:54:01 | 显示全部楼层
1。添加 atrpms 的源
( 注意不要让它默认是打开的,因为他跟其它的源有冲突,默认打开的话你 yum update 的时候
就惨了,哈哈 )

2。安装
#yum --enablerepo=atrpms install ipw2200-kmdl-`uname -r`

这样它会安装其它三个依赖的包。

3。启动无线支持
写个 shell 就好了。
  1. #! /bin/bash
  2. #
  3. # wireless       Bring up/down integrated wireless networking (ipw3945)
  4. #
  5. # chkconfig: 2345 90 10
  6. # description: Activates/Deactivates eth1 wireless interface (ipw3945)
  7. #
  8. ### BEGIN INIT INFO
  9. # # ipw3945d --help
  10. # usage: ipw3945d [--OPTION]
  11. # options:
  12. #   --quiet               Load silently (unless errors occur)
  13. #   --version             Display version information
  14. #   --debug=value         Specifiy debug level to print
  15. #   --dvals               View possible debug values
  16. #   --foreground          Do not fork to background
  17. #   --kill                Kill any running ipw3945d instance and exit
  18. #   --help                View this help message
  19. #   --isrunning           Check if already running.  Returns 0 if yes.
  20. # See how we were called.
  21. if [ $# -eq 0 ] ; then
  22.         echo "Usage: wireless {start|restart|stop}"
  23. fi
  24. case "$1" in
  25.   start)
  26.         ifconfig | grep "^eth0"
  27.         if [ $? -eq 0 ] ; then
  28.                 echo "eth0 appears to be already started"
  29.                 echo "cowardly refusing to start integrated wireless (ipw3945) .."
  30.                 exit 1
  31. #                echo "start wireless (ipw3945) anyway"
  32.         fi
  33.         /sbin/ipw3945d --isrunning
  34.         if [ $? -eq 0 ] ; then
  35.                 echo "ipw3945d already running"
  36.                 exit 1
  37.         fi
  38.         modprobe ipw3945
  39.         /sbin/ipw3945d
  40.         #ifup eth1
  41.         echo "ipw3945d started .."
  42.         ;;
  43.   stop)
  44.         /sbin/ipw3945d --isrunning
  45.         if [ $? -ne 0 ] ; then
  46.                 echo "ipw3945d not running"
  47.                 exit 1
  48.         fi
  49.         ifdown eth1
  50.         /sbin/ipw3945d --kill
  51.         rmmod ipw3945
  52.         echo "ipw3945d stopped .."
  53.         ;;
  54.   restart)
  55.         $0 stop ; $0 start
  56.         ;;
  57. esac
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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