D-link dwl-g122 USB WLAN
1, modify the kernel, increase WLAN support
#Cd/usr/src/linux-2.6.18-lemote
#Make menuconfig
Click Device Drivers--->network device support-->wireless LAN (Non-hamradio)-->
Select Wireless Lan Drivers (non-hamradio) & Wireless Extensions as shown in the following figure
# Make
#Make Modules_install
#CP vmlinux/boot/vmlinux-2.6.18-godson2e
2. Download rt73 driver
dwl-g122 h/w VER:C1 uses the Ralink rt73 (RT2571W) chipset.
The driver downloads from the rt2x00 Open Source Project Web site as follows:
#wget http://rt2x00.serialmonkey.com/rt73-cvs-daily.tar.gz
3, compile, install drive
Since the CVS version is downloaded, the date in the extracted directory name will change, please modify it yourself.
#Tar zxvf rt73-cvs-daily.tar.gz
#CD Rt73-cvs-20070309/module
# Make
#Make Install
Modify the/etc/modprobe.d/aliases file to add a line at the end:alias Rausb0 rt73
And then run/sbin/depmod-a
4, installation Wireless Tools
#apt-get Install Iwconfig
Reading Package Lists ... Done
Building Dependency Tree ... Done
E:couldn ' t find package iwconfig
debian:/etc/network# Apt-get Install Wireless-tools
Reading Package Lists ... Done
Building Dependency Tree ... Done
The following NEW packages would be installed:
Wireless-tools
0 upgraded, 1 newly installed, 0 to remove and 7 not upgraded.
Need to get 108kB of archives.
After unpacking 365kB of additional disk space would be used.
Warning:the following packages cannot be authenticated!
Wireless-tools
Install these packages without verification [y/n]?y
Get:1 http://www.lemote.com etch/main wireless-tools 28-1 [108kB]
Fetched 108kB in 5s (19.3kb/s)
Selecting previously deselected package wireless-tools.
(Reading database ...) 92733 files and directories currently installed.)
Unpacking Wireless-tools (from .../wireless-tools_28-1_mipsel.deb) ...
Setting up Wireless-tools (28-1) ...
5. Configure WLAN
Reboot the machine, first view the USB state with LSUSB
#Lsusb
Bus 004 Device 001:id 0000:0000
Bus 005 Device 001:id 0000:0000
Bus 002 Device 001:id 0000:0000
Bus 001 Device 002:id 07d1:3c03 d-link System
Then use the lsmod to see if the rt73 module is used,
#Lsmod
rt73 398144 0
UHCI_HCD 25808 0
or see the following information from the/var/log/messages:
Mar 20:09:57 localhost kernel:rtusb init ====>
Mar 20:09:57 localhost Kernel:idvendor = 0x7d1, idproduct = 0x3c03
Mar 20:09:57 localhost kernel:usbcore:registered new driver rt73
Start interface
#ifconfig rausb0 up
#ifconfig
Rausb0 Link encap:ethernet hwaddr 00:19:5b:81:b9:9e
Inet6 ADDR:FE80::219:5BFF:FE81:B99E/64 Scope:link
Up broadcast RUNNING multicast mtu:1500 metric:1
RX packets:270 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17766 (17.2 KiB) TX bytes:0 (0.0 B)
View WLAN
#Iwconfig
Rausb0 RT73 WLAN Essid: ""
mode:managed frequency=2.412 GHz Bit rate=54 MB/s
RTS Thr:off Fragment Thr:off
Encryption Key:off
Link quality=0/100 Signal level:-121 dbm Noise level:-115 dbm
Rx Invalid nwid:0 Rx Invalid crypt:0 Rx Invalid frag:0
Tx Excessive retries:0 Invalid misc:0 Missed beacon:0
Scan WLAN to find AP
#iwlist rausb0 Scanning
Rausb0 Scan Completed:
Cell 01-address:00:15:e9:f3:3f:b0
Essid: "Dd-wrt"
Mode:managed
Channel:1
Encryption Key:on
Bit rates:2 MB/s
Connect AP, use 5-bit ASCII password
#iwconfig rausb0 Essid "dd-wrt" mode Managed key s:*****
#Iwconfig
Rausb0 RT73 WLAN Essid: "Dd-wrt"
mode:managed frequency=2.412 GHz Access point:00:15:e9:f3:3f:b0
Bit rate=54 MB/s
RTS Thr:off Fragment Thr:off
Encryption key:****-****-**
Link quality=100/100 Signal level:-28 dbm Noise level:-79 dbm
Rx Invalid nwid:0 Rx Invalid crypt:0 Rx Invalid frag:0
Tx Excessive retries:0 Invalid misc:0 Missed beacon:0
Obtaining an IP address using DHCP
#dhclient rausb0
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Listening on lpf/rausb0/00:19:5b:81:b9:9e
Sending on lpf/rausb0/00:19:5b:81:b9:9e
Sending on Socket/fallback
DHCPDiscover on rausb0 to 255.255.255.255 port interval 6
DHCPOFFER from 192.168.0.1
DHCPRequest on rausb0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
Bound to 192.168.0.191-renewal in 246 seconds.
If you want to start the wireless network when you try to boot up, you can do so by modifying the/etc/network/interfaces file, adding the following in the file:
Auto Rausb0
Iface rausb0 inet DHCP
pre-up Ifconfig rausb0 up
pre-up iwconfig rausb0 Essid "Dd-wrt" key s:*****
The Essid and key above are modified according to their specific circumstances.
http://www.lemote.com/bbs/viewthread.php?tid=6023