本帖最后由 奋斗的毛毛虫. 于 2010-0.3-01 13:41 编辑 电脑
本人历经半个月终于配置成功linux下的Broadcom .4312无线网卡驱动,从中体.会到了配置Linux无线网卡.的不易之处,下面我把这段时间得到的经验分享给大家,希望能给大家一些 外汇
帮助。
本人.使用的机器是DELL Latitu.de D630笔记本电脑,安装的是CentOS 5.4.版本的操作系统,内核版本是2.6.18.164,无线网卡是Broadcom(BCM) 4312.
Li.nux安装无线网卡一般分为三种方法:投资
第一种:编译内核
第.二种:使用linux工具软件ndiswrapper,该软件的作用就是在Linux下把windows下的.驱动模拟起来使用。电影
第三种:就是自己写喽。(谁都不希望.是这种情况) 汽车
本人使用的方法是使用Linu.x工具软件ndi.swrapper安装Broadcom(BCM) 4312无线网卡驱动。--------------彩票
说心里话,.本人真应该好好感谢ndiswrapper工具软件,如果没.有它偶很可能要去编译内核了。( 游戏 )
一种称为ndiswrapper的程序能够允许Linux内核模块加载到某些无线卡的Windows驱动上。这.就使得手提在Linux中使用无线卡,即使.没有原始的L.inux驱动。 健康
ndiswapper官方网站:
http://ndiswrapper.sourceforge.net/域名
提取驱动组件,这个是前提!下载了windows下的无线驱动之后,就需要提.取和你的无线网络硬件.相关的.sys和.inf文件了,这些就是Nd.isWrapper所需要的所有东西了,剩下的文电脑
件就可以丢弃了。
[root.@localhost. ~]# lspci | grep Broadcom虚拟主机
09:00.0 Ethernet controller: Broadcom Cor.poration NetXtreme. BCM5755M Gigabit Ethernet PCI E.xpress (rev 02) 女人
0c:00.0 Network contr.oller: Bro.adcom Corporation BCM4312 802.11b/g (rev 01) 女人
#第一行Broadcom Corporation NetXt.reme BCM5755M Gigabi.t Ethernet PCI Express是我的物理有线网卡;第二行Broadcom Corpora.tio.n BCM4312 802.11b/g是我的无线网卡[成人用品]
#以上是要找出是否有不匹配的无线.网卡在加载。.
#即使.有.无线网卡驱动已经被加载了,但是不匹配的话,就等于没有!.
#这可是关键的问题哦,如果忽.略了这个问题,做了N多.次的也没有用。学习
将自带的无效驱动列入黑名单,免得启动时加.载。--- 印刷
[root@localhost ~]# vi /etc/modprob.e.d/blacklist..
blackl.ist bcm4312.
#编辑 blackl.ist文件,将bcm4312驱动.列入黑名单。 汽车
#编辑完文件保存退出
下载ndiswrapper
请打开这个网址:
http://sourceforge.net/projects/ndiswrapper/来下载ndiswrapper,目前最新版本是ndiswrapper-1.56(下载地址:健康
http://downloads.sourceforge.net ... wrapper-1.56.tar.gz)。 杀毒
安装ndiswrapper
[root@localhost ~]#tar zxvf nd.iswrapper-1..56.tar.gz.
[root@localho.s.t ~]#cd ndiswrapper 鲜花
[
root@loca.lhost ndiswrapper-1.56]#.make学习
[
root@loca.lhost ndiswrapper-1.56]#make insta.ll外贸
按.照这样的步骤ndiswrapper工具软件包就安装成功了(这个应该没有.什么太大的问题吧)。--------------彩票
这就安装了ndiswrapper工具和不同于当前运行的内核的内核模块。你必须拥有有效的内.核源代.码。(对大部分RPM,只需安装“内核-源”软件包。.
接着,你需要找到卡的Windows驱动的副本,该副本是从已经存.在的Windows系统(如果是双重导入的)找到的或是下载下来的.驱动,都是没有关系的。SourgeForge.net网站列出.了 建材
可支持的卡,..并且提供链接供大家下载Windows驱动。.
[
root@local.host ndiswrapper-1.56]# .ndiswrapper -h //使用ndiswrapper -h命令可以.查看ndiswrapper命令参数的用法--- 印刷
instal.l/manage Windows drivers fo.r ndiswrapper.
usage: ndiswrapp.er OPTION.
-i. inffile install. driver described by 'inffile' 电子
-a de.vid driver use installed 'driver' for 'devid' (dange.rous) 建材
-r dri.ver remove 'd.river'虚拟主机
-l lis.t .installed drivers学习
-m .write configuration for modprob.e 建材
-ma write. module .alias configuration for all devices电脑
-mi write modul.e install configura.tion for all devices( 游戏 )
-v . report v.ersion information.
where 'devid' is .either PCIID or USBID o.f the form XXXX:XXXX, 婚庆
as repor.ted by 'lspci -n' or 'lsusb' for the car.d 建材
[
r.oot@loc.alhost DRIVER]# ndiswrapper -i b.cmwl5.inf //后面的windows驱动文件*.inf最好是指一个绝对路径 电子
ins.talling bcmwl5 ... 建材
*注:安装window.s驱动除了需要*.inf信息文件,还需要相应的*.sys系统文件。另外,*.inf和*.sys文件必须要在一个目录里面。 建材
如果没有*.sys文件.,就会出现如下提示:健康
installing bcm.wl5 ...学习
couldn't find "BCMWL5.SYS" in "."; make sure all driver files, including. .inf, .sys (and any firmware .files). are in "." - 健康
insta.llation may be. incomplete 汽车
forcing pa.rameter IBSSGMode fr.om 0 to 2.
couldn't find "BCMWL5..SYS." in "."; make sure all driver files, in.cluding .inf, .sys (and any firmware files) are in "." -.
i.nstallation may be. incomplete 乙肝
f.orcing parameter IBSSGMode from 0 .to 2(广告)
cou.ldn't find ."BCMWL5.SYS" in "."; make sure all driver files, including .inf, .sy.s (and any firmware files) are in "." ---- 印刷
installation may be inc.omp.lete 女人
forcin.g parameter IB.SSGMode from 0 to 2健康
couldn't find "BCMWL5.SYS" in "."; make sure all driv.er files, i.ncluding .inf, ..sys (and any firmware files) are in "." -<性病>
installation may .be incomplete.虚拟主机
forc.ing parameter IBSSGMode. from 0 to 2虚拟主机
couldn't find "BCMWL5.SYS" in "."; make sure all driver .files, including .inf, .sys (an.d any firmware files) are in ."." -外贸
installat.ion may be incom.plete电影
forcing. parameter IBSSGMode from 0 to. 2 杀毒
couldn'.t find "BCMWL5.SYS" in "."; make. sure all driver files, including .inf, ..sys (and any firmware files) are in "." -.
installa..tion may be incomplete.
forci.ng p.arameter IBSSGMode from 0 to 2.
couldn.'t find "BCMWL5.SYS" in "."; make sure all driver files, including .inf, ...sys (and any firmware files) are in "." -.
installation may be inco.mple.te--- 印刷
forcing paramete.r IBSS.GMode from 0 to 2 建材
couldn't find "BCMWL5.SYS" in "."; make sure all driver f..iles, including .inf, .sys. (and any firmware files) are in "." - 健康
installa.ti.on may be incomplete投资
forcin.g parameter IBSSGMode f.rom 0 to 2电影
couldn't find "BCMWL5.SYS" in "."; make sure all drive.r files, including .inf, .sys (and any firmware files) are. .in "." ---------------彩票
installation. may .be incomplete 电子
forcing paramete.r IBSSGMode from 0 .to 2教育
couldn't find "BCMWL5.SYS" in "."; make sure a.ll driver files, including .inf, .sy.s (and any firmware files) are in. "." -.
insta.llati.on may be incomplete健康
forcing parameter. IBSSGMode fro.m 0 to 2健康
couldn't find "BCMWL5.SYS" i.n "."; make sure all driver files., including .inf, .sys (and any firmware files.) are in "." - 建材
installation ma.y be inco.mplete服务器
forcing parameter IBSSGMode from ..0 to 2外贸
couldn't find "BCMWL5..SYS" in "."; make sure .all driver files, including .inf, .sys (and any f.irmware files) are in "." -.
i.nstallation may .be incomplete.
forcing parameter IBSSGMod.e from 0 t.o 2 健康
couldn't find "BCMWL5.SYS" in "."; make sure all drive.r files, including ..inf, ..sys (and any firmware files) are in "." -健康
installation. may .be incomplete 婚庆
forcing par.ameter IBS.SGMode from 0 to 2投资
couldn't find "BCMWL5.SYS" in "."; make su.re all d.r.iver files, including .inf, .sys (and any firmware files) are in "." - 婚庆
i.nstalla.tion may be incomplete电脑
forcing .parameter IBSS.GMode from 0 to 2.
cou.ldn.'t find "BCMWL5.SYS" in "."; make sure all driver files, including .inf, .sys (and an.y firmware files) are in "." -学习
insta.llation may .be incomplete学习
for.cing parameter IBSSGM.ode from 0 to 2投资
couldn't find "BCMWL5.SYS" in "."; make sure all driver f..iles,. including .inf, .sys (and any firmware files) are in "." - 汽车
install.ation may be incomplet.e 乙肝
forcing parameter. IBSSGMode from. 0 to 2( 游戏 )
couldn't find "BCMWL5.SYS" in "."; make sure all driver files..,. including .inf, .sys (and any firmware files) are in "." -.
installation may be in.comp.lete学习
f.orcing .parameter IBSSGMode from 0 to 2(广告)
couldn't find "BCMWL5.SYS" in ."."; make sure all driver files., including .inf, .sys (and any firmware files) are in ".". -.
i.nstallation may be incomplete. 杀毒
forcing paramete.r IBSSGMode fr.om 0 to 2--------------彩票
安装成功后系统.会生成/etc/ndiswrap.per/bcmwl5目录,并且在目录下生成相关文件。.
[root@localhost DRIVE.R]# ls. /etc/ndiswrapper/bcmwl5/ 建材
14E4:4311:0007:1028.5.conf 14E4:.4320:0002.:1028.5.conf( 游戏 )
14E4:4311:0008:1028.5.conf .14E4:4320:0003:1028..5.conf域名
1.4E4:4311.5.conf . 14E4:4320:0004:1028.5.conf 杀毒
14E4:4312:0007:1.028.5.conf 14E4:4320..5.conf 电子
14E4:431.2:0.008:1028.5.conf 14E4:4324:0001:1028.5.conf.
14E4:431.2.5.conf . 14E4:4324:0002:1028.5.conf.
14E4:4315:000B:10.28.5.conf 14E4:4324:00.03:1028.5.conf--- 印刷
1.4E4:4315:00.0C:1028.5.conf 14E4:4324:0004:1028.5.conf学习
14E4:4315.5.conf . 14.E4:4324.5.conf<性病>
14E4:4318:0005:1.028.5.conf 14E4:4328:00.09:1028.5.conf.
14E4:4318:0006:1028..5.conf 14E4:4328:000A:1028.5.co.nf.
14.E4.:4318.5.conf 14E4:4328.5.conf 乙肝
14E4:4319.:0005:1028.5..conf 14E4:432B:000D:1028.5.conf--- 印刷
14E4:4319:0006:1028.5..conf 14E4:432.B.5.conf 美容
14E4:4319.5.conf . b.cmwl5.inf健康
14E4:4320:0001.:1028.5.conf bcm.wl5.sys域名
查看nd.iswrapper安装驱动是否成功<性病>
[root@localhost. DRIVER]# nd.iswrapper -l //查看驱动是否安装成功 美容
bcmwl5 : driver instal.led 电子
device (14.E4:431.5) present 美容
注:出现以上文字,说明我的..电脑里已经成功安装了bcmwl5驱动。 投资
加载模块
ndiswrapper -m #加载模块,但是并不会在开机的.时候自动加载!.建议继续使用以下两个命令。.
[
root@l.ocalhos.t DRIVER]# ndiswrapper -ma(广告)
module configura.tion information is stored in /etc/mod.probe.d/nd.iswrapper.conf.
[root@localhost DRIVE.R]# ndiswrappe.r -mi电脑
module configuration informat.ion i.s stored in /etc/modprobe.d/ndiswrappe.r.conf.
#这样的.话开机就会自动加载了!电影
[root@..localhost DRIVER]# modprobe ndiswrapper虚拟主机
安装成功无线网卡驱动.之后,就可以使用Network.Manager来管理了。.
在说个事.NetworkManager之前请确认wireless_tool软件工具.包是否.安装,如果没有安装wireless软件工具包NetworkManager也不会好用的。 汽车
[root@localhost ~]# rpm -.qa | grep. wireless-tool--------------彩票
wireless-t.ools-28-2.el5--------------彩票
目前NetworkManager的最新版本是0.8,可以到这里下载NetworkManager原码包:
http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/,NetworkManager的rpm包可以在系.
统安装光盘里面找到。
[root@localhost ~]#. rpm .-qa | gre.p NetworkManager //查看是否安装NetworkManager软件包 电子
NetworkManager-glib-0.7..0-9.e.l5 外汇
Netw.orkManager-0..7.0-9.el5.
NetworkManager-.gnome-0.7.0-9.e.l5[成人用品]
注:如果出现以上三个软件包.说明NetworkManager已经安装.了。电脑
如果没有安装Netw.orkManager,请安装Network.Manager软件包。 汽车
N.etworkManager的rpm包安装方法:电脑
[root@localhost ~]#rpm .-ivh NetworkManag.er-glib-0.7.0-9.el5--- 印刷
[ro.ot@localhost ~]#rpm .-ivh NetworkManager-0.7.0-9.el5.
[.r.oot@localhost ~]#rpm -ivh NetworkManager-gnome-0.7.0-9.el5 外汇
或者
[root@localhost ~]# yum -y install Networ.k.Manager NetworkManager-gnome
NetworkManager.的原码包安装方法:.
[
root@loca.lhost ~]ta.r zxvf NetworkManager-0.8.tar.gz健康
[root@localhost ~].cd N.etworkManager-0.8健康
[
root@localho.st NetworkMa.nager-0.8]make 汽车
[r.oot@localhost NetworkManager-0.8]m.ake install域名
Networ.kManager安装.完以后把它设置为开机自动启动。.
[root@localhost ~].# chk.config --level 5 NetworkManager 建材
重新启动计算机
[
root@localh.ost ~]#reboot<性病>
重新启动计算机后会发现在屏幕的右上角会出现一个无线网卡图标,右键点击“.启用无线”,然后再左键选择一.个无线资源上网即可。.
希望各位大虾多提提意见,请多.多指正!( 游戏 )
参考文献:
http://tech.ddvip.com/2007-03/117351402020505.html 健康
http://www.linuxhobby.com/tag/ndiswrapper/ 杀毒