Atheros AR5007 wireless with madwifi on Ubuntu 8.04 (Hardy heron)
For i386 Users
First go to System-->Administration-->Hardware Drivers" and disable by un-ticking the following option
Atheros Hardware Access Layer (Hal)
Then Reboot your system.
Preparing your system
sudo apt-get install build-essential
Then open the terminal from Applications-->Accessories-->Terminal and copy the following command
tar xfz madwifi-ng-r2756+ar5007.tar.gz
sudo make install
sudo modprobe ath_pci
That's it now your wireless should work without any problem.
For AMD64 Users
If you are using 64 bit version following this procedure
Blacklist the default driver
echo "blacklist ath_pci" | sudo tee -a /etc/modprobe.d/blacklist
Download the 64 bit driver
Extract driver using the following command
tar xvf ar5007eg-*.tar.gz
tar xvf ndiswrapper-newest.tar.gz
Ensure you have your kernel headers and the build essential package.
sudo aptitude update
sudo aptitude install linux-headers-$(uname -r) build-essential
sudo apt-get install ndisgtk
Either use ndisgtk to install the driver or
sudo ndiswrapper -i net5211.inf
Load up ndiswrapper every time Linux is loaded
sudo modprobe ndiswrapper
echo "ndiswrapper" | sudo tee -a /etc/modules
Restart your system using the following command
Your card should have been detected and it should show available networks but if it does not, try
sudo iwlist scan
Nope 🙁 it still doesn’t work!
I’ve officially had enough of this card. There are too many problems, and it’s too cheap of hardware for it to be worth my time.
No offense to anyone on this page who has had either trouble or success with this card but I have a final solution to this problem for all of the GNU/Linux newbies (which for the record I am not). On most laptops there is a door on the bottom that contains your wireless card. There is usually a couple wires connected that function as the antenna. This card can be easily changed out and with a few minutes of searching you may be able to find an illustrated tear down guide for your laptop. Bellow is a link to a list of wireless cards both old an new that should just work with your laptop and Ubuntu (so long as the card is marked Green. I would suggest getting any of the intel ones). Most can be had for less than $30 used, and are with out any doubt much better quality hardware than the Atheros chips. Lets face it no one is using unsupported hardware by choice, there are obviously fixes out there that do work, for this type of situation, but at the same time they are not what I would call “user friendly” for new users of GNU/Linux. The fault clearly lies on the shoulders of the manufactures who refuse to release there firmware. If you want to save yourself the hassle of updating your driver every time a kernel update is released and other such frustration…just spend the cash on a replacement card and be done with it.
Honestly I’ve fixed problems with the Atheros cards too many times than I can count for friends and customers the last few months, the only sure fire fix I’ve found is to yank the Atheros card out put in an Intel card, and throw the Atheros card in the nearest circular file.
I know that I’m going to take flack on this, but really…the reason this card is such a pain in the butt in the first place is that it’s just a piece of cheap junk the computer manufacture decided to use instead of a quality card (past having proprietary firmware). You could possibly spend more on aspirin over the life of the Atheros chipset using it with Ubuntu than the cost of a decent Intel card. Of coarse that’s just my opinion.
Works with AR5007EG in a Compaq C762NR. Rocking
I’m running Ubuntu 8.10 on a Toshiba A215-S5848, Atheros AR5007EG. This is what I did to get mine working.
1.) disable atheros hardware access layer (System > Administration > Hardware Drivers)
2.) sudo reboot
3.) wget http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3861-20080903.tar.gz
4.) tar -xvf madwifi-hal-0.10.5.6-r3861-20080903.tar.gz
5.) cd madwifi-hal-0.10.5.6-r3861-20080903
6.) sudo make install
7.) sudo modprobe ath_pci
8.) sudo nano /etc/modules and append ‘ath_pci’
9.) sudo reboot
I had previously done all steps without step 8 and it did not work. I manually executed step 8, waited a few moments and all was fine. Editing the /etc/modules with ‘ath_pci’ kept me from having to manually do this after reboot.
Thanks for the help
I am good up to the
[email protected]:~$ tar xvf ndiswrapper-newest.tar.gz
at this point it says
tar: ndiswrapper-newest.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
I followed the rest step by step, and on a clean install, but still get this error. What should I do??
Grrr.. *face palm* I have no access to ethernet, I have an atheron lan card. What ever am I to do?
I have Ubuntu 8.04 32-bit on my HP dv9922us.
I got wireless working with help from post #124 (thanks Cyphrin).
Copied his steps almost to the letter, except
for step 3 I put “wget http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3879-20081204.tar.gz”
Also, I forgot to do “sudo apt-get install build-essential” before I started. Wireless didn’t work until I typed that in after I was done with the other steps.
Thanks for everyone’s help!
I have the HP Pavilion dv5 Notebook PC with AMD Athlon(tm) X2 Dual-Core QL-60 1.90 GHz processor and the Atheros AR5007 802.11b/g WiFi Adapter. I have tried the Atheros AR5007 wireless with madwifi on Ubuntu 8.04 (Hardy Heron) but I haven’t got it to work. Any suggestions?
1.Download madwifi-hal-0.10.5.6-r3879-20081204.tar.gz from http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3879-20081204.tar.gz
2. extract tarball
tar zxf madwifi-hal-0.10.5.6-r3879-20081204.tar.gz
3. change directory into the extracted package
5. make install
6. modprobe ath0_pci
7. wlanconfig ath0 create wlandev wifi0 wlanmode sta
8. ifconfig ath0 up
9. modprobe wlan_scan_sta
10. Scan Wireless AP
wlanconfig ath0 list scan
11. Specify AP using its MAC
iwconfig ath0 essid “2WIRE0689”
12. Specify WEP key is open or shared.If open authmode 1;if shared authmode 2
iwpriv ath0 authmode 1
13. Enter WEP key
iwconfig ath0 key
14. Get IP address
Thank you so much! After several install and even install from Ghost the wisdows side, I am definitely closer. It works but I have to run make, make install and modprobe after each restart. It seems the script commands are not being permanently made. Any suggestions?
you could try to put the steps in a bash script and do an update-rc.d…
iwconfig ath0 list scanand/or
iwlist ath0 scanningto list available AP’s
2. create script (say in your home directory) using details from the scan above
[email protected]:~$vim ath0_up.sh
sudo iwconfig ath0 ap "00:XX:XX:XX:XX:XX" #MAC Address of the AP you want to connect to
sudo iwconfig ath0 essid "2WIRE0689" #ESSID
sudo iwconfig ath0 channel 1 #channel
sudo iwpriv ath0 authmode 1 #WEP is using Open authentication
sudo iwconfig ath0 key 1122334455 #WEP Key used by the AP for authentication
sudo dhclient ath0
3. make it executable
chmod +x ath0_up.sh
4. create a symbolic link of ath0_up.sh in /etc/init.d/
sudo ln -s ~/ath0_up.sh /etc/init.d/ath0_up.sh
5. run update-rc.d to make script execute during bootup
sudo update-rc.d ath0_up.sh defaults
I got tired of having to go through this procedure every time Ubuntu did a kernel version update. I wrote a short script which I named redo-wifi. I put it in my home directory and made it executable via
sudo chmod 700 redo-wifi
Now, when I do a kernel patch from my regular updates to Ubuntu 8.04, and my wifi stops working, I just open a terminal window and type:
Below is the text of this simple script. It’s saved me a lot of frustration and I hope it helps someone else.
# This script is to re-define the Atheros wifi driver after a kernel update in Ubuntu.
# it is run as sudo redo_wifi
# based on http://www.ubuntugeek.com/atheros-ar5007-wireless-with-madwifi-on-ubuntu-804-hardy-heron.html
# please substitute the correct path to where you put the madwifi-ng-r2756+ar5007
All the best,
Thank you very much..Bookmarked!!!!
Very good link. The step 33 worked for my HP dv5 laptop. but still i see orange light. is there any chance to make it blue
how do I figure out which download to use for approach as ones suggested here do not exist:
http://madwifi.org appears to have moved the tar file so some of us cannot continue without the file. Anyone know of a mirror?
madwifi seems to have been down for quite some time now. any help on other ways to make AR242x 802.11abg Wireless PCI Express Adapter (rev 01) work on Ubuntu 8.04 (Hardy Heron)? Thanks for the help.
try this, it works for me as the madwifi was obsoleted
yes there is a new mirror and homepage:
i wanted to share my joy with the people of this forum, and what could (possibly) be of help to some. i have an AMD64 dual-booted with vista and an atheros ar5007 adapter. i had been trying for months to get the wireless adapter to work with linux mint (gloria) and even koala. tonight i attempted a fix from this forum. i hard-wired my laptop to the internet, which forced me to go my general network settings to turn on eth0 (system > network, in mint.) in that network settings box is (at least in mint) a wireless connection “tab” which i decided to check just to see what would happen, and my wireless adapter turned on! according to my wireless network manager, i am not connected, and my wireless adapter light is still orange, but i am connected. if ubuntu has a similar general network property, perhaps it will work for some.
thanks it helped me a lot
http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz returns 404 not found.
Mine worked out of the box. I’m using Ubuntu 10.04 on HP G70-463CL notebook. No need to mess with Ndiswrapper stuff. I checked it with hardware drivers setting and it says I have no closed drivers. 😀 .