`

CENTOS 6.2 全新安装无线网卡驱动

 
阅读更多

引自http://blog.chinaunix.net/uid-26893599-id-3393604.html

CENTOS 6.2 全新安装无线网卡驱动 2012-11-01 13:14:54

分类:

大体适合无线网卡范围只要不是如下的PCI设备IDs都可以工作。

BRCM PCI PCI Dell Product Name Vendor ID Device ID Product ID ------------- ---------- --------- ----------- 4311 2.4 Ghz 0x14e4 0x4311 Dell 1390 4311 Dualband 0x14e4 0x4312 Dell 1490 4311 5 Ghz 0x14e4 0x4313 4312 2.4 Ghz 0x14e4 0x4315 Dell 1395 4313 2.4 Ghz 0x14e4 0x4727 Dell 1501 4321 Dualband 0x14e4 0x4328 Dell 1505 4321 Dualband 0x14e4 0x4328 Dell 1500 4321 2.4 Ghz 0x14e4 0x4329 4321 5 Ghz 0x14e4 0x432a 4322 Dualband 0x14e4 0x432b Dell 1510 4322 2.4 Ghz 0x14e4 0x432c 4322 5 Ghz 0x14e4 0x432d 43224 Dualband 0x14e4 0x4353 Dell 1520 43225 2.4 Ghz 0x14e4 0x4357 43227 2.4 Ghz 0x14e4 0x4358 43228 Dualband 0x14e4 0x4359 Dell 1530 看似对DELL机器有意见!! 1、下载驱动程序。

地址: http://www.broadcom.com/support/802.11/linux_sta.php

根据你的机器选择32位或者64位驱动。我这里是hybrid-portsrc_x86_32-v5_100_82_112.tar.gz

2、准备

根据你的在用内核版本 确定进行编译工作的目录应该是哪里。

[arlly@localhost ~]$ cd /lib/modules/

[arlly@localhost modules]$ ls
2.6.32-220.2.1.el6.i686  2.6.32-220.el6.i686

我在用的是2.6.32-220.2.1.el6.i686

[arlly@localhost /]$ cd /lib/modules/2.6.32-220.2.1.el6.i686/source
[arlly@localhost source]# md hy

把你下载的文件解压到这个目录里。

[root@localhost hy]# pwd
/lib/modules/2.6.32-220.2.1.el6.i686/source/hy
[root@localhost hy]# ls
lib  Makefile  src

3、编译

[root@localhost hy]# make
KBUILD_NOPEDANTIC=1 make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/kernels/2.6.32-220.2.1.el6.i686'
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  LD      /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/built-in.o
  CC [M]  /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/src/shared/linux_osl.o
  CC [M]  /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/src/wl/sys/wl_linux.o
  CC [M]  /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/src/wl/sys/wl_iw.o
  CC [M]  /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/src/wl/sys/wl_cfg80211.o
  LD [M]  /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/wl.o
WARNING: modpost: missing MODULE_LICENSE() in /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/wl.o
see include/linux/module.h for more information
  Building modules, stage 2.
CFG80211 API is prefered for this kernel version
Using CFG80211 API
  MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/wl.o
see include/linux/module.h for more information
  CC      /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/wl.mod.o
  LD [M]  /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/wl.ko.unsigned
  NO SIGN [M] /lib/modules/2.6.32-220.2.1.el6.i686/source/hy/wl.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.32-220.2.1.el6.i686'

编译结束,生成一个 wl.ko 文件。这个是我们需要的。

 

安装[root@localhost hy]# make install
一般是把文件COPY到/lib/modules/<kernel-version>/kernel/net/wireless 目录。

 

4、配置


1: 移除所有其它的BROADCOM 无线设备驱动。

除了我们已经编译好的驱动外,其它的Broadcom 802.11芯片驱动象b43, bcma和ssb。 这个驱动和我们新的驱动是冲突的。所以我们要先把它们移除。

# lsmod | grep "b43\|ssb\|bcma\|wl" 如果以下任何一种驱动存在,移除它: # rmmod b43 # rmmod ssb # rmmod bcma # rmmod wl 所这些配置加入黑名单,不让它们被使用: # echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf # echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf # echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf 2、根据你的系统执行 # modprobe lib80211 然后: # insmod wl.ko 现在你的网络管理程序应该可以找到设备。你可以使用无线网络了。 注:其它总结一下,我们的过程就是把编译出来的wl.ko 放入/lib/modules/2.6.32-220.2.1.el6.i686/kernel/net/wireless目录。然后执行配置。

[root@localhost wireless]# pwd
/lib/modules/2.6.32-220.2.1.el6.i686/kernel/net/wireless
[root@localhost wireless]# ls
cfg80211.ko             lib80211_crypt_tkip.ko  lib80211.ko
lib80211_crypt_ccmp.ko  lib80211_crypt_wep.ko   wl.ko
注意wl.ko的权限。

[root@localhost wireless]# chmod 755 wl.ko

[root@localhost wireless]# ls -al
总用量 3544
drwxr-xr-x.  2 root root    4096  1月 21 23:23 .
drwxr-xr-x. 27 root root    4096  1月 21 22:02 ..
-rwxr--r--.  1 root root  157204 12月 23 03:51 cfg80211.ko
-rwxr--r--.  1 root root    8788 12月 23 03:51 lib80211_crypt_ccmp.ko
-rwxr--r--.  1 root root   13120 12月 23 03:51 lib80211_crypt_tkip.ko
-rwxr--r--.  1 root root    7340 12月 23 03:51 lib80211_crypt_wep.ko
-rwxr--r--.  1 root root   10588 12月 23 03:51 lib80211.ko
-rwxr-xr-x.  1 root root 3408349  1月 21 23:23 wl.ko

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics