作者: wusc1
2008-10-26 16:59:50
[i=s] 本帖最后由 wusc1 于 2010-8-1 13:21 编辑 [/i]
[font=宋体][size=6]这个方法不仅仅针对某个网卡驱动,为了方便各位同学安装和下载,我把ndiswrapper官网的链接给出来,同时官网已经给出很多无线网卡用于ndiswrapper的win驱动的下载。nidswrapper官网地址http://sourceforge.net/[/font][/size]
[font=宋体][/size][/font]
[font=宋体][size=6][/font]
[font=宋体]1、是ndiswrapper下载地址(很多版本,自行选择)http://sourceforge.net/projects/ndiswrapper/files/[/font]
[font=宋体][/size][/font]
[font=宋体][size=6][/font]
[font=宋体][/size][/font]
[font=宋体][size=6]2、是各无线网卡用于ndiswrapper的win驱动(也就是后面提到的driver文件夹里的驱动,不限于bcm4310了),其实就在官网主页上可以看到下面的内容,UBS设备、PCI设备等等很多。当然,用Linux的同学我想英语都不错,相信没问题了。[/font]
[font=宋体][/size][/font]
Documentation
[list][*]
USB Device Database[*]
PCI Device Database[*]
PCMCIA Device Database[*]
List of Companies with devices listed on this wiki. Each company's page lists the devices available in the device database.[*]
List of known WORKING devices[*]
List of known MAYBE Working Devices[*]
List of known NOT WORKING Devices[*]
List of UNTESTED Devices[*]
List of PC and Laptop models for builtin devices.[/list][list][*]
HowTos and Setup Guides[*]
FAQ[*]
[size=5][font=宋体][size=6][/font][/size]
[font=宋体][size=6][/font][/size]
[font=宋体][size=6][/font][/size]
[font=宋体][size=6][/font][/size]
[font=宋体][size=6][/font][/size]
[font=宋体][size=6]简化的教程地址:
[/font][/size]
http://www.linuxdiyf.com/bbs/thread-116922-1-1.html[font=宋体]
先感谢[/font]http://hi.baidu.com/qinadai/blog/item/5ce50cdd2f0698df8c102978.html[font=宋体]
他的教程很完美。我也是看他的教程学的,不过没有成功,我用“软件包管理器”删除ndiswrapper后重新安装。以下是下载的ndiswrapper包解压得到的INSTALL文本内容。我按照这个安装成功了,花了我好多天的无线网卡终于安装好了。
我是菜鸟,因为需要,才到网上搜教程,学习试验,这个也是给我做个免费备份。感谢网站!ndiswrapper是通过利用windows的驱动来实现linux无线网卡驱动的,开始我也不明白这个。
建议先看多个教程,明白后再试 。
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
我的联想F41 红旗linux6 sp1安装无线网卡需要的所有东西在附件里:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The instructions below explain how to install ndiswrapper.
(以下是怎样安装ndiswrapper的流程。)
This is rather short version; more details about installation,
troubleshooting, FAQ etc. can be found in the Wiki at
(故障解决可以到下面这个网站问)
http://ndiswrapper.sourceforge.net/wiki
[size=6]Prerequisites (系统必备条件)
=============
You need a recent kernel, at least 2.6.16(
linux内核版本2.6.16以上), with header files for the kernel.
Make sure there is a link to the kernel source from the modules directory.
The command
ls /lib/modules/`uname -r`/build
should have at least 'include' directory and '.config' file.
Downloading (下载ndiswrapper)
===========
Download the latest version of the ndiswrapper sources from here and
extract it with the command
到下面这个链接下载ndiswrapper:
http://ndiswrapper.sourceforge.net
(
用下面这个命令解压或者用解压工具解压下载的软件)
tar zxvf ndiswrapper-version.tar.gz
This will create ndiswrapper-version directory. Change to that
directory and run()
(
进入解压得到的文件夹目录,按F4打开终端,运行下面两个命令)
make uninstall
make
Login as root and run(
以root身份运行下面命令)
make install
安装很快完成。
Install Windows driver (安装windows的驱动:[size=5]附件解压得到的driver目录就是要用的)
======================
[/size]
If this is the first time you install ndiswrapper, you need to install
Windows driver for Windows XP (in some cases Windows NT or Windows
2000 may also work). First, get a Windows driver that is known to
work. See
http://ndiswrapper.sourceforge.net/wiki/List for status
about the device for which you are installing Windows driver.
For this, you need to identify device ID with(
下面命令验证设备的ID)
lspci -n
if it is PCI device or
lsusb (
F41M用这个命令)
if it is USB device.
Then lookup in that List for the device ID and if a driver is known to
work, get that driver. (
确定有网卡存在)
Occassionally, Windows driver on the CD or your
Windows partition may work, but if it doesn't, don't complain - get a
known-to-work driver.
Many Windows drivers are distributed either as zipped files or cab
files. Zipped files, even if they are .exe files, can be extracted
with 'unzip' in Linux; cab files can be extracted with combination of
'cabextract' and 'unshield' programs.
Once the driver has been unpacked, locate .inf and .sys files. If
necessary, move these files so both .inf and .sys are in the same
directory. Some drivers also come with firmware files, such as
fwrad16.bin etc. These files also should be in the same
directory. Then install the Windows driver with
(
把windows的驱动中的bcmwl5.inf和bcmwl5.sys放在同一个目录下(driver目录里都有),进入driver目录,F4打开终端,运行下面命令安装)
ndiswrapper -i bcmwl5.inf (
注意bcmwl中的“l”是字母“l”,不是数字“1”)
This installs .inf file and required .sys and .bin files.
Now, see if installation of Windows driver is "valid" with
(
现在用下面这个命令查看安装正确没有)
ndiswrapper -l
This should report
"driver present, hardware present"
for the driver installed and if that driver is for the device that is
already in the system. If device is not present, it should report
"driver present"
If not, the Windows driver has not been installed properly.
(
我的是)
Now load ndiswrapper module with
(
下面命令装载ndiswrapper模块)
modprobe ndiswrapper
再运行下面命令:
ndiswrapper -m
ndiswrapper -ma
ndiswrapper -mi
加载无线网卡电源,终端命令:iwconfig wlan0 txpower on
登亮后再从右下角的无线网络图标配置。
If everything worked properly, this should initialize 'wlan0' wireless
device, which can be configured with wireless tools, such as
'iwconfig'(
查看无线网卡状态), 'wpa_supplicant' etc.
[/font][/size][/list]