论坛风格切换切换到宽版
  • 1138阅读
  • 5回复

==CentOS5.4安装BCM4312无线网卡驱动== [复制链接]

上一主题 下一主题
 
发帖
1998
C币
-193550
威望
372
贡献值
1
银元
-2
铜钱
4466
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-04-27
本帖最后由. 奋斗的毛毛虫. 于 2010-03-01 13:41 编辑            鲜花

本人历经半个月终于配置成功linux下的Broadcom 4312无线网.卡驱动,从中体会到了配置Linux无线网卡的不易之处,下面我把这段时间.得到的经验分享给大.家,希望能给大家一些服务器

帮助。

本人使用的机器是DELL Latitude D630笔记本电脑,安装的是CentOS 5.4版本的操作系统,内核版本.是2.6.18.164,无线网卡是Broad.com(BCM) .4312             电子
Linux安装无线网卡一般分.为三种方法:.
第一种:编译内核
第二种:使.用linux工具软件ndiswrapper,该软件的作用就是在Linux下把windows下的.驱动模拟起来使用。健康
第三种:就是.自己写喽。(谁都不希望是这种情况)    外汇
本人使用的方法是使用Lin.ux工具软件ndisw.rapper安装Broadcom(BCM) 4312无线网卡驱动。电脑
说.心里话,本人真应该好好感谢ndiswrapper工具软件,如果没有它偶很可能要去编译内核.了。电影
一种称为ndiswrapper的程序能够允许Linux.内核模块加载到某些无线卡的Windows驱动上。这就使得手提在Linux.中使用无线卡,即使没有原始的Linux驱.动。投资
ndiswapper官方网站:http://ndiswrapper.sourceforge.net/.
提取驱动组件,这个是前提..!下载了windows下的无线驱动之后,就需要提取和你的.无线网络硬件相关的.sys和.inf文件了,这些就是NdisWrapper所需要的所有东西了,剩下的文.

件就可以丢弃了。


[roo.t@localhost ~]# lspci .| grep Broadcom.
09:00.0 Ethernet controller: B.roadcom Corporation NetXtreme BCM5755.M Gigabit. Ethernet PCI Express (rev 02)外贸
0.c:00.0 Network controller: Broadcom Corporation BCM4312 802.1.1b/g (rev 01)域名

#第一行Broadcom C.orporation NetXtreme BCM5755M Gigabit Ether.net PCI Express是我的物理有线网.卡;第二行B.roadcom Corporation BCM4312 802.11b/g是我的无线网卡.
#以上是要找出是否有不.匹配的无线网卡在加载。.
#即使有.无线网卡驱动已经被加载了,但是不.匹配的话,就等于没有!.
#这可是关键的问题哦.,如果忽略了这.个问题,做了N多次的也没有用。.

将自带的无效驱动.列入黑名单,免得启动时加载。服务器
[root@loc.alhost ~]# vi /etc/mod.probe.d/blacklist           女人
b.lacklist bcm4312.
#编辑 b.lacklist文件,将bcm4.312驱动列入黑名单。(广告)
#编辑完文件保存退出

下载ndiswrapper
请打开这个网址:http://sourceforge.net/projects/ndiswrapper/来下载ndiswrapper,目前最新版本是ndiswrapper-1.56(下载地址:.

http://downloads.sourceforge.net ... wrapper-1.56.tar.gz)。--------------彩票

安装ndiswrapper
[root@localhost ~]#tar zxv.f ndiswrappe.r-1.56.tar.gz             电子
[root@localho.st ~]#cd ndiswrapper..
[root@loc.alhost ndiswrapper-1.56]#mak.e    健康
[r.oot@localhost ndiswrappe.r-1.56]#make install    外汇
按照这样的步骤ndiswrapper工具软件包就安装.成功了(这个应.该没有什么太大的问题吧)。    美容
这就安装了ndiswrapper工具和不.同于当前运行的内核的内核模块。你必须拥有有效的内核源代码。(对大部分.RPM,只需安装“内核-源”软件包。服务器
接着,你需要找到卡的Windows驱动的副本,该副.本是从已经存在的Windows系统(如果是双重导入的)找到的或是下载下来的驱动,都是没有关系.的。S.ourgeForge.net网站列出了

可支持的卡,并且提供链接供大家下载Window.s驱动.。[成人用品]

[.root@localhost ndiswrapper-1.56]# ndis.wrapper -h    .  //使用ndiswrapper -h命令可以查看ndiswrapper命令参数的用法.
i.nstall/manage Windo.ws drivers for ndiswrapper--------------彩票

usage: ndiswrapper OP.TION--- 印刷
-i inffile  .   .  install driver described by 'inffile'[成人用品]
-a devid driver.  use installed 'driver' for 'devid' (dan.gerous)          婚庆
-r d.river        remove. 'driver'           女人
-l               list installed dri..vers外贸
-m          .     write configurat.ion for modprobe          婚庆
-ma              writ.e module alias configuration for all. devices(广告)
-mi              write module in.stall config.uration for all devices教育
-v        .       report .version information--- 印刷

where 'devid' is either PCIID or USBID of .t.he form XXXX:XXXX,虚拟主机
as reported by 'lspci -n' or 'lsu.sb' for th.e card电影

[root@localhost DRIVER]#. ndiswrapper -i bcmwl5.inf     //后面的windows驱动文件*.inf.最.好是指一个绝对路径           鲜花
installin.g bcmwl5 ...             汽车
*注:安装windows驱动除了需要*.inf信息文件,还需要相应的*sys系统文件。.另外,*.inf和*.sys文件必.须要在一个目录里面。.
如果没有*.sys文件,就会出现如下提示:.虚拟主机
installing. bcmwl5 ....
couldn't find "BCMWL5..SYS" in "."; make sure all driver files, including .inf, .sys (and any f..irmware files) are in "." -虚拟主机
instal.lation .may be incomplete.
forcing parameter IBSSG.Mod.e from 0 to 2           女人
couldn't find "BCMWL5.SYS." in "."; make sure all driver files, incl.uding .inf, .sys (and any firmware files) are i.n "." -[成人用品]
in.stallation may be in.complete--- 印刷
forc.ing parameter .IBSSGMode from 0 to 2(广告)
couldn't f.ind "BCMWL5.SYS" in "."; make sure .all driver files, .including .inf, .sys (and any firmware files) are in "." -[成人用品]
installation ma.y .be incomplete.
for.cing parameter IB.SSGMode from 0 to 2.
couldn't find "BC.MWL5.SYS" in "."; make sure all driver. files, including .inf, .sys (and any firmware files) are in ".." -          婚庆
installation. .may be incomplete             电子
forci.ng paramete.r IBSSGMode from 0 to 2虚拟主机
couldn't find "BCMWL5.SYS" in "."; mak.e sure all driver files, including .inf, .sy.s (and any fi.rmware files) are in "." -             汽车
installation may be in.co.mplete<性病>
forcing par.ameter IBSSG.Mode from 0 to 2    健康
couldn't fin.d ".BCMWL5.SYS" in "."; make sure all driver files, including .inf, .sys (and any firmware files) are in. "." -电脑
i.nstallation may be incomplet.e服务器
fo.rcing parameter IBSSGMode. from 0 to 2.
couldn't fin.d "BCMWL5.SYS" in "."; make sure all driver files., including .inf, .sys (and an.y firmware files) are in "." -外贸
inst.all.ation may be incomplete.
forcing parameter IBSSGMode. from. 0 to 2(广告)
couldn't find "BCMWL5.SYS" in "."; make sur.e all driver files, includ.ing .inf, .sys (and any firmware files) are. in "." -             汽车
inst.allatio.n may be incomplete.
forcing parameter IBSSG.M.ode from 0 to 2.
couldn't fi.nd "BCMWL5.SYS" in "."; make .sure all driver files, including .inf, .sys (and any firmware. files) are in "." -             汽车
installation ma.y be in.complete.
forcing. parame.ter IBSSGMode from 0 to 2投资
couldn't find "BCMWL5.SYS" in "."; make su.re all driver files, including .inf, .sys (and any firmware files). are in ".". -.
in.stallation .may be incomplete.
forcing parameter IBSSGMo.de from 0 .to 2.
couldn't fin.d "BCMWL5.SYS" in ."."; make sure al.l driver files, including .inf, .sys (and any firmware files) are in "." -(广告)
i.nstallation may be inc.omplete[成人用品]
forcing parameter IBSSGMode f.rom. 0 to 2    外汇
couldn't find "BCMWL5.SYS". in "."; make. sure all driver files, including .inf, .s.ys (and any firmware files) are in "." -    健康
i.nstallation may be incom.plete虚拟主机
forcing .parameter IBSSGMode fr.om 0 to 2[成人用品]
couldn't find "BCMWL5.SYS" in "."; make sure all driver files, including .i.nf., .sys (and any firmware f.iles) are in "." -.
installation .may be incomp.lete投资
f.orcing parameter IBSSGMode from 0 .to 2投资
c..ouldn't find "BCMWL5.SYS" in "."; make sure all driver files, i.ncluding .inf, .sys (and any firmware files) are in "." -域名
i.nstallation may be. incomplete    健康
forcing parameter .IBSSGMode from 0. to 2.
couldn't find "BCMWL5.SYS" in "."; make sure all .driver files, including .inf, .sys (and any firmwa.re f.iles) are in "." -(广告)
inst.all.ation may be incomplete.
for.cing 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) a.re in "." -.
installation may b.e incomplet.e.
forcing. parameter IBSSGMode from 0 to. 2           鲜花
cou.ldn't find "BCMWL.5.SYS" in "."; make sure all driver files, including .inf, .sys (and any firmware files) are in ".". -投资
installatio.n may be incompl.ete(广告)
forcing parameter IBSSG.Mode 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 b.e incomple.te服务器
forci.ng parameter IBSSGMode from 0 to .2.

安装成功后系.统会生成/etc/ndiswrapper/bcmwl5目录,并且在目录下生成相.关文件。<性病>
[root@localhost DRIVER]# ls /etc/ndiswrap.per./bcmwl5/[成人用品]
14E4:.4311:0007:1028.5.conf  14E4.:4320:0002:1028.5.conf--- 印刷
14E4:4.311:0008:1028.5.conf  14E4:4320:000.3:1028.5.conf投资
14E4:4311.5.conf        .    14E4:4320:0004:1028..5.conf<性病>
14E4:4312:0007:1028.5.conf  14E4:4320.5.con.f.外贸
14.E4:4312:0008:1028.5.conf  14E4:4324:.0001:1028.5.conf    美容
14E.4:4312.5.conf            14E4:432.4:0002:1028.5.conf              乙肝
14E4:4315:0.00B:1028.5..conf  14E4:4324:0003:1028.5.conf           鲜花
14E4:4315:.000C:1028.5.conf  14E4:4324:0004:102.8.5.conf(        游戏          )
14E4:43.15.5.conf .           14E4:4324.5.conf             电子
14E.4:4318:0005:1028.5.conf . 14E4:4328:0009:1028.5.conf             汽车
14E4.:4318:00.06:1028.5.conf  14E4:4328:000A:1028.5.conf电脑
14E4: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:432B..5.conf              乙肝
1.4E4:4319.5.conf     .       bcmwl5.inf.
14E4:4320:00.01:1028.5.conf  bcmwl5.s.ys健康

查看ndisw.rapper安装驱动是否成功虚拟主机
[.root@localhost DRIVE.R]# ndiswrapper -l      //查看驱动是否安装成功    美容
bcmwl5 : drive.r installed.
.       device (.14E4:4315) present虚拟主机
注:.出现以上文字,说明我的电脑里已经成功安装了bcmwl5驱动.。 .

加载模块
ndis.wrapper -m     #加载模块,但是并不会在开机的时候自动加载!建议.继续使用以下两个命令。             电子

[r.oot@localhost DRIVER]# nd.iswrapper -ma电影
module configuration information is st.ored in /etc/modpr.obe.d/ndiswrappe.r.conf.
[root@localhost DRIV.ER]# ndiswrapper. -mi.
mo.dule configuration information is stored in /etc/modprob.e.d/nd.iswrapper.conf              乙肝
#这样的话开机就会自.动加载了!.
[root@localhost D.RI.VER]# modprobe ndiswrapper学习

安装成功无线网卡驱.动之后,就可以.使用NetworkManager来管理了。.
在说个事NetworkManager之前请确认wireless_tool软件工具.包是否.安.装,如果没有安装wireless软件工具包NetworkManager也不会好用的。<性病>
[root@localhost ~]#. rpm -qa | grep wireless-tool..
wireless-tools-.28-2.el5虚拟主机

目前NetworkManager的最新版本是0.8,可以到这里下载NetworkManager原码包:http://ftp.gnome.org/pub/GNOME/sources/NetworkManager/,NetworkManager的rpm包可以在系学习

统安装光盘里面找到。
[root@localhost ~]# rpm -qa | g.re.p NetworkManager      //查看是否安装NetworkMan.ager软件包电影
NetworkManager-glib-0.7.0.-9.el.5             汽车
NetworkMana.ger-0.7.0-9..el5              乙肝
NetworkMa.nager-gnome.-0.7.0-9.el5.
注:.如果出现以上三个软件.包说明NetworkManager已经安装了。           鲜花
如果没有安装NetworkMa.nager,请安装Netwo.rkManager软件包。.
NetworkMan.ager的rpm包安装方法:学习
[root@localhost ~]#rpm -ivh NetworkManager-gl.ib-0.7.0-9.el.5              乙肝
[root@localhost ~]#rpm -ivh .NetworkManager-0.7.0-9.el.5              乙肝
[root@localhost ~]#rpm -ivh ..NetworkManager-gnome-0.7.0-9.el5           建材
或者
[root@localhost ~]# .yum -y install NetworkManager Networ.kManager-gnome--------------彩票

Netw.orkManager的原码包安装方法:虚拟主机
[root@localhost ~].tar zxvf NetworkManager.-0.8.tar.gz.
[root@localhost ~]cd NetworkMa.nager-0.8.            杀毒
[root@localhost NetworkManager.-0.8].make投资
[root@localhost NetworkManager..-0.8]make install[成人用品]

N.etworkManager安装完以后把它设置为开机自动启.动。(        游戏          )
[root.@localhost ~]# chkconfig --level 5 Net.workManager虚拟主机

重新启动计算机
[root@localhost ~]#reboo.t    健康

重新.启动计算机后会发现在屏幕的右上角会出现一个无线网卡图标,右键点击“启用无线”,然后再左键.选择一个无线资源上网即可。            杀毒

希望各位大虾多提提意见,请多多指.正!--- 印刷

参考文献:
http://tech.ddvip.com/2007-03/117351402020505.html--------------彩票
http://www.linuxhobby.com/tag/ndiswrapper/虚拟主机

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线sfs041134.
发帖
2126
C币
-60295
威望
402
贡献值
1
银元
-1
铜钱
4790
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-10
很好,收下,还没试过在CentOS下驱无线呢!

发帖
2025
C币
-235323
威望
401
贡献值
1
银元
-2
铜钱
4701
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-10
不用这么麻烦,在http://www.broadcom.com/support/802.11/linux_sta.php下载这个驱动。按照README做一下就好了。而且这个驱动就是原生的linux下的驱动。

发帖
2108
C币
-235176
威望
396
贡献值
1
银元
-2
铜钱
4672
人人网人气币
0
只看该作者 地板  发表于: 2010-04-10


QUOTE:不用这么麻烦,在下载这个驱动。按照README做一下就好了。而且这个驱动就是原生的linux下的驱动。
yjs_sh 发表于 2010-03-01 14:39



yjs_sh您好,您说的方法我已经试过了,但是不好用,我用这种方法好用了。
谢谢您的回帖。

离线yinghua568.
发帖
2106
C币
-193246
威望
397
贡献值
1
银元
-3
铜钱
4783
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-10
好贴 收藏了

离线ft16.
发帖
2054
C币
-198567
威望
421
贡献值
2
银元
0
铜钱
4653
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-10
希望能够得到大虾们的指点,谢谢!
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个