April 29, 2008 · Networking · Email This Post

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

wget http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz

tar xfz madwifi-ng-r2756+ar5007.tar.gz

cd madwifi-ng-r2756+ar5007

make

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

wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz

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

Incoming search terms:

Related posts

144 Comments to “Atheros AR5007 wireless with madwifi on Ubuntu 8.04 (Hardy heron)”

  1. dude says:

    That is still not working because we want it to work with default linux wireless tools like iwconfig, iwlist, wlan0, etc. madwifi sux I don’t want their crap commands and bogus tools just the damn driver api :(

    [Reply]

  2. cyst says:

    thank you very much. works perfectly on my acer aspire 5710Z.

    [Reply]

  3. Carlos says:

    Hi there :
    Hi there ;

    I was trying you solution ” For AMD 64 users ” and when I try to download the driver ( 2nd step ) I got this :

    owner@owner-laptop:~$ wget http://blakecmartin.googlepages.com/ar5007eg-64-0.2.tar.gz
    Error parsing proxy URL http://:8080/: Invalid host name.
    owner@owner-laptop:~$

    I am new with this ( only working with UBUNTU 2 days ago ….) . How can I fix it ???

    Thank you

    [Reply]

  4. wladimyr says:

    Hi Guys

    Big congratulations for all ubuntu/linux team. My Acer aspire 5520 now flies over the waves of my wifi card. You are really powerfull!

    I have some additional remarks. The procedure over here introduce some bad characters (such as “) in the blacklist and modules files which must be edited to del these chars!

    Tanks again

    Wladimyr

    [Reply]

  5. Mr Potter says:

    OK a few updates to this especially if your running on an Acer Aspire variant:

    First go to System–>Administration–>Hardware Drivers” and disable by un-ticking the following options

    Atheros Hardware Access Layer (Hal)

    Support for Atheros 802.11 wireless cards

    Then Reboot your system.

    Open a terminal and enter the following commands:

    sudo apt-get update

    sudo apt-get install build-essential

    Now go to this site and check for the latest version of the hal:
    http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/
    (As of writing this it was madwifi-hal-0.10.5.6-r3861-20080903)

    Now more terminal stuff (replace “*” with the latest builds numbers)

    wget http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r****-********.tar.gz

    tar xfz madwifi-hal-0.10.5.6-r****-********.tar.gz

    cd madwifi-hal-0.10.5.6-r****-*********

    make

    sudo make install

    sudo modprobe ath_pci

    *****Close any windows and save anything before entering the next command!!!****

    sudo reboot

    Once logged back in go to System–>Administration–>Hardware Drivers” and enable by ticking the following option

    Atheros Hardware Access Layer (Hal)

    Support for Atheros 802.11 wireless cards

    Then Reboot your system. Once it’s back up you should be able to see wirless networks by clicking the network icon on the panel.

    I can confirm that this worked on an Acer Aspire 5720Z

    Good luck

    [Reply]

  6. ba5ik7 says:

    I’m such a noob to ubuntu… I would love use this OS.

    I did everything you ask and my output was this

    wesley@wesley-laptop:~$ tar xfz madwifi-hal-0.10.5.6-r3698-20080604.tar.gz

    wesley@wesley-laptop:~$ cd madwifi-hal-0.10.5.6-rr3698-20080604.tar.gz
    bash: cd: madwifi-hal-0.10.5.6-rr3698-20080604.tar.gz: No such file or directory

    wesley@wesley-laptop:~$ make
    make: *** No targets specified and no makefile found. Stop.

    wesley@wesley-laptop:~$ sudo make install
    make: *** No rule to make target `install’. Stop.

    wesley@wesley-laptop:~$ sudo modprobe ath_pci
    WARNING: /etc/modprobe.d/blacklist line 40: ignoring bad line starting with ‘“blacklist’

    wesley@wesley-laptop:~$

    So what I’m I doing wrong… Please help!!!

    [Reply]

  7. Dirk Zwart says:

    This works, thanks. Also remember to go into the Host area in your networking properties area and clear out all the defaults. My guess is you should clear out everything. You would only need host addresses if you have a Domain server sitting in your basement and if that is the case, you probably already know how to set up a wireless and wired network.

    [Reply]

  8. ptrance^raYn says:

    Same problem like Bill (poster 21)

    Scripting worked without errors, driver installed via ndiswrapper, wlan receiver is being recognized, correct config via nm-applet, I can connect to every network out there but still when opening the next best browser -> happens nothing… :/

    Specs.
    Ubuntu Studio 8.04 hardy AMD64
    adapter – AR242x

    little guidance pls?

    [Reply]

  9. Saeed says:

    I used these instructions with Compaq C700 and it worked perfectly. Thanks a million.

    [Reply]

  10. Mr Potter says:

    ba5ik7,

    Try doing:

    wesley@wesley-laptop:~$ cd madwifi-hal-0.10.5.6-rr3698-20080604

    If your post is straight from your terminal, then you still had the tarball extension (tar.gz) in the file name when you tried to change directories. That gets dropped in the previous step (tar xfz).

    If you continue to have problems with the steps just post again and I’ll try and get back to you as soon as I can.

    Dirk Zwart, That’s good advice about the host file. If anyone reading this is not familiar with the host file or how to get into it, open the terminal and enter:

    sudo gedit /etc/hosts

    However it’s still advisable to copy and paste the contents into another text file prior to clearing the list just to be on the safe side.

    [Reply]

  11. Ranev says:

    Installed ubuntu 8.10, disabled the drivers from system->administration->hardware drivers… Reboot and wifi started to work. Weird. Tried all madwifi and ndiswrapper and stuff before… nothing worked…
    Hope this helps someone…
    I’ve Sony Vaio Nr220e.. with some atheros card…

    [Reply]

  12. NaomiB says:

    I’m using 8.04 and I have two (?!?!) wireless adapters, when I look under network adapters in Vista.

    The first is atheros AR5007EG and the second is realtek RTL8101E.

    When I try the steps above with either wget http://snapshots.madwifi.org/special/madwifi-ng-r2756+ar5007.tar.gz
    or wget http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz it gives me the error “resolving snapshots.madwifi.org… failed: Name or service not known”

    How do you know if you have i386 or AMD 64?

    Thanks :)

    [Reply]

  13. Mr Potter says:

    NaomiB

    Try following the steps in reply #95. The original instructions are a bit out of date, and that particular build of madwifi is no longer available. If you have problems post back and I will try and help as best as I can.

    [Reply]

  14. Mr Potter says:

    PS NaomiB; in Vista that RealtekRTL81013 is the “wired” network chip (for a cat5 cable), and the Atheros AR5007EG is the “Wireless” chip.

    [Reply]

  15. NaomiB says:

    Thanks for that!

    I did all of the steps in #95 successfully but I still don’t have a wireless connection.

    On my connection properties dialogue box, I have two names: eth0 and lo. Does that mean it’s partially worked?

    :)

    [Reply]

  16. Mr Potter says:

    errr. second time typing this with an injured wrist…:P

    NamoiB,

    Try right clicking on the network icon to the right of the top panel and make sure that “Enable Networking” and “Enable Wireless” are both checked.

    Then open a terminal:

    sudo ifconfig

    copy and paste the contents into a new post so I can see what you have going on. Also check System>Administration>Hardware Drives, and just make sure that both of these boxes are checked:

    Atheros Hardware Access Layer (Hal)

    Support for Atheros 802.11 wireless cards

    Let me know what you find out, and I’ll try and point you in the right direction.

    [Reply]

  17. NaomiB says:

    This is what i get from ifconfig….

    ath0 Link encap:Ethernet HWaddr 00:1b:9e:52:64:ce
    inet6 addr: fe80::21b:9eff:fe52:64ce/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    eth0 Link encap:Ethernet HWaddr 00:1b:38:41:eb:23
    inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
    inet6 addr: fe80::21b:38ff:fe41:eb23/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:2284 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2254 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:2548775 (2.4 MB) TX bytes:320417 (312.9 KB)
    Interrupt:220

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:1478 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1478 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:73900 (72.1 KB) TX bytes:73900 (72.1 KB)

    wifi0 Link encap:UNSPEC HWaddr 00-1B-9E-52-64-CE-00-00-00-00-00-00-00-00-00-00
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:585 errors:0 dropped:0 overruns:0 frame:546
    TX packets:176 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:280
    RX bytes:59740 (58.3 KB) TX bytes:8096 (7.9 KB)
    Interrupt:16

    Thanks!

    [Reply]

  18. frietz says:

    Mine is Presario C700 using AR5007 wireless card.
    OS installed is Ubuntu 8.04 Hardy.

    Here’s what I did to get my wireless card 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 reboot

    Then that’s it. Works like a charm :D

    [Reply]

  19. Pie says:

    Well, this works great on Ibis as well, so good news. Bad news is that the location of madwifi has changed due to a new revision, as well as the filename.
    It needs to be changed to: (For the i386)

    sudo apt-get install build-essential

    wget http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3861-20080903.tar.gz

    tar xfz madwifi-hal-0.10.5.6-r3861-20080903.tar.gz

    cd madwifi-hal-0.10.5.6-r3861-20080903
    make

    sudo make install

    sudo modprobe ath_pci

    sudo reboot

    [Reply]

  20. Pie says:

    Errr, whoops, Ibex I mean. ><

    [Reply]

  21. Mr. Potter says:

    Glad to hear that things are working good in Ibex. For anyone planning to stick with Hardy through the supported period (like myself), a word of caution if you haven’t already figured it out. When kernel updates are applied (you’ll notice the “Updates are ready for your computer” button on the panel. A window will pop up with a list of updates…kernel updates are listed in there). You most likely will have to follow this procedure again. I have attempted to get this working on the .20 kernel a couple weeks ago and had some issues. .21 was out last I checked but haven’t messed with it. Your options are to plan on running through this procedure each time there is a kernel update or not apply kernel updates at all. There are those who will argue for and against either option so it’s totally up to your personal discretion…I will not be advocating either way.

    NaomiB,

    Sorry I’ve neglected your earlier post…

    Try the following one more time reboot then give it another shot(skipping the “build-essential” part in the instructions)

    sudo apt-get install build-essential

    Also if you haven’t recently run all of your updates, and try again.

    [Reply]

  22. pasencorelui says:

    madwifi.org is unreachable. Is there another way to get madwifi-hal-0.10.5.6
    Does someone can share it?

    Thank you

    [Reply]

  23. pasencorelui says:

    Thank’s Mr Potter,

    There is no link to the new file but a link to madwifi.org wich is no longer available. If you find another link, it will be welcome…

    [Reply]

  24. Mr Potter says:

    If all else fails try a search at sourceforge, and see if they have it listed there…

    [Reply]

  25. frietz says:

    I have temporarily uploaded a copy of madwifi-hal-0.10.5.6 here: http://www.frietz.net/blog/?p=19
    Hope it helps.

    [Reply]

  26. slxception says:

    The correct address for madwifi is:
    http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6/

    Ok, once I got these instructions done, I got the wireless set up, but for some reason, it’s not able to connect to the router wirelessly. I’m also using 8.10.

    [Reply]

  27. masterr says:

    everthings works fine thanks thanks thanks

    [Reply]

  28. NaomiB says:

    I’ve just changed to Ibex, and I’ve repeated these steps again. I still can’t get it to work!

    Any ideas?

    [Reply]

  29. Frietz says:

    If you try to look at my post #108, those are the exact steps I’ve made with my laptop.
    But here’s the catch: I’ve done those steps also in another laptop. Guess what? It didn’t work.
    Weird.

    But here’s what I did. I clicked on Hardware Drivers in System > Administration > Hardware Drivers.
    Then I disabled “Support for 5xxx series of Atheros 802.11 wireless LAN cards” (this is apart from Atheros Hardware Access Layer”). Am not sure if you have that option. You might as well disable that option if you have it enabled.

    Then, well, yes I rebooted the laptop. It didn’t work.
    So I run sudo modprobe ath_pci. It worked.

    Just to make sure I don’t keep on typing the same command when I reboot the laptop the next time around, I do sudo vim /etc/modules and append “ath_pci” (without the quotes of course). Then I saved the file.

    Again, I don’t know if this will work on your case. But you can try.

    [Reply]

Leave a Reply