April 29, 2008 · Networking ·

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

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

  1. JP says:

    Thanks so much. Worked for my Compaq C762NR, but lost again after updates in June. I can’t find a source of what the precise update is that caused the problem and don’t have the patience to keep re-installing and subselecting updates until I can isolate it. I am just going to re-install, follow the instructions here and wait a couple months before accepting updates. I hope someone out there can figure this out.

  2. marisano says:

    Thanks heaps! Worked on my HP Pavilion dv6000z under Hardy 32-bit.

    For those of you having problems after an update: that modprobe command adds the module to your kernel, so whenever you update the kernel, you’d need to reinstall it (by at least running modprobe, or perhaps building against the new kernel). See man modprobe for more info, if you’d like.

    Cheers!

  3. Angelo says:

    The thing is that when you update the kernel you are going to have to redo the make, sudo make install steps. I had this problem when I updated my Hardy, and now it’s back to normal.

  4. marisano says:

    Hmmm… One problem though. Since getting wifi networking to work, my laptop (HP Pavilion dv6000z) no longer knows how to hibernate. It won’t go into suspend mode either. In both cases it just hangs at some point early on in the process. Seems like it’s waiting on some network service.

    Any ideas??

  5. marisano says:

    OK, updating to the current build enabled my laptop to suspend and hibernate again, i.e. replacing “r2756+ar5007” with “r3366+ar5007” in the instructions above. If you still have problems try running
    sudo edit /etc/default/acpi-support
    and adding “ath_pci” to MODULES_WHITELIST therein.

  6. JP says:

    I re-installed 8.04 (single boot) off the same cd I originally used and followed the steps as before and now no wireless. I’m confused as to why it would work the first time and not the next. Any thoughts? Should I update and try post 65? Do other distributions have alternate solutions. Very frustrating

  7. michael says:

    THANK YOU SO much!. this was literally a 2 minute job.

  8. JP says:

    WOOHOO! working again even after updates. I think that my router settings got changed in the meantime and I couldn’t access it or something

  9. monis says:

    Hi

    I have ndiswrapper working but wanted some additional information.
    Will the r3366 madwifi mentiond in post3 work on Ubuntu hardy 64bit(amd64 athlonx2 processor)

  10. Jeremy says:

    have tried everything said on here and everytime i reboot my laptop my wireless will not connect to any wireless network. can see all the networks there just can not connect to any! i have a Acer Aspire 5520-5912 AR242x 802.11abg wireless PCI express adapter. 1st time i tried everything posted it worked but once a restart happened it will not connect i have to go through and re do it all over and over. HELP!!!!

  11. Rewarp says:

    I can safely say the Madwifi link I followed and applied works, perfectly. But it’s only for the AMD64 models.

  12. Richard says:

    Its working great with only one issue.

    After every reboot it disappears.

    If I do “sudo modprobe ath_pci” it shows back up and works great.

    I don’t mind opening a terminal and doing that but is there a way to make it automatically detect it on boot?

  13. Érick says:

    Thanks!!
    At the first time I tried Andreas’ tip it worked. After the reboot it didn’t work anymore. So I tried
    echo “blacklist ath_pci” | tee -a /etc/modules.d/blacklist
    before his tip and it worked again!!
    Thanks a lot!!

  14. Érick says:

    🙁
    I don’t know why, but today the way i folowed before didn’t work anymore…
    I tried that lots of times yesterday…
    Anyone can help me please?

  15. Érick says:

    Thinking back again, it worked today. It stoped after I installed Wine…
    Any help?

  16. Racie says:

    I cannot disable HAL. It says it’s disabled, but it also says that it is still in use. I have rebooted a couple times, but it is still in use. If you don’t understand what I mean, you can view this picture: http://img362.imageshack.us/img362/4617/screenshothardwaredriveiv6.png

  17. JP says:

    Since I can’t get this to work after working then failing then working again then failing again, I started to worry that my wireless router was an issue. I have no idea what I am doing, but I have a linksys wrt54G and clicked on this green circle icon like SES reset security settings and I got the device to be recognized again. But this was brief and it asked for some security WPA thing that I never had a password for. Does that make any sense to anyone that actually knows how to do this stuff? I’m very frustrated at this point. I can’t get the device recognized despite going through the steps again and again. Help!

  18. jesus Reina says:

    Hola realice los pasos de instalación de MADWIFI tal cual como los especificastes , y aparentemente se instaló sin problemas, sin embargo mi computadora no levanta la conexion a red, me sale el icono con la “X” en rojo

    Que debo hacer para corregir

  19. drfrozt says:

    hi,
    can u help me, i have an artheros ar5006eg card which is not working.i’m running gutsy.

  20. GaMaL says:

    I did exactly what’s written upthere ..
    I’m an AMD turion x2 and this is the
    lspci output

    00:00.0 Host bridge: ATI Technologies Inc RS480 Host Bridge (rev 10)
    00:01.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
    00:04.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
    00:05.0 PCI bridge: ATI Technologies Inc RS480 PCI Bridge
    00:12.0 IDE interface: ATI Technologies Inc IXP SB400 Serial ATA Controller (rev 80)
    00:13.0 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)
    00:13.1 USB Controller: ATI Technologies Inc IXP SB400 USB Host Controller (rev 80)
    00:13.2 USB Controller: ATI Technologies Inc IXP SB400 USB2 Host Controller (rev 80)
    00:14.0 SMBus: ATI Technologies Inc IXP SB400 SMBus Controller (rev 83)
    00:14.1 IDE interface: ATI Technologies Inc IXP SB400 IDE Controller (rev 80)
    00:14.2 Audio device: ATI Technologies Inc IXP SB4x0 High Definition Audio Controller (rev 01)
    00:14.3 ISA bridge: ATI Technologies Inc IXP SB400 PCI-ISA Bridge (rev 80)
    00:14.4 PCI bridge: ATI Technologies Inc IXP SB400 PCI-PCI Bridge (rev 80)
    00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
    00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
    00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
    00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
    01:05.0 VGA compatible controller: ATI Technologies Inc RS485 [Radeon Xpress 1100 IGP]
    02:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
    06:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
    06:04.0 CardBus bridge: ENE Technology Inc CB-712/4 Cardbus Controller (rev 10)
    06:04.1 FLASH memory: ENE Technology Inc ENE PCI Memory Stick Card Reader Controller (rev 01)
    06:04.2 SD Host controller: ENE Technology Inc ENE PCI Secure Digital Card Reader Controller (rev 01)
    06:04.3 FLASH memory: ENE Technology Inc FLASH memory: ENE Technology Inc: (rev 01)
    06:04.4 FLASH memory: ENE Technology Inc SD/MMC Card Reader Controller (rev 01)

    the command sudo iwlist scan return

    lo Interface doesn't support scanning.

    eth0 Interface doesn't support scanning.


    I used the .inf xp driver method .. I didn’t get the other method..

    Thanks in advance 🙂

  21. GaMaL says:

    In Case it will help
    it’s Acer Aspire 5102wlmi Laptop
    thanks in advance

  22. Érick says:

    🙁 Oh man!! I don’t know what’s hapenning, but i can’t post my tip for you!!
    I’m tryed that on monday, tuesday and today!!
    What’s wrong??

  23. sithchikken says:

    Thanks,

    The original post worked a treat. Bye-bye wifi dongle.

  24. Eric H says:

    Works like a charm on my Compaq Presario C762NR. Thanks!!

  25. DW says:

    Fujitsu Siemens pa1510 running Ubuntu 8.04 32bit, Atheros AR5005G wireless. Ran an update and suddenly lost my wireless – light on but system didn’t see ath0 anywhere and the proprietary drivers display said no such drivers in use. Ran your instructions, rebooted and all working fine again. I guess my question is, WTF did my atheros drivers suddenly disappear??????

  26. Navi says:

    I had the exact same problem. After a 2 day blacklisting crazy I set up this script found above in Post 22 and got it working beautify. I have a Toshiba Satellite A 215-S4757. Hope it works.

    BTW you guys are gods! Thank you very much. When I get this completely up and running I am going to kick Vista to the curb.

    blacklist3
    mv blacklist3 /etc/modprobe.d/blacklist
    ndiswrapper -ma && sudo ndiswrapper -mi
    modprobe ndiswrapper
    sed ’s/blacklist ath_pci/#blacklist ath_pci/g’ /etc/modprobe.d/blacklist>blacklist3
    mv blacklist3 /etc/modprobe.d/blacklist

    save the file as subirwifi

    Copy file into /etc/init.d and change file mode

    sudo cp subirwifi /etc/init.d
    chmod +x subirwifi

    Now we need to make a symbolic link in /etc/rc5.d to load driver before X server starts.
    go to /etc/rc5.d

    sudo ln -s /etc/init.d/subirwifi S09subirwifi

    if all was correct you should see a line like this when you do ls -l

    lrwxrwxrwx …………… S09subirwifi -> /ect/init.d/subirwifi

    reboot your system and… Luck!!!”>

  27. Navi says:

    Apparently I cant format T.T that was meant for Racie.

  28. stranger says:

    Hello Ignacio,

    My wireless was working and I updated it yesterday, now it just doesn’t work. Can u please tell me how to boot the previous version of kernel 2.6.24-18.I am a beginner.

    Thanks in advance.

  29. Brian says:

    Just wanted to say “Thanks!” These instructions worked perfectly using Ubuntu 8.04 on my HP dv5z.

  30. Rob says:

    I tried and failed 🙁 on my acer aspire 3680 I unchecked the hal box but there is another box ticked next to
    Support for Atheros 802.11 wireless Lan cards, should that also be unticked? I take it if it works i should see a wireless connection in Networks? And lastly under your heading Preparing your system, the next line says sudo apt-get install build-essential has this to be typed in somewhere?
    As you can probably tell in very green to this but i’m so glad to be rid of microsoft just need my wifi to be 100%
    Cheers if you can help me
    Rob

Leave a Reply

  • Recent comments