CentOS上安裝Broadcom無線網卡驅動

<p>今天裝了CentOS 6.3,結果發現無線網卡不能識別。。官網上說,CentOS不支持BCM4311, BCM4312, BCM4313, BCM4321, BCM4322, BCM43224, BCM43225, BCM43227 和 BCM43228芯片的無線網卡。解決方法以下。</p> <p>1. 查看無線網卡芯片</p> <p>首先要確認是不是Broadcom BCM43XX系列的芯片:</p> <p> <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:78b7ab22-7496-46cc-b9b5-eae204fda942" class="wlWriterEditableSmartContent"><pre class="brush: java; gutter: true; first-line: 1; tab-size: 3; toolbar: true; width: 741px; height: 42px;" style=" width: 741px; height: 42px;overflow: auto;">[user@host ~]$ /sbin/lspci | grep Broadcom 0b:00.0 Network controller: Broadcom Corporation BCM4312 802.11a/b/g (rev 01)</pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div> </p>php

<p>2. 在 <a href="http://www.broadcom.com/support/802.11/linux_sta.php">http://www.broadcom.com/support/802.11/linux_sta.php</a> 下載最新的驅動</p>html

<p>3. 解壓下載好的驅動到/usr/local/src/hybrid-wl目錄,並修改相應的權限:</p>java

<p> <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:65cd694c-b843-4403-9100-a67407900fca" class="wlWriterEditableSmartContent"><pre class="brush: java; gutter: true; first-line: 1; tab-size: 3; toolbar: true; width: 1022px; height: 85px;" style=" width: 1022px; height: 85px;overflow: auto;">[root@host ~]# mkdir -p /usr/local/src/hybrid-wl [root@host hybrid-wl]# cd /usr/local/src/hybrid-wl [root@host hybrid-wl]# tar xvfz /path/to/the/tarball/hybrid-portsrc-x86_64-v5.10.91.9.3.tar.gz (下載文件的名稱) [root@host hybrid-wl]# chown -R someuser.somegroup /usr/local/src/hybrid-wl</pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div> </p>linux

<p>4. 編譯Broadcom無線網卡模塊:</p>centos

<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:4c9c800b-326d-4026-9cea-7aff6f59d4fb" class="wlWriterEditableSmartContent"><pre class="brush: java; gutter: true; first-line: 1; tab-size: 3; toolbar: true; width: 1022px; height: 32px;" style=" width: 1022px; height: 32px;overflow: auto;">make API=WEXT </pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div>less

<p>5. 複製新生成的wl.ko文件到系統目錄:</p>orm

<p> <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:39e2d347-fd48-4827-9a17-dee2af936a96" class="wlWriterEditableSmartContent"><pre class="brush: java; gutter: true; first-line: 1; tab-size: 3; toolbar: true; width: 1022px; height: 39px;" style=" width: 1022px; height: 39px;overflow: auto;">cp -rf wl.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/</pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div> </p>htm

<p>6. 將模塊加載至核心</p>blog

<p>首先構建依賴:</p>ci

<p> <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:d4d0bace-d991-48f4-a6ca-3b5de93eb452" class="wlWriterEditableSmartContent"><pre class="brush: java; gutter: true; first-line: 1; tab-size: 3; toolbar: true; width: 1022px; height: 39px;" style=" width: 1022px; height: 39px;overflow: auto;">[root@host ~]# depmod `uname -r`</pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div> </p>

<p>而後加載驅動:</p>

<p> <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:c631aad8-182f-461b-81ec-da5b0d0ed68c" class="wlWriterEditableSmartContent"><pre class="brush: java; gutter: true; first-line: 1; tab-size: 3; toolbar: true; width: 1022px; height: 39px;" style=" width: 1022px; height: 39px;overflow: auto;">[root@host hybrid-wl]# modprobe wl</pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div> </p>

<p>7. 在啓動時將驅動模塊加載至核心:</p>

<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:9D7513F9-C04C-4721-824A-2B34F0212519:0d4cd00e-4abe-45c6-96cb-0c4648ece711" class="wlWriterEditableSmartContent"><pre class="brush: java; gutter: true; first-line: 1; tab-size: 3; toolbar: true; width: 1022px; height: 70px;" style=" width: 1022px; height: 70px;overflow: auto;">[root@host hybrid-wl]# cp -vi /usr/local/src/hybrid-wl/wl.ko /lib/modules/`uname -r`/extra/ [root@host ~]# depmod $(uname -r) </pre><!-- Code inserted with Steve Dunn's Windows Live Writer Code Formatter Plugin. http://dunnhq.com --></div>

<p>&#160;</p>

<p>&#160;</p>

<p>參考文章:</p>

<p><a href="http://wiki.centos.org/HowTos/Laptops/Wireless/Broadcom?action=show">http://wiki.centos.org/HowTos/Laptops/Wireless/Broadcom?action=show</a></p>

<p><a href="http://blog.sina.com.cn/s/blog_6daad9bd0100mrl9.html">http://blog.sina.com.cn/s/blog_6daad9bd0100mrl9.html</a></p>

相關文章
相關標籤/搜索