How to get Atheros AR5007EG or AR242x wireless cards (may be other models) working in Ubuntu 8.10 (Intrepid Ibex)

Sponsored Link
This tutorial will explain how to Atheros AR5007EG or AR242x wireless cards working in Ubuntu 8.10 (Intrepid Ibex).First you need to compile latest ath5k driver using the following procedure.Use one of the following method.

Preparing your system

sudo aptitude install build-essential

This will install all the required compilers.

Method 1

Now you need to download the latest wireless drivers from here using the following command

wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2.6.tar.bz2

Now you have compat-wireless-2.6.tar.bz2 file you need to extract this file using the following command from the terminal

sudo tar -jxvf compat-wireless-2.6.tar.bz2

Move to the directory you extracted in terminal

cd directoryname

Run the following commands

make

sudo make install

sudo make unload

sudo make load

Uninstall drivers

If you want to uninstall cd in to the wireless drivers directory path and use the following commands

sudo make unload

sudo make uninstall

Method 2

if you are on Intrepid and still cannot use wifi with an Atheros card , you need to do two things, 1) install linux-backport-modules and 2) blacklist ath_pci and ath_hal.

To install the backport modules, just search for it on Synaptic or use apt-get or aptitude, it's called linux-backports-modules-intrepid. Then on System/Administration/Hardware Drivers make sure Atheros driver is activated.

sudo aptitude install linux-backports-modules-intrepid

For Jaunty Users run the following comamnd

sudo apt-get install linux-backports-modules-jaunty

To blacklist the old modules, do this:

gksudo gedit /etc/modprobe.d/blacklist

And add the following lines At the bottom of the file save and exit

blacklist ath_hal
blacklist ath_pci

Now you need to reboot your system.

IF after this steps you still cannot make it work, you probably have something left still blacklisting ath5k, thus making it not to load. You should search all the files on /etc/modprobe.d for all lines that had:

blacklist ath5k

And add a # before the start of the line, thus making it into a comment so the above one becomes

# blacklist ath5k

Save and exit the file

I hope this help for some one to fix their wireless problem.

Sponsored Link

Incoming search terms:

Related posts

95 thoughts on “How to get Atheros AR5007EG or AR242x wireless cards (may be other models) working in Ubuntu 8.10 (Intrepid Ibex)

  1. There is an additional option, since ath5k is under development and as many of the people (including me) that have tried it also have noticed that the connection is lost after some time, and on the other hand, the card can stop working if you have a dual boot and after a restart, you try to boot under vista, (that happened to me and I solved it completely shutting down the machine and starting it again). Well.. lets go with METHOD 3 (using madwifi)
    Download the latest snapshot from:
    http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6/
    this branch adds support for AR5007 cards.
    Extract the content in a folder.
    uninstall linux-backports-modules-intrepid as it interferes with madwifi.
    sudo dpkg -P linux-backports-modules-intrepid

    then go to the folder where you extracted the snapshot and in a terminal go to the scripts folder and run these two SCRIPTS:
    cd scripts
    ./madwifi-unload
    ./find-madwifi-modules.sh $(uname -r)
    cd ..

    answer r(remove) to remove old madwifi modules.
    then just these two more lines:
    make
    make install

    then check (if you have followed methods 1 or 2 before) that madwifi isn’t blacklisted:

    gksudo gedit /etc/modprobe.d/blacklist

    and comment the lines if present:

    blacklist ath_hal
    blacklist ath_pci

    so they look like:
    #blacklist ath_hal
    #blacklist ath_pci

    and thats it! reboot and you will have your AR5007 working!

    I have tried both ath5k and madwifi, but i have to say that for this card madwifi is better, more stable and doesn’t cause weird things as I commented before.

    [Reply]

  2. Thanks Mitchell, very easy method and working in seconds.

    Since I didn’t even tried the other two methods, I had not to mess with the blacklists at all.

    [Reply]

  3. You, My friend are a GOD SEND!!! This got my wireless Atheros AR242x up and running after countless failed attempts via other methods. Many thanks to everyone who contributed to making this possiable, painless, and very simple to do. You and the rest of the free & open-source community rock!

    Thanks again :D !!

    [Reply]

  4. Thank you so much! Method #1 worked like a dream! Now if only I could work out Intrepid’s buggy suspend/hibernate issues…

    [Reply]

  5. Chris:
    If you use Method 3 (madwifi), you can avoid suspend/resume issues using the workaround posted in Intrepid release notes: create a file /etc/pm/config.d/madwifi containing the single line:

    SUSPEND_MODULES=ath_pci

    and that’s it!

    [Reply]

  6. Hey it looks like im geting there but im fairly new to the terminal, scripts etc., so after;

    ./find-madwifi-modules.sh $(uname -r)

    I press “r” and then im stuck –

    You type “cd” after the ./find…… and then i return to the normal “moeslund@laptop:” and can’t type the last 2 lines. What am i doing wrong?

    [Reply]

  7. Henrik:
    When you run the second script (./find…) you are going to be asked for removing the old madwifi modules, when you answer “r”, the script will remove them. then cd .. go back to the folder where you extracted the snapshot. then you should be able to compile and install.
    sudo make

    then

    sudo make install

    and thats it. I recommend you familiarize with the command line and use google if you dont understand any command.

    [Reply]

  8. Used the method 3 and got it working first try. Been trying to get the card working for months. Great work.

    [Reply]

  9. 3rd Method did not work for me. It got me further than any other method, however. At least now my HP DV5 is using a driver, realizes there is a wifi card here, but does not connect to the network. Anyone have any tips?

    [Reply]

  10. This worked for me on an ASUS Eee PC 1000HD running Ubuntu Netbook Remix 9.04 with an Atheros AR242 card. Nothing else worked after hours and hours of troubleshooting. Thank you soooo much!! :)

    [Reply]

  11. Method # 3 work like a charm, Thank You so much for this my friend..

    i was unable to run the command “make unload” and the removing part, but still when i make install and reboot when i saw the connection establish icon i feel like tuns of metal is off my head…

    Thanks Mitchell

    [Reply]

  12. I am now able to use WiFi with my laptop. All I did was reset the BIOS to the factory settings.

    Thanks!

    [Reply]

  13. I got stuck at the final step of the sudo make install command, it started installing and then gave me an error of “permission denied”

    [Reply]

  14. I’m sorry, I managed to get it to install the required files, but when I rebooted, the problem still remained

    [Reply]

  15. Thank you very much after doing all three methods, the card is finally working and registering no stupid time out and die stuff. It only took 12 hours of straight work to make this happen thank you to all that has helped. I can now drop dead and work on this stuff some more tomoro

    [Reply]

  16. I have an AR5007 (AR242x) in my Compaq CQ60-206US.

    In Jaunty it pretty much worked right out of the box but was SLOWWWWWWW. I had compiled the madwifi-hal under centos5.3 (ath5k would not work in cent) on this laptop and it gave me a consistent 19Mb/s DL however with ath5k on Ubuntu on this laptop I could only get < 5Mb/s or worse. Oddly I never got madwifi to work in Jaunty.

    I just read your guide and ran the command:

    sudo apt-get install linux-backports-modules-jaunty

    and added "blacklist ath_hal" right under "balcklist ath_pci" in "/etc/modprobe.d/blacklist-ath_pci.conf" and rebooted.

    Now I am back to the 19Mb/s download speeds, thanks!

    [Reply]

  17. Thanks Mitchell,

    I’ve been trying to get Ubuntu 8.10 UMPC running on my Samsung Q1 Ultra Premium but my wireless Atheros AR5007EG wireless card wasn’t functioning. Your Method #3 seems to have done the trick. Thanks so much!

    [Reply]

  18. Whoo hoo! Been looking for a solution to this stupid atheros card all day!

    Thanks a million man!

    [Reply]

  19. thanks for this i’ve been mucking about with madwifi for months trying to get the ar242x in my presario c700 working, tried a different google search, found your instructions and had it working in under 15minutes. method 1 worked fine, thanks.

    [Reply]

  20. I followed a procedure similar to this in October 2008 in order to get my Atheros wireless card working under Hardy. I forgot that the procedure had to be repeated after a kernel upgrade.

    After upgrading to Karmic, Method 1 worked fine. However, the ath5k driver had to be added to /etc/modules in order to be recognized at start-up.

    The help is greatly appreciated.

    [Reply]

  21. you can avoid suspend/resume issues using the workaround posted in Intrepid release notes: create a file /etc/pm/config.d/madwifi containing the single line:

    [Reply]

Leave a comment

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