Home| New Wiki | | Login | User registry | Home Tree PDF
Wireless SUB Stick in linux
Owner:, Version: 4, Date:Tue 23, September 2008,

I installed the ndiswrapper kernel module

see more /etc/modprobe.d/ndiswrapper

Now, the the card I have:

Card: D-Link WUA-1340(USB)

  • Chipset: Ralink RT73 (RT2571W)
  • usbid: 07d1:3c04
  • Windows Driver: The newest driver, 3.0, for the DWL-G122 rev C1 can be used. H/W Ver A1, F/W Ver 1.00

Driver

I used the drivers on the usb stick installation CD, run setup.exe (driver directory) with wine to get only two files:

dr71wu.sys
wua1340.inf

Then installed the driver with ndiswrapper 1.47

ndiswrapper -i wua13450.inf

More notes:

  • Make sure the network ssid does not contain spaces (problem with the current reading of the /etc/network/interfaces).
  • Instead of using the Ubuntu configuration (the icon) I configured everything manually.
  • Also the rt73usb tends to be loaded automatically but it does not support the card correctly so I added to /etc/modprobe.d/blacklist:
blacklist rt73usb

Now we are ready:

sudo rmmod ndiswrapper
sudo rmmod rt73usb
sudo ifdown wlan0
sudo iwconfig wlan0 ap off mode Managed essid NETSSID key XXXXXXXXXX
sudo ifup wlan0
sudo ifdown eth0

Another Card

I got a rage booster card: DWA-142

Get the WinXp driver (14 MB) is at http://support.dlink.ca/products/XPstatus.asp?Prodid=DWA-142&OS=winxp

Or get the one I got:

wget ftp://ftp.dlink.com/Wireless/dwa142/Drivers/dwa142_drivers_130.zip

I unzipped and created an iso image with the setup.exe that I opened in a qemu windows box

mkisofs -R -J -o dwa142.iso  <folder containing setup.exe>
qemu-img create -f raw aux-raw.img 256MB
qemu -cdrom dwa142.iso -hda win.img -hdb aux-raw.img

after install the driver it is at:

<WINDIR>\usbdevice\
 netmw245.inf
 mrvw243.sys
 mevw245.sys

Zip the contents, copied them into the raw secondary hard drive (partition and format the second hd first) and close qemu.

Mount the secondary hd into a unix folder and extracy the driver

mkdir aux-mount
sudo mount -o loop,offset=32256 aux-raw.img aux-mount
unzip aux-mount/Mrvw243.zip -d /tmp
sudo umount aux-mount

You can keep the secondary HD for more easy access to the qemu box.

cd /tmp
sudo ndiswrapper -i netmw245.inf

Now we are ready:

sudo rmmod ndiswrapper
sudo rmmod rt73usb
sudo ifdown wlan1       # wlan0 is used by the other USB stick
sudo iwconfig wlan0 ap off mode Managed essid <SSID> key <KEY>
sudo ifup wlan0
sudo ifdown eth0

If this does not work, (wlan0 no such device)

iwconfig 

or

ifconfig

Should show all available interfaces


Edit - History - Extract PDF - Extract Tree as PDF

Last Modified

Thu, Nov 19 Sat, Oct 3 Fri, Sep 25 Mon, Aug 3 Mon, Apr 27 Sat, Mar 28 Mon, Jan 19 Tue, Jan 6

Home| New Wiki