January 12, 2011

Troy’s Blog: Atheros AR5212 in Ubuntu 10.04 Lucid Lynx

25 comments:

Claude said…

Wow…

Many thanks for your solution!

I will try that for sure.

I’ve been looking everywhere for a simple and well explained solution.

Hope it will work for me!

May 14, 2010 11:23 AM
Claude said…

Well… it did not work.

May 15, 2010 5:12 AM
Josh said…

No go for me, either. Can’t authenticate WPA.

May 21, 2010 7:05 PM
seanh said…

This worked for me, including authenticating WPA. It’s a shame to have to install a wireless driver from source though, bug and security fixes won’t come in automatically. Is there no better way?

June 9, 2010 2:13 AM
xi said…

…before continue with nr. 10 change to madwifi dir of course, so it worked for me too. thx a lot

June 10, 2010 6:07 AM
Trastle said…

@Claude did you get your wireless working in the end?

@xi Thanks for the correction I have rolled updated the post.

June 20, 2010 5:08 PM
Sam said…

Worked like a charm!

AR5001 and Ubuntu 10.04

Sam

June 21, 2010 5:33 PM
xpan said…

worked for me too! Thank you a million…

Actually at first it didn’t work. The reason was that I use localized Ubuntu and “Desktop” was translated to my language (non-latin). So ‘make’ was giving me an error. I changed to home directory (which is my name in latin) created madwifi-src directory and tried again. Then the magic happened. Make worked and after restart I enabled the driver from the admin panel.

Million thanks again!
Chris

June 24, 2010 10:18 PM
Petros said…

This worked great for me also. Thanks a lot.

June 26, 2010 10:32 PM
Mekossou BAKAYOKO said…

Good job ; thanks a lot
it’s ready for my Atheros AR5001X+ Wireless Network Adapter

July 6, 2010 10:58 PM
Charles said…

I’m getting this on step 2
crberry@crberry-z60t:~$ sudo apt-get install subversion linux-kernel-headers build-essential libssl
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting linux-libc-dev instead of linux-kernel-headers
Package libssl is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libssl has no installation candidate
crberry@crberry-z60t:~$

July 11, 2010 8:49 AM
Trastle said…

@ Charles the end part of the command was cut off.
Give libssl-dev a go:
sudo apt-get install libssl-dev

July 11, 2010 1:01 PM
Charles said…

got thru it, rebooted. I cannot connect to the router, it asks for the wep key a few times and then disconnects for good. Here is dmesg | grep ath .. any signs here?
[ 0.502942] device-mapper: multipath: version 1.1.0 loaded
[ 0.502946] device-mapper: multipath round-robin: version 1.0.0 loaded
[ 12.690491] ath_pci 0000:13:00.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19
[ 12.690507] ath_pci 0000:13:00.0: setting latency timer to 64
[ 13.544520] MadWifi: ath_attach: Switching rfkill capability off.
[ 13.604848] ath_pci: wifi0: Atheros 5212: mem=0xa7f00000, irq=19
[ 23.812024] ath0: no IPv6 routers present
[ 60.827703] ath0: unknown SIOCSIWAUTH flag 12
[ 76.575998] ath0: unknown SIOCSIWAUTH flag 12
[ 92.652134] ath0: unknown SIOCSIWAUTH flag 12
[ 108.625915] ath0: unknown SIOCSIWAUTH flag 12
[ 130.756046] ath0: unknown SIOCSIWAUTH flag 12
[ 146.820909] ath0: unknown SIOCSIWAUTH flag 12

July 11, 2010 2:25 PM
Trastle said…

@Charles. Your dmesg output shows the driver is being correctly loaded then no DHCP offers are being made.

The last message “unknown SIOCSIWAUTH flag 12” looks like a bad return code being passed to MadWifi from the router (ieee80211_wireless.c).

Try temporarily configuring your router with a different SSID and no WEP to see if your able to connect.

July 11, 2010 5:51 PM
nyarlathotep said…

worked thanks a lot :)

July 15, 2010 7:48 PM
Kendor said…

Worked on my x40 with Atheros AR5001X+

July 18, 2010 1:10 PM
andreas said…

super! solved it for my ubuntu 10.04 and atheros 5001X card, thx a bunch

July 21, 2010 1:33 AM
JackDeth said…

You are a f***ing genious! I’ve been pulling all my hair out since upgrading to 10.04 trying to get my wireless with my AR5212 working again with no success. I was beginning to despair having to reinstall everything yet again. You are a f***ing icon in the world of Linux. Thank you for sharing your knowledge.

-Troy

August 8, 2010 4:07 AM
Ochkoo said…

Worked for Ubuntu 10.10.

Many thanks!

September 16, 2010 3:38 AM
hollister said…

Worked flawlessly on T61/AR5212.
Thanks!

-aw

September 19, 2010 1:56 AM
zen said…

Hi Troy. I have an Atheros 5212 on a Toshiba U-300, and just upgraded to 10.04.

Tried using the fix, but when I try to make and install the driver (i.e. step 11), I get the following error-

cd: 1: can’t cd to /lib/modules/2.6.32-25-generic/build
Makefile.inc:66: *** /lib/modules/2.6.32-25-generic/build is missing, please set KERNELPATH. Stop.

Any advice?
Thanks, Mahesh

November 4, 2010 3:19 PM
Trastle said…

Hi Mahesh,

My guess is the compile is looking for your Kernel headers and not finding them. Does the directory exist on your file system? If not you will need to download the headers for your Kernel:

$ sudo apt-get install linux-headers-$(uname -r)

Let me know how it goes for you.

November 5, 2010 10:28 AM
zen said…

Hey Troy.
Thanks so much for your help. There were a couple of minor glitches I ran into, and was trying to figure out how to sort them out, which took me a few days. It turned out that there were a few other things I needed to do-
1. In the modprobe.d folder, there was a file blacklisting ath_pci which needed to be hashed out.
2. I needed to run an update and an upgrade.
3. Importantly, as I found out from here-
https://help.ubuntu.com/community/WifiDocs/Driver/Atheros#KurianAlternative
Kernel 2.6.32.22 (and higher) have changed the default for the rfkill parameter of ath_pci from 0 to 1, which had the effect of killing the methods described above. You’ll need to make sure that it’s set back to 0 on system startup. To do that, edit (or create) the file /etc/modprobe.d/options.conf to include the line

options ath_pci rfkill=0

After a few evenings of frustration trying to sort this out, it’s all finally working. Thanks again for the excellent guide!
Cheers, Mahesh

November 11, 2010 4:16 PM
Monty said…

Works with Thinkpad T41 (no, not 61) and Atheros AR5212 and Ubuntu 10.10. Thank You!

November 18, 2010 8:37 AM
Gábor said…

Worked like charm on an antique FuSi (wifi: DWL-G650) running Ubuntu 10.04 LTS! Thanks a lot!

December 17, 2010 10:22 PM

Post a Comment

This blog post has saved me a number of times now. My Thinkpad’s Atheros AR5212 wireless card isn’t get creamed every time linux headers are updated. I have to reinstall the MadWifi Driver which has better support for Atheros. Now, I just must remember to not update when only on wifi!