Atheros AR5007 wireless with madwifi on Ubuntu 8.04 (Hardy heron)

Sponsored Link
If you have Atheros AR5007 wireless network adapter follow this procedure to make it work in ubuntu 8.04

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

cd madwifi-ng-r2756+ar5007


sudo make install

sudo modprobe ath_pci

sudo reboot

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

Install ndisgtk

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

sudo reboot

Your card should have been detected and it should show available networks but if it does not, try

sudo iwlist scan

Sponsored Link

You may also like...

144 Responses

  1. NaomiB says:

    Nope 🙁 it still doesn’t work!

  2. Mr Potter says:

    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.

  3. pfoifry@gentoo says:

    Works with AR5007EG in a Compaq C762NR. Rocking

  4. cyphrin says:

    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
    4.) tar -xvf madwifi-hal-
    5.) cd madwifi-hal-
    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

  5. tdudley says:

    I am good up to the

    travis@travis-laptop:~$ 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??

  6. Michael says:

    Grrr.. *face palm* I have no access to ethernet, I have an atheron lan card. What ever am I to do?

  7. Andrew M says:

    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

    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!

    –Linux Newbie

  8. Rob de Roos says:

    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?

  9. Allfo says:

    1.Download madwifi-hal- from

    2. extract tarball
    tar zxf madwifi-hal-

    3. change directory into the extracted package

    4. make

    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
    dhclient ath0

  10. Rob says:

    Dear Alfo,
    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?

  11. Allfo says:

    hi Rob,

    you could try to put the steps in a bash script and do an update-rc.d…


    1. run iwconfig ath0 list scan and/or iwlist ath0 scanning to list available AP’s

    2. create script (say in your home directory) using details from the scan above

    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

    4. create a symbolic link of in /etc/init.d/
    sudo ln -s ~/ /etc/init.d/

    5. run update-rc.d to make script execute during bootup
    sudo update-rc.d defaults

  12. Frank Hill says:

    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:
    sudo ./redo-wifi

    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
    rmmod ath_pci
    rmmod ath_hal
    rmmod wifi

    # please substitute the correct path to where you put the madwifi-ng-r2756+ar5007
    cd /home/fwhill/madwifi-ng-r2756+ar5007

    make install
    modprobe ath_pci


    All the best,
    Frank Hill

  13. JOJO says:

    Thank you very much..Bookmarked!!!!

  14. Neil says:

    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

  15. newUbuntuUser says:

    how do I figure out which download to use for approach as ones suggested here do not exist:

  16. DJKMan says: appears to have moved the tar file so some of us cannot continue without the file. Anyone know of a mirror?

  17. tutatis says:

    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.

  18. totanlinh says:

    try this, it works for me as the madwifi was obsoleted

  19. Belenos says:

    yes there is a new mirror and homepage:

  20. Evan says:

    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.

  21. Steph says:

    thanks it helped me a lot

  22. Simon Taylor says: returns 404 not found.

    Any options?


    Simon Taylor

  23. compunuts says:

    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. 😀 .

Leave a Reply

Your email address will not be published. Required fields are marked *