Configuring Wireless Adapter

It seems one of the most difficult things I have problems with is configuring Wireless adapters to Ubuntu. I have a DLink DWA-160 USB adapter I’m trying to get working. This Web page shows the device I have and it’s suppose to be an easy setup:

http://bernaerts.dyndns.org/linux/229-ubuntu-precise-dlink-dwa160-revb2

I first started trying to follow the written instructions but I guess Ubuntu doesn’t like tgz files. So I went into the console and pasted in the actual commands shown. I got stuck with the command: “sudo cp rt2870.bin /lib/firmware/rt2870.bin” Is couldn’t find the file I believe it said.

Any help here would be much appreciated.

Can you run this command, and post the output:

sudo find / -name RT2870_Firmware_V22.zip

and

sudo find / -name DPO_RT5572_LinuxSTA_2.6.0.1_20120629.tar.bz2.bz2

And explain what you mean by Ubuntu doesn’t like .tgz files

When I ran those commands, nothing appeared, it just came back to a prompt.

The tgz file, when I was following the written directions came up with an error on that file. It was a couple nights ago and I don’t remember exactly what it said.

OK, there’s now a newer version of the driver that may not need all the edits he mentions … so we’ll try it without first.

Gimme 10 mins to make the WPA(2) edit (and edit the filename), and upload the driver to my dropbox … so I can give you a direct download link.

Meanwhile, just in case you haven’t already, open a terminal and run this:

sudo apt-get install build-essential linux-headers-generic

BRB.

Thanks, I really appreciate your help. I’ve run that latest command.

OK, in the terminal, run these commands in sequence (wait for one command to finish before entering the next):

mkdir ~/dwa-160

then:

cd ~/dwa-160

then:

wget http://dl.dropbox.com/u/11876059/RT2870_Firmware_V22.zip

then:

wget http://dl.dropbox.com/u/11876059/DPO_RT5572_LinuxSTA_2.6.0.1_20120629.tar.gz

then:

tar -xvf DPO_RT5572_LinuxSTA_2.6.0.1_20120629.tar.gz

then:

cd ~/dwa-160/DPO_RT5572_LinuxSTA_2.6.0.1_20120629

then change to a root prompt with:

sudo su

then:

make

then when that finishes:

make install

then

exit

then

sudo modprobe rt5572sta

Did your wireless spring to life ?

Everything went well until that last command. I got this after entering it:

FATAL: Error inserting rt5572sta (/lib/modules/3.2.0-29-generic-pae/kernel/drivers/net/wireless/rt5572sta.ko): Unknown symbol in module, or unknown parameter (see dmesg)

Yeh just noticed that myself, and have fixed the error … gimme a sec to upload the new fixed driver, and post instructions.

Meanwhile, run:

sudo rm -r ~/dwa-160

and

sudo modprobe -r rt5572sta

Sounds good, those last couple of commands have been completed

These may look the same … and they are, except for 2 command which downloads a modified driver and unpacks it … so run them ALL


OK, in the terminal, run these commands in sequence (wait for one command to finish before entering the next):

mkdir ~/dwa-160

then:

cd ~/dwa-160

then:

wget http://dl.dropbox.com/u/11876059/RT2870_Firmware_V22.zip

then:

wget http://dl.dropbox.com/u/11876059/DPO_RT5572_LinuxSTA_2.6.0.1_20120629_fixed.tar.gz

then:

tar -xvf DPO_RT5572_LinuxSTA_2.6.0.1_20120629_fixed.tar.gz

then:

cd ~/dwa-160/DPO_RT5572_LinuxSTA_2.6.0.1_20120629

then change to a root prompt with:

sudo su

then:

make

then when that finishes:

make install

then

exit

then

sudo modprobe rt5572sta

Did your wireless spring to life ?

Works GREAT!! Thank you man, you ROCK!!

You’re welcome :slight_smile:

Have you checked if it survives a reboot ?

Hey, one thing I did notice. It doesn’t seem to work very well when I don’t Broadcast my SSID. Would there be any reason for that?

It sort of survived. It seemed to have problems connecting but I finally got it.

Rebooted again and no problem, but I left on the SSID Broadcast. I don’t know why but it seems I’ll have to leave the broadcast turned on

Couldn’t tell you, except to say the ralink “sta” (staging) drivers are kinda iffy with some adapters … blame either D-Link, or more precisely Ralink who make the chipset and drivers.

Sorry for bothering you, but I’m getting the same error during the intallation:

FATAL: Error inserting rt5572sta (/lib/modules/3.2.0-32-generic/kernel/drivers/net/wireless/rt5572sta.ko): Unknown symbol in module, or unknown parameter (see dmesg)

dmesg says this:

[ 9226.525531] rt5572sta: Unknown symbol usb_alloc_urb (err 0) [ 9226.525549] rt5572sta: Unknown symbol usb_free_urb (err 0) [ 9226.525566] rt5572sta: Unknown symbol usb_alloc_coherent (err 0) [ 9226.525589] rt5572sta: Unknown symbol usb_register_driver (err 0) [ 9226.525626] rt5572sta: Unknown symbol usb_put_dev (err 0) [ 9226.525639] rt5572sta: Unknown symbol usb_get_dev (err 0) [ 9226.525652] rt5572sta: Unknown symbol usb_submit_urb (err 0) [ 9226.525672] rt5572sta: Unknown symbol usb_free_coherent (err 0) [ 9226.525691] rt5572sta: Unknown symbol usb_control_msg (err 0) [ 9226.525715] rt5572sta: Unknown symbol usb_deregister (err 0) [ 9226.525752] rt5572sta: Unknown symbol usb_kill_urb (err 0) [ 9466.883138] rt5572sta: Unknown symbol usb_alloc_urb (err 0) [ 9466.883155] rt5572sta: Unknown symbol usb_free_urb (err 0) [ 9466.883173] rt5572sta: Unknown symbol usb_alloc_coherent (err 0) [ 9466.883196] rt5572sta: Unknown symbol usb_register_driver (err 0) [ 9466.883232] rt5572sta: Unknown symbol usb_put_dev (err 0) [ 9466.883245] rt5572sta: Unknown symbol usb_get_dev (err 0) [ 9466.883257] rt5572sta: Unknown symbol usb_submit_urb (err 0) [ 9466.883277] rt5572sta: Unknown symbol usb_free_coherent (err 0) [ 9466.883296] rt5572sta: Unknown symbol usb_control_msg (err 0) [ 9466.883320] rt5572sta: Unknown symbol usb_deregister (err 0) [ 9466.883357] rt5572sta: Unknown symbol usb_kill_urb (err 0)

but I have no idea what to do about it!

Would be very grateful for your help!

Thanks
Michael

I take it you used the second set of (fixed) instructions here:
http://linuxforums.org.uk/index.php?topic=10384.msg77401#msg77401

I’ve just tested those with the 3.2.0-32 kernel and they compiled without issue ???