日期:2014-05-16  浏览次数:20775 次

linux下安装无线网卡驱动

1下载并解压 Broadcom 驱动程序的压缩档
2 mkdir -p /usr/local/src/hybrid-wl
3tar xvfz
4tar xvfz
5
[root@localhost hybrid-wl]# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/kernels/2.6.18-194.el5-xen-i686'
Wireless Extension API is prefered for this kernel version
Using Wireless Extension API
LD /usr/local/src/hybrid-wl/built-in.o
CC [M] /usr/local/src/hybrid-wl/src/shared/linux_osl.o
In file included from /usr/local/src/hybrid-wl/src/shared/linux_osl.c:17:
/usr/local/src/hybrid-wl/src/include/typedefs.h:86: 错误:与 ‘bool’ 类型冲突
include/linux/types.h:36: 错误:‘bool’ 的上一个声明在此
make[2]: *** [/usr/local/src/hybrid-wl/src/shared/linux_osl.o] 错误 1
make[1]: *** [_module_/usr/local/src/hybrid-wl] 错误 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-194.el5-xen-i686'
make: *** [all] 错误 2
6修改src/include/typedefs.h文件的85行
/*
#ifndef TYPEDEF_BOOL
typedef unsigned char bool;
#endif
*/

7make
8[root@localhost hybrid-wl]# strip --strip-debug wl.ko
9[root@localhost hybrid-wl]# cp -vi /usr/local/src/hybrid-wl/wl.ko /lib/modules/`uname -r`/extra/
10[root@localhost hybrid-wl]# depmod $(uname -r)
11[root@localhost hybrid-wl]# vi /etc/modprobe.d/blacklist
加入以下内容:
blacklist bcm43xx
blacklist ndiswrapper
blacklist b43
blacklist b43legacy
12[root@localhost hybrid-wl]# vi /etc/modprobe.conf
并为你的无线网络卡加入新的驱动程序别名:
alias eth1 wl
13[root@localhost hybrid-wl]# vi /etc/modprobe.d/modprobe.conf.dist
添加如下内容
alias ieee80211_crypt_tkip ieee80211_crypt_tkip
alias eth1 wl

14Starting the NetworkManager service