In Ubuntu it really does try to detect your Atheros chip. In Ubuntu 7.10 the wireless on my laptop was detected as the AR5006EG and I use ndiswrapper and the net5416.inf driver. On Ubuntu 8.04 my wireless was detected as the AR242x and I was able to download ndisgtk (in the repos) and use the net5211.net driver, (the ndisgtk is just a graphical interface for ndiswrapper, very easy and very nice!). This time (Ubuntu 8.10) it wasn’t detected as the AR5006EG, it was however detected as the AR242x BUT I couldn’t use ndisgtk as before. I’m thinking it’s because they updated the network manager in 8.10. Either way here is how I got it working.
Remember TAB is your friend in the terminal!
To check what you wireless is detected as just run the following in the Terminal:
lspci | grep Wireless
These steps are done using Ethernet, if it is unavailable, just go to any computer with Internet and download the mad wifi snapshot shown in these steps. Just follow the step from there once you have gotten the file.
1) First disable Ubuntu’s Atheros HAL driver if loaded:
Click ‘System’ –> ‘Administration’–> ‘Hardware drivers’ then deactivate support for the Atheros 802.11 wireless driver
I rebooted just to make sure there was no chance it was running.
Everything else is done in the Terminal :)
2) Get the Ubuntu built essentials package, this will allow the program to compile:
sudo apt-get install build-essential
**if this is a new install of 8.10 you MUST do “sudo apt-get update” (without quotes) to update your repositories
3) Download the madwifi snapshot:
wget http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6-current.tar.gz
4) Untar (unzip) the newly downloaded file:
tar xvf madwifi-hal-0.10.5.6-current.tar.gz
5) Go into the newly created directory:
cd madwifi-hal-0.10.5.6-r3879-20081204
6) Then compile the package (this will compile the program to prepare it to be installed):
make
7) Then install the package by typing (this will install the package onto your machine):
sudo make install
8) Then load the newly created module:
sudo modprobe ath_pci
**may not show any output, but will load the module if you don’t get an error
if yours is like mine you may not get a wifi light, in that case you won’t know if the card is on, just try pushing the button to toggle it (on the Acer 4720Z it’s a picture of a satillite) ***as mentioned in a comment, (TR14RCE) you may need to check and uncheck the connection to detect the network on some PC’s
9) If your wireless is working after this when you reboot the computer it won’t to fix it, you must add it to the kernel boot modules list:
In the terminal type “sudo gedit /etc/modules”(without quotes) and add “ath_pci”(again without quotes) to the bottom of the list if you don’t have anything in the list just add it to the bottom. Click ‘Save’ and that’s it. ::PER Joe Purdy “DO A REBOOT”::
FYI: If there is ONLY one reason you want to update to Ubuntu 8.10, it’s for the boot-up time. It’s supa-speedy.
137 ResponsesLeave a comment ?
It’s been said before, but I’m definitely gonna say it again: THANK YOU! This was driving me CRAZY! This solution worked perfectly.
hey, thanks for the guide. i had to run through it twice in order to get it to work, but i got it. thanks a million, i’m new to ubuntu and linux in general. nice to know i can find help :D
~Jebus~
Thanks a lot! Worked Perfect the first time around! Excellent help.
Hi, this looks like it should really work, but this is what I get instead
waakow@waakow-laptop:~$ cd madwifi-hal-0.10.5.6-r3879-20081204
bash: cd: madwifi-hal-0.10.5.6-r3879-20081204: No such file or directory
waakow@waakow-laptop:~$
Wow, never mind. I just had to type part of the “cd madwifi” then hit tab and it filled in the appropriate file and everything, now everything works great! I guess I’m just a bit slower then everyone else. Thanks! You’re a genius!
I just ran through the guide, to no avail. Running a Toshiba Satellite L305. I’m using WICD instead of Network Manager with 8.10.
Nevermind, just had to add ath0 to the wireless interface in WICD. Other than my own mistake, great guide thank you!
you’re the man!
worked great on my thinkpad r51e!
great walkthrough. keep it up!
thank you! worked on my compaq presario cq-50.
Thanks for the tutorial!
This sequence worked flawlessly for my MSI GX-710 running Ubuntu 8.10amd64
hello, can you help me compiling acer_acpi on ubuntu 8.10 (if you know)??? i have the build-essential and linux-headers installed…
thank you
What are the errors you are getting?
Works flawlessly on my SL 400. Thanks a ton!
YOU ROCK
For those that had it working on 7, then updated and not working on 11, this is what to do. You need to go to etc/module and if you see NIDISWRAPPER, put a # in front of it and save it. If it will not let you save it, open terminal, type in sudo nautilus, and then repeat, it should let you save then. Then reboot and it will work. NDISWRAPPER is confligting with ath pci
Is there a way to make the changes permanent. I have to run modprobe everytime i reboot the machine. Thanks!
you have to add it to etc/module
Hi, please help…
tim@tim-laptop:~$ cd madwifi-hal-0.10.5.6-r3942-20090205/
tim@tim-laptop:~/madwifi-hal-0.10.5.6-r3942-20090205$ make
cd: 1: can’t cd to /lib/modules/2.6.27-11-generic/build
Makefile.inc:66: *** /lib/modules/2.6.27-11-generic/build is missing, please set KERNELPATH. Stop.
What should i do? what am i doing wrong?
YOU ARE GOD dude….
Thank you so much…..:D
Thanks thanks thanks! A lot of thanks, it works for me!
great man thx a lot for the guide
Thanks for the easy install guide. Have been searching high and low for making my wireless work on Compaq Presario C733TU. (Same wireless card)
Regards,
Jaggu
Looks like it should now be ath_hal, not ath_pci; also it’s now madwifi-hal-0.10.5.6-r3942-20090205, for newest update
If this works for everyone please let me know and I will update the tutorial
Tim, do this:
sudo apt-get install linux-headers-2.6.27-11-generic
hi I just can’t seem to get this to work can someone explain this to me in really simple steps?
Thank you very much! :D
Finally got it working!
Well its in there. Everything compiled with no errors. I added it to etc/modules. It shows wireless is up in network manager.
Problem is, It doesnt show any wireless networks? What am I missing?
Correction, Works fine. seems as though with compaq laptops if you turn the wireless off in windows, reboot into linux your wireless wont work until you reboot back into windows and press the f@king button. Took my entire weekend. DO NOT BUY COMPAQ IF USING LINUX.
Hi. I followed every instruction (well, I had to change bits and bobs myself so it got the newest version of Madwifi etc) and everything looked as though it was going to work, I had no errors or anything. The thing that is confusing and frustrating me, is that before I rebooted there was no sign of Wireless (as I had anticipated as it says to reboot) but after I rebooted, still no wireless. I’m using Wicd instead of Network Manager. I’m running a Fujitsu Siemens V5515 (useless thing) and when I typed in “lspci | grep Wireless” I had the same outcome as you yourself did.
The only bit that I think I may have messed up is the “sudo gedit /etc/modules” and the “ath_pci” I did that whilst it had all the stuff about Madwifi next to my username stuff in the terminal
Oh yeah, I am a complete noob at this but I’ve tried adding as much detail as I can.
Would there be a reason why it doesn’t work?
Help would be appreciated =)
Cheers.
Oh yeah I forgot to mention that I’m doing this on Hardy Heron (8.04 LTS (Obviously)) but I don’t see why it should make any difference. I tried other Tutorials before this and it didn’t work, this is the best one I believe. If you have one on Hardy Heron please may you post a link.
Thanks
Man, I wish this worked. Linux n00b here and used Wubi to install Intrepid Ibex on my Asus Eee Pc (Atheros). On step 4 I get the following error in terminal:
madwifi-hal-0.10.5.6-r3942-20090205/hal/public/ap51.opt_ah.h
madwifi-hal-0.10.5.6-r3942-20090205/hal/public/wisoc.inc
madwifi-hal-0.10.5.6-r3942-20090205/hal/public/sparc-be-elf.hal.o.uu
madwifi-hal-0.10.5.6-r3942-20090205/hal/public/xscale-be-elf.hal.o.uu
madwifi-hal-0.10.5.6-r3942-20090205/hal/public/xscale-le-elf.hal.o.uu
madwifi-hal-0.10.5.6-r3942-20090205/hal/public/alpha-elf.hal.o.uu
tar: Skipping to next header
gzip: stdin: invalid compressed data–crc error
gzip: stdin: invalid compressed data–length error
tar: Child returned status 1
tar: Error exit delayed from previous errors
Any ideas?
Thanx man!! It took me 2 days before i got this and it worked great even with wicd!
Im also using a compaq and i didnt need to go to windows to click the button
Dan: As I stated above: “On Ubuntu 8.04 my wireless was detected as the AR242x and I was able to download ndisgtk (in the repos) and use the net5211.net driver, (the ndisgtk is just a graphical interface for ndiswrapper, very easy and very nice!” I never wrote up a how-to but once you installed ndisgtk and download the drivers for the AR242x, it pretty easy to add them to Ubuntu actually easier then using mad wifi.
Juelze: not sure why you got that I would try to redownload the file
Thank you for this article. My wireless is working just fine now.
Cheers Andy, i’ve decided just to update to Intrepid. Once I did that i did everything again and it worked =)
Thanks a lot =)
hye,after command “sudo modprobe ath.pci” should something comes out?
because i don’t really know if this is working.
kaka: no not really if you don’t get an error it worked but it’s only temporary if you reboot you loose it. You just have to toggle the wireless at that point, I don’t get a light on mine so you have to see if you have wireless networks after you try it.
Andy, it works for me on 9.04 too. Thanks a lot.
i have been trying forever to get my atheros wireless to work, and i have tried several distro’s. thanks you so much for this guide, because now i finally have it up and running. you have no idea how grateful i am. THANK YOU THANK YOU THANK YOU!!!
Great Blog!
Here is one more thing to add that will help a few of you. With this chipset some laptops will freeze on booting. So before following the excellent directions above..
1. Shut down the laptop and physically remove the wireless card. (don’t be scared its just a screw or two)
2. Boot back into your distro and blacklist the current ath driver by doing the following “sudo gedit /etc/modprobe.d/blacklist” without the quotes.
add these lines to the bottom of the file….
blacklist ath_hal
blacklist ath_pci
3. Shutdown your system and secure your wireless card back into place.
4. Now start Mr. Hyperandy’s instructions and your all set :)
Hyperandy. I am unable to find your email listed here. We love your blogs. If you ever need a webhost let us know, free for life with us buddy! Great Work!
Does anyone know if this works with 64-bit Ubuntu 8.10?
I would also like to know if any one has tried this in 64-bit, it sucks to hear you have to do this in 9.04 as well, I was hoping the opening of some of the Atheros Software would have killed off this fix
hyperandy I can’t tell you how happy I am that this worked! Currently I have the 32-bit Ubuntu 8.10 installed and your steps worked flawlessly, which is incredible! Thanks for all your help. I may try the same method later with the 64-bit version.
BTW I have an HP DV 7 1264nr. For all you HP DV ? owners out there, give this method a try.
hi,hyperandy!
I followed your every instructions!,but when I ‘make’ there are a lot of problems as followed
( my kernel is 2.6.27-7-generic,my chipset is Atheros AR5001X+ Wireless Network Adapter.):
gcc -g -O2 -W -Wall -c ath_info.c
ath_info.c: In function ‘main’:
ath_info.c:2847: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
gcc -g -O2 -W -Wall -o ath_info ath_info.o
make[2]: Leaving directory `/home/daiwei/madwifi-hal-0.10.5.6-r3942-20090205/tools/ath_info’
gcc -o athstats -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal -I../ath athstats.c
athstats.c: In function ‘main’:
athstats.c:289: warning: format not a string literal and no format arguments
athstats.c:291: warning: format not a string literal and no format arguments
athstats.c:311: warning: format not a string literal and no format arguments
athstats.c:313: warning: format not a string literal and no format arguments
athstats.c:348: warning: format not a string literal and no format arguments
gcc -o 80211stats -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal 80211stats.c
80211stats.c: In function ‘main’:
80211stats.c:287: warning: format not a string literal and no format arguments
gcc -o athkey -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athkey.c
gcc -o athchans -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athchans.c
gcc -o athctrl -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athctrl.c
gcc -o athdebug -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal athdebug.c
gcc -o 80211debug -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal 80211debug.c
gcc -o wlanconfig -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal wlanconfig.c
wlanconfig.c: In function ‘list_keys’:
wlanconfig.c:779: warning: ignoring return value of ’system’, declared with attribute warn_unused_result
wlanconfig.c: In function ‘ieee80211_status’:
wlanconfig.c:895: warning: ignoring return value of ’system’, declared with attribute warn_unused_result
gcc -o wpakey -g -O2 -Wall -I. -I../hal -I.. -I../ath_hal wpakey.c
make[1]: Leaving directory `/home/daiwei/madwifi-hal-0.10.5.6-r3942-20090205/tools’
Any way ,thank you for your blogs and your help!
I have done all the steps up to point 9. But when I type “sudo gedit /etc/modules” in the terminal I get the reply “command not found”
What am I doing wrong?
Dala
are you using gnome? if not try using sudo nano /etc/modules or emacs
I use Xfce.
And thanks to you, now it works.
THANK YOU SO MUCH.
Now my problem is to connect to the WEP wireless at my work.
The next big issue.
Asus eee 900. Xubuntu 8.10