QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3314|回复: 0

[翻译]BCM4306无线网卡安装ndiswrapper驱动

[复制链接]
发表于 2007-5-5 15:57:26 | 显示全部楼层 |阅读模式
原文在http://ubuntuforums.org/showthread.php?t=340689
按照此文,在我的HP Compaq nx6120上测试成功,网卡为BCM4318

目前支持如下网卡:

[code:1]BCM4306, BCM4311, BCM4312, BCM4318, BCM4319, BCM4320, BCM4324[/code:1]


A. 开始配置

Dell Inspiron 600m 笔记本
Broadcom 4306 无线网卡
Xubuntu 6.10 (Edgy Eft) on a LiveCD
Ethernet connection

B. 为你的系统准备下载和安装实用工具及无线网卡驱动的预置条件

1. 打开终端(应用程序 - 系统 - 终端)建立如下目录:

[code:1]mkdir ~/ndiswrapper
mkdir ~/bcm4306[/code:1]

2. 将sources.list修改成如下样子以下载附加软件...

[code:1]sudo nano /etc/apt/sources.list[/code:1]

...去掉sources.list里如下的注释(移除 #)...

[code:1]deb http://archive.ubuntu.com/ubuntu edgy universe
deb-src http://archive.ubuntu.com/ubuntu edgy universe[/code:1]

...然后保存文件

3. 移除"旧的"bcm43xx驱动模块

[code:1]sudo modprobe -r bcm43xx[/code:1]

3.a. 将bcm34xx无线网卡驱动加入黑名单:

[code:1]echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist[/code:1]

3.b. 注释掉所有和eth1有关的行(在前面加 #):

[code:1]sudo nano /etc/iftab
sudo nano /etc/network/interfaces[/code:1]

4. 安装build-essential工具集:

[code:1]sudo aptitude update
sudo aptitude install build-essential[/code:1]

5. 确定你的内核版本...

[code:1]uname -r[/code:1]

...你将看到类似于这样的输出...

[code:1]2.6.17-10-generic[/code:1]

...然后通过uname -r的输出来更新你的 linux headers:

[code:1]sudo aptitude install linux-headers-2.6.17-10-generic
sudo ln -s /usr/src/linux-2.6.17-10-generic /lib/modules/2.6.17-10-generic/build[/code:1]

C. 下载并安装实用工具及无线网卡驱动

6. 下载ndiswrapper和无线网卡驱动:
(译著:可以直接apt-get install ndiswrapper来安装ndiswrapper,驱动根据网卡的类型可以自己在HP的网站上找到)
[code:1]wget http://downloads.sourceforge.net/ndiswrapper/ndiswrapper-1.34.tar.gz
wget ftp://ftp.hp.com/pub/softpaq/sp33001-33500/sp33008.exe[/code:1]

7. 移动ndiswrapper和无线网卡驱动到如下目录:

[code:1]mv ndiswrapper-1.34.tar.gz ~/ndiswrapper
mv sp33008.exe ~/bcm4306[/code:1]

8. 解压缩并且安装ndiswrapper:

[code:1]cd ~/ndiswrapper
sudo tar -xvzf ndiswrapper-1.34.tar.gz
cd ~/ndiswrapper/ndiswrapper-1.34
make distclean
make
sudo make install[/code:1]

9. 安装解包工具(译著:解Windows下cab包的):
[code:1]sudo aptitude install cabextract[/code:1]

10. 将无线网卡驱动解包:
[code:1]cd ~/bcm4306
cabextract sp33008.exe[/code:1]

11. 透过ndiswrapper来安装无线网卡驱动:
[code:1]sudo ndiswrapper -i bcmwl5.inf[/code:1]

12. 复制 .conf 文件:
(译著:这里原作者是的网卡是bcm4306,如果要安装其他已支持的网卡请先查看 /etc/ndiswrapper/bcmwl5/ 目录下的内容,寻找14E4:XXXX.5.conf字样的文件,其中XXXX是你的网卡型号,如我的是4318)
[code:1]sudo cp /etc/ndiswrapper/bcmwl5/14E4:4306.5.conf /etc/ndiswrapper/bcmwl5/.conf[/code:1]

D. 加载无线网卡驱动并配置你的无线网卡

13. 加载无线网卡驱动:

[code:1]sudo depmod -a
sudo modprobe ndiswrapper[/code:1]

13.a. 如果在执行modprobe命令之后你看到了如下的出错提示...
[code:1]FATAL: Error inserting ndiswrapper (/lib/modules/2.6.17-10-
generic/kernel/drivers/net/ndiswrapper/ndiswrapper.ko): Invalid argument[/code:1]

...那么就做如下的操作...

[code:1]sudo aptitude install ndiswrapper-utils-1.8
sudo rm /usr/sbin/ndiswrapper
sudo ln -s /usr/sbin/ndiswrapper-1.8 /usr/sbin/ndiswrapper[/code:1]

...然后重复步骤13. 直到没有该错误为止

14. 确定你的无线网卡标识符是wlan0:

[code:1]iwconfig[/code:1]

14.a. 如果你的无线网卡标识符不是wlan0,那么在你做了任何修改之后请返回步骤3.a. 和3.b.(注意:重启你的电脑(然后返回步骤14.))

15. 点击 应用程序 - 系统 - 网络 来配置你的无线网卡的连接

15.a. 编辑网络配置文件来配置你的网线连接...

[code:1]sudo nano /etc/network/interfaces[/code:1]

...请确定你的wlan0有类似于如下的内容:

[code:1]auto wlan0
iface wlan0 inet dhcp
wireless-essid your_essid[/code:1]

16. 使ndiswrapper驱动永久有效:

[code:1]sudo ndiswrapper -m[/code:1]

17. 检查/etc/modprobe.d/ndiswrapper

[code:1]sudo nano /etc/modprobe.d/ndiswrapper[/code:1]

...确定有如下内容:

[code:1]alias wlan0 ndiswrapper[/code:1]
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-8 08:48 , Processed in 0.047348 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表