2009年4月19日 星期日

Dlink USB dwa-110 無線網卡在Debian linux 上設定方法


Ralink RT2501USB/RT2571W (RT73) devices

This page describes how to enable support for WiFi devices based on the Ralink RT2501USB chipset on Debian systems.

Drivers

The Ralink RT2501USB wireless LAN chipset is supported by three native drivers:

  • rt73 (Legacy driver)

    • Released by Ralink under the GPL.
    • Not generally recommended for use.
  • rt73 (Enhanced legacy driver)

  • rt73usb (Next-generation driver)

    • The recommended driver to use.
    • Included in the mainline kernel starting from 2.6.24.
    • Source previously packaged in rt2x00-source, removed from Debian to resolve bug 474189.

Both the enhanced legacy and next-generation drivers are maintained by the rt2x00 project. Supported devices are listed at the end of this page.

All drivers require non-free firmware for their operation. This can be provided by the firmware-ralink package.

{i} The RT2501USB is not to be confused with the RT2500USB, which is supported by different drivers.

Installation

rt73usb (next-generation driver)

Lenny

Using Etch? Skip to the Etch section.

As drivers from the rt2x00 project are included in the mainline kernel, the rt73usb driver is present on your system. Firmware is required to be installed prior to driver operation:

  1. Add a "non-free" component to /etc/apt/sources.list, for example:

    # Debian Lenny
    deb http://ftp.us.debian.org/debian lenny main contrib non-free
  2. Update the list of available packages, then install the firmware-ralink and wireless-tools packages:

    aptitude update
    aptitude install firmware-ralink wireless-tools
  3. The necessary kernel module should be automatically loaded. If necessary, it can be manually loaded via:

    modprobe rt73usb
    If not already performed, connect the device to your system.
  4. Verify your device has an available interface:

    iwconfig
  5. Raise the interface to activate the radio, for example:

    ifconfig wlan0 up
  6. Configure your wireless interface as appropriate.

Troubleshooting
  • Examine the kernel ring buffer (dmesg) to verify the required firmware files are being loaded by the driver. Lack of firmware is the usual reason for the "SIOCSIFFLAGS: No such file or directory" error message.

Etch with 2.6.18 kernel

" src="http://wiki.debian.org/htdocs/modern/img/attention.png" title="" width="15" height="15"> Although an etch/rt2x00-source package is available, this version is considered experimental and only supports a small number of devices. The devices which are supported are likely to encounter issues.

It is highly recommended to use an EtchAndAHalf kernel image, which will provide your system with an updated rt73usb driver included as part of the kernel. You will not need to use etch/rt2x00-source.

Install an EtchAndAHalf kernel image (apt-cache search linux-image-2.6.24-etchnhalf and install a package appropriate for your system), restart your system to boot using this kernel, then follow the Etch with 2.6.24 kernel procedure below.

Etch with 2.6.24 kernel

As drivers from the rt2x00 project are included in the mainline kernel, the rt73usb driver is present on your system. Firmware is required to be installed prior to driver operation:

  1. Install the etch/wireless-tools package:

    aptitude update
    aptitude install wireless-tools
  2. Add the Debian Backports repository to /etc/apt/sources.list, also including the "non-free" component. For example:

    # Backported packages for Debian Etch
    deb http://www.backports.org/debian etch-backports main contrib non-free
  3. Update the list of available packages and install the etch-backports/debian-backports-keyring package:

    aptitude update
    aptitude -t etch-backports install debian-backports-keyring

    As your system does not yet have the GnuPG archive key of the backports.org repository installed, you will be asked to confirm installation of a package from an untrusted repository. Enter Yes when prompted.

  4. Install the etch-backports/firmware-ralink package:

    aptitude update
    aptitude -t etch-backports install firmware-ralink
  5. The necessary kernel module should be automatically loaded. If necessary, it can be manually loaded via:

    modprobe rt73usb
    If not already performed, connect the device to your system.
  6. Verify your device has an available interface:

    iwconfig
  7. Raise the interface to activate the radio, for example:

    ifconfig wlan0 up
  8. Configure your wireless interface as appropriate.

Troubleshooting
  • Examine the kernel ring buffer (dmesg) to verify the required firmware files are being loaded by the driver. Lack of firmware is the usual reason for the "SIOCSIFFLAGS: No such file or directory" error message.

rt73 (enhanced legacy driver)

Lenny

While use of the next-generation driver is preferred, the enhanced legacy driver can alternatively be used. This is available as a pre-built module packages made against Debian stock kernels, but can also be generated on your system via module-assistant.

Pre-Built Module
  1. Add "contrib" and "non-free" components to /etc/apt/sources.list. For example:

    # Debian Lenny
    deb http://ftp.us.debian.org/debian lenny main contrib non-free
  2. Update the list of available packages. Install the firmware-ralink, rt73-common, the relevant enhanced legacy module and wireless-tools packages:

    aptitude update
    aptitude install firmware-ralink rt73-common rt73-modules-$(uname -r) wireless-tools
  3. Load the enhanced legacy driver:

    modprobe rt73
    This module will be automatically loaded when your system is restarted and the device is inserted. If not already performed, connect the device to your system.
  4. Verify your device has an available interface:

    iwconfig
  5. Raise the interface to activate the radio, for example:

    ifconfig wlan0 up
  6. Configure your wireless interface as appropriate.

Module Assistant
  1. Add "contrib" and "non-free" components to /etc/apt/sources.list. For example:

    # Debian Lenny
    deb http://ftp.us.debian.org/debian lenny main contrib non-free
  2. Update the list of available packages. Install the firmware-ralink, module-assistant, rt73-common and wireless-tools packages:

    aptitude update
    aptitude install firmware-ralink module-assistant rt73-common wireless-tools
  3. Build and install a rt73-modules-* package within your system:

    m-a prepare
    m-a a-i rt73
  4. Load the enhanced legacy driver:

    modprobe rt73
    This module will be automatically loaded when your system is restarted and the device is inserted. If not already performed, connect the device to your system.
  5. Verify your device has an available interface:

    iwconfig
  6. Raise the interface to activate the radio, for example:

    ifconfig wlan0 up
  7. Configure your wireless interface as appropriate.

Troubleshooting
  • Examine the kernel ring buffer (dmesg) to verify the required firmware files are being loaded by the driver. Lack of firmware is the usual reason for the "SIOCSIFFLAGS: No such file or directory" error message.

Etch

You are required to acquire and compile the rt2x00 sources, as these are not packaged. This procedure is documented at the rt2x00 project's website: http://rt2x00.serialmonkey.com/wiki/index.php?title=Rt2x00_GIT_instructions

Supported Devices

The page HowToIdentifyADevice/USB explains how to identify a USB device.

The following list is based on the alias fields of modinfo rt73usb on Lenny.

  • USB: 0411:00F4 MelCo., Inc. (Device name unknown)
    USB: 050D:7050 Belkin Components F5D7050 ver 1000 WiFi
    USB: 050D:705A Belkin Components F5D7050A Wireless Adapter
    USB: 050D:905B Belkin Components F5D9050 ver 3 Wireless Adapter
    USB: 050D:905C Belkin Components Wireless G Plus MIMO Network Adapter
    USB: 06F8:E010 Guillemot Corp. HWGUSB2-54-LB
    USB: 06F8:E020 Guillemot Corp. HWGUSB2-54V2-AP
    USB: 0769:31F3 Surecom Technology Corp. RT2573
    USB: 07AA:002E Corega K.K. (Device name unknown)
    USB: 07B8:B21D D-Link Corp. RT2573
    USB: 07D1:3C03 D-Link System DWL-G122 802.11g Adapter [ralink rt73]
    USB: 07D1:3C04 D-Link System WUA-1340
    USB: 07D1:3C06 D-Link System (Device name unknown)
    USB: 07D1:3C07 D-Link System Wireless G DWA-110 Adapter
    USB: 0B05:1723 ASUSTek Computer, Inc. WL-167G v2 802.11g Adapter [ralink]
    USB: 0B05:1724 ASUSTek Computer, Inc. RT2573
    USB: 0DB0:6874 Micro Star International RT2573
    USB: 0DB0:6877 Micro Star International RT2573
    USB: 0DB0:A861 Micro Star International RT2573
    USB: 0DB0:A874 Micro Star International RT2573
    USB: 0DF6:90AC Sitecom Europe B.V. WL-172
    USB: 0DF6:9712 Sitecom Europe B.V. WL-113 rev 2
    USB: 1044:8008 Chu Yuen Enterprise Co., Ltd GN-WB01GS
    USB: 1044:800A Chu Yuen Enterprise Co., Ltd GN-WI05GS
    USB: 1371:9022 Dick Smith Electronics RT2573
    USB: 1371:9032 Dick Smith Electronics C-Net CWD-854 rev F
    USB: 13B1:0020 Linksys WUSB54GC 802.11g Adapter [ralink rt73]
    USB: 13B1:0023 Linksys WUSB54GR
    USB: 1472:0009 Huawei-3Com Aolynk WUB320g
    USB: 148F:2573 Ralink Technology, Corp. RT2501USB Wireless Adapter
    USB: 148F:2671 Ralink Technology, Corp. RT2601USB Wireless Adapter
    USB: 14B2:3C22 Atheros Communications Inc C54RU
    USB: 15A9:0004 (Vendor name unknown) (Device name unknown)
    USB: 1631:C019 Good Way Technology RT2573
    USB: 1690:0722 Askey Computer Corp. [hex] RT2573
    USB: 1740:7100 Senao (Device name unknown)
    USB: 18E8:6196 Qcom RT2573
    USB: 18E8:6229 Qcom RT2573
    USB: 18E8:6238 Qcom (Device name unknown)
    USB: 2019:AB01 PLANEX GW-US54HP
    USB: 2019:AB50 PLANEX GW-US54Mini2

See Also

沒有留言: