leisure

JAVA - exceed,helloworld
随笔 - 50, 文章 - 0, 评论 - 11, 引用 - 0
数据加载中……

linux下安装无线网卡驱动(Broadcom 802.11 Linux STA driver)

ubuntu系统的首先需要执行以下两条命令
# apt-get install build-essential linux-headers-generic
# apt-get build-dep linux

确保是否存在该目录
# ls /lib/modules/`uname -r`/build

wget驱动包并进入相应的驱动目录
# wget http://zh-tw.broadcom.com/docs/linux_sta/hybrid-portsrc_x86_32-v5_100_82_38.tar.gz
# tar -zxvf hybrid-portsrc_x86_32-v5_100_82_38.tar.gz
# cd hybrid-portsrc_x86_32-v5_100_82_38

# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
  LD      /data/software/built-in.o
  CC [M]  /data/software/src/shared/linux_osl.o
  CC [M]  /data/software/src/wl/sys/wl_linux.o
/data/software/src/wl/sys/wl_linux.c: In function ‘wl_attach’:
/data/software/src/wl/sys/wl_linux.c:485:3: error: implicit declaration of function ‘init_MUTEX’
make[2]: *** [/data/software/src/wl/sys/wl_linux.o] Error 1
make[1]: *** [_module_/data/software] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make: *** [all] Error 2

如果你的内核版本大于2.6.37,那么恭喜你,编译时会报上述错误,此时,只需打一个补丁即可!
# uname -r

wget补丁到驱动目录(lib、Makefile、src)
# wget http://www.broadcom.com/docs/linux_sta/5_100_82_38.patch
# patch -p0 < 5_100_82_38.patch 

然后再执行make,执行完后会生成wl.ko等文件
# make

移除所有之前相关的驱动,没有则跳过
# lsmod  | grep "b43\|ssb\|wl"
# rmmod b43
# rmmod ssb
# rmmod wl
# echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
# echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf

安装驱动
# modprobe lib80211 
# insmod wl.ko

-资源下载:

-参考资料:


posted on 2011-09-13 00:02 leisure 阅读(10437) 评论(0)  编辑  收藏 所属分类: linux


只有注册用户登录后才能发表评论。


网站导航: