• 2008-09-12

    安装usb无线网卡DWL-G122 - [软件与系统]

    Tag:Linux

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://feizf.blogbus.com/logs/28859998.html

        DWL-G122 USB无线网卡厂商只提供了windows驱动程序,要想在Linux下使用,需要自己安装驱动。这就需要ndiswrapper. 那么ndiswrapper是什么呢?可以看这个项目的叙述:
    Some vendors do not release specifications of the hardware or provide a linux driver for their wireless network cards. This project provides a linux kernel module that loads and runs NDIS (Windows network driver API) drivers supplied by the vendors

        说起设备驱动,在windows下一般就是一个xxx.inf文件和一个xxx.sys文件。其中xxx.sys文件是真正的驱动,给上层应用软件提供与硬件交互的函数接口;xxx.inf文件用来描述硬件设备,并在文件中给出了这个设备对应的底层驱动xxx.sys, 在安装程序的时候可以根据硬件的PID/VID来判断本inf文件是否与之match上。

    1. 找到windows XP下无线网卡的驱动
       在安装的无线网卡驱动的XP系统下找到驱动文件,分别是C:/windows/system32/drivers和C:/windows/inf目录。这两个文件也可从直接从这儿 http://feizf.blogbus.com/files/12270089920.tar  下载

    2. 安装ndiswrapper
    从网址http://sourceforge.net/project/showfiles.php?group_id=93482 选择下载ndiswrapper-1.53.tar.gz ,然后解压缩安装:
    foxman@foxman-laptop:~$ tar -xvf ndiswrapper-1.53.tar.gz
    foxman@foxman-laptop:~$ cd ndiswrapper-1.53/
    foxman@foxman-laptop:~/ndiswrapper-1.53$ make
    foxman@foxman-laptop:~/ndiswrapper-1.53$ sudo make install
    安装完成后,可以使用ndiswrapper查看提示 .
    (ubuntu 8.10下可以直接   sudo apt-get install ndiswrapper-*   )


    3. 安装无线网卡驱动
    将oem63.inf和Dr71WU.sys文件拷贝到当前目录,在usb无线网卡没有插上的时候,执行下面命令:
    foxman@foxman-laptop:~$ sudo ndiswrapper -i oem63.inf
    [sudo] password for foxman:
    installing oem63 ...
    然后插上网卡,使用ndiswrapper -l命令可以识别出usb无线网卡驱动:
    foxman@foxman-laptop:~$ ndiswrapper -l
    oem63 : driver installed
        device (07D1:3C03) present (alternate driver: rt73usb)

    4. 设置使用无线网络
    选择屏幕右下角(ubuntu系统)的网络设置对话框,选择wireless connection的properties,Network name(ESSID)选择我的无线路由器my-TPLINK,password type选择WEB KEY(hexadecimal),以及合适的ip/mask/gate/dns.然后执行命令行:
    foxman@foxman-laptop:~$ sudo ifconfig eth0 down
    foxman@foxman-laptop:~$ sudo ifconfig wlan0 up

    如果一切顺利的话,现在就可以使用无线网卡了。

    参考文章
    http://tech.ccidnet.com/art/737/20080129/1356665_1.html
    http://blog.chinaunix.net/u/26691/showart_463984.html


    收藏到:Del.icio.us




    引用地址: