Solution for Atheros AR 5006 / 5007 Cards

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
Post Reply
mickinator
Level 1
Level 1
Posts: 28
Joined: Fri Mar 14, 2008 1:25 pm
Location: Dublin, Ireland
Contact:

Solution for Atheros AR 5006 / 5007 Cards

Post by mickinator » Fri Mar 14, 2008 1:51 pm

To the mods, maybe you should sticky this, because I had nothing but trouble getting this to work. Emphasis on nothing but trouble, and if I had trouble, I'm sure a lot of other people had, I'd be fairly linux literate!!! lol. Hope this helps.

Heres how I set mine up:

Download this snapshot of the madwifi drivers:

snapshots.madwifi.org/madwifi-ng/madwifi-ng-r2756-20071018.tar.gz

Download this patch:

madwifi.org/attachment/ticket/1679/madwifi-ng-0933.ar2425.20071130.i386.patch?format=raw

Open up terminal, there are a few packages we need to install first:

sudo apt-get install sun-java6-jdk
sudo apt-get install g++
sudo apt-get install gcc
sudo apt-get install patch

If anyof these requireyou to enter your root password, do it.

Now change to your Desktop in terminal

cd Desktop

Unpack the snapshot downloaded earlier

tar -xvzf madwifi-ng-r2756-20071018.tar.gz

patch -p0 < madwifi-ng-0933.ar2425.20071130.i386.patch

Once that's done you need to make and install the driver

make
sudo make install

Finally probe the module

modprobe ath-pci

Reboot and your card should be working!

Keep the patched file somewhere safe, because everytime you do something major to the system like updates etc, it drops the module and you need to mak, make install, and modprobe it everytime it disappears!
Keep her pinned!

Man??

mickinator
Level 1
Level 1
Posts: 28
Joined: Fri Mar 14, 2008 1:25 pm
Location: Dublin, Ireland
Contact:

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by mickinator » Sat Mar 15, 2008 6:32 pm

Actually, on updating I did make install, and then modprobe as above, but the modprobe chucked out an error, so I just rebooted and it worked fine. Not sure why, cause u need to modprobe in Ubuntu.

And some people may need to blacklist their ath5k module if it's installed

sudo gedit /etc/modprobe.d/blacklist

inside the window that pops up, simply add

blacklist ath5k
Keep her pinned!

Man??

User avatar
jokersloose
Level 4
Level 4
Posts: 294
Joined: Sun Mar 02, 2008 6:44 pm
Location: Laramie, WY
Contact:

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by jokersloose » Sat Mar 15, 2008 7:08 pm

Fixed Followed the directions @ http://www.ubuntugeek.com/atheros-5007e ... tform.html

Thanks.

I tried this and got an error at the patch part.
john@john-laptop:~/Desktop$ patch -p0 < madwifi-ng-0933.ar2425.20071130.i386.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur old-hal/ah.h hal/ah.h
|--- old-hal/ah.h 2007-12-03 16:16:56.000000000 -0800
|+++ hal/ah.h 2007-12-03 16:16:01.000000000 -0800
--------------------------
File to patch: madwifi-ng-0933.ar2425.20071130.i386.patch
patching file madwifi-ng-0933.ar2425.20071130.i386.patch
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 416.
Hunk #3 FAILED at 441.
Hunk #4 FAILED at 488.
Hunk #5 FAILED at 674.
Hunk #6 FAILED at 711.
6 out of 6 hunks FAILED -- saving rejects to file madwifi-ng-0933.ar2425.20071130.i386.patch.rej
can't find file to patch at input line 93
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur old-hal/public/i386-elf.hal.o.uu hal/public/i386-elf.hal.o.uu
|--- old-hal/public/i386-elf.hal.o.uu 2007-12-03 16:17:16.000000000 -0800
|+++ hal/public/i386-elf.hal.o.uu 2007-12-03 16:15:17.000000000 -0800
--------------------------
File to patch:
As you can see it gave me an wrong switch error. So when it asked me for which file I want to patch I entered the file name. And I got hunk errors.


Any ideas? This is my sons laptop and he HATES Vista. And likes the way Mint runs on my desktop, and logic says it should run much getter on his laptop seeing as it's a dual core w/2 gig of RAM and such. So just need to get the wireless up and running.

Thanks for any help.
James

guest

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by guest » Sun Mar 16, 2008 11:52 am

Move the patch into the untar'd snap folder. then cd into it and run the patch command.

Thnx to op. worked on my hardy lappy. Someone should post this over at ubuntu forums too :)

Danny
Level 1
Level 1
Posts: 5
Joined: Sun Mar 16, 2008 3:46 pm

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by Danny » Sun Mar 16, 2008 4:19 pm

Hi,

Just install the madwifi drivers per the Mickinator instructions, also thanks to the heads up on changing the

directory when doing the "make" . Although I've used Unix in the past. I'm still a newbie when it comes to being

the administrator on my own machine. Wireless works fine now, Once I turned the wireless button ON "duh?"

LinuxMint was the only distro that got my video card right (I've tried a few). And now my wireless is all set.

THANKS, LINUXMINT!!!!

I've got a new Compaq laptop V6719NR with a Nvidia 7150M graphic controller. Running 1280 x 800 wide screen.

Atheros AR5007 wireless

1Gb ram

Thanks, Danny :D

mickinator
Level 1
Level 1
Posts: 28
Joined: Fri Mar 14, 2008 1:25 pm
Location: Dublin, Ireland
Contact:

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by mickinator » Sun Mar 16, 2008 7:07 pm

Glad it helped, ill post it over at ubuntu forums, I no its as frustrating as hell to get going, but it works and I think it works better than it does on vista, super fast! Just remember to keep your untard / patched folder, cause youll need to make make install after any updates
Keep her pinned!

Man??

MrGriggs

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by MrGriggs » Mon Mar 17, 2008 6:51 pm

I believe this may have already been solved but I'll still say how I done it.

http://www.ubuntugeek.com/atheros-5007e ... tform.html
But in case this link goes down anytime soon i will paste what it says. I TAKE NO CREDIT FOR THIS.

"For those, who have an Atheros 5007EG chipset and can’t get it working with ndiswrapper, I have this guide from polish ubuntuforum. This is the only solution that worked on my computer (Toshiba SAT-A210-128), and my brothers computer.

This guide only works on i386 platforms, so if you’re running an x64 linux, then you’ve to try again with ndiswrapper or wait for a new solution from atheros and madwifi.

1. Open you terminal

2. Get this version of madwifi:

wget -c http://snapshots.madwifi.org/special/ma ... 007.tar.gz

3. Untar the downloaded package:

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

4. Get inside the unpacked directory:

cd madwifi-ng-r2756+ar5007

5. If you haven’t compiled anything from source before on your linux then you propably need the build essential package:

sudo apt-get update && sudo aptitude install build-essential

6. Now you can build your madwifi and install the modules:
make

sudo make install
"Sometimes i had to restart here to make it work"
sudo modprobe ath_pci
sudo modprobe wlan_scan_sta

The last 2 commands can cause some complications on some systems. If they do check your System >> Administration >> Restricted Drivers Manager and disable atheros here. Then try again.

7. Now restart your computer and you should be able to see any aviable networks in your Network Manager."

User avatar
jimwelchok
Level 1
Level 1
Posts: 12
Joined: Wed Dec 20, 2006 11:44 am
Location: Bartlesville, Oklahoma
Contact:

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by jimwelchok » Tue Apr 08, 2008 11:23 am

The questions is will the new version of madwifi be in a future version soon?
Ubuntu 8.04 is scheduled for April 24, 2008. :?: Mint (??)

I am using (2weeks) a Compaq F756NR with a 5007 card.
The other problem is I can't get graphics except with vesa driver, and therefore can't use VGA connector?

kozakery

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by kozakery » Mon Jun 02, 2008 1:25 pm

Problem:
Despite installed madwifi no WLAN map is recognized.
Solution:
If after you input:

Code:
lspci | grep Atheros
you get,
Quote:

Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)

or

Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

In reality you have the AR5007.

Proceed:
Prepare compilation by down-loading the compiler tools and the necessary Kernel headers:

Code:
sudo apt-get install --reinstall build-essential linux-headers-`uname -r`

If an Internet connection is not possible, the necessary deb packages can be downloaded from another machine
and copied onto a CD. For installation see package installation DEB

Un-install old drivers.

Code:
sudo apt-get remove --purge madwifi-tools
and the system driver in the restricted manager deactivate.

If you are still using ndiswrapper, then first the drivers must be removed and also ndiswrapper:

Code:
sudo rmmod -f ndiswrapper
sudo rm -r /etc/ndiswrapper/*
sudo apt-get --purge remove ndiswrapper-common ndiswrapper-utils-1.9
sudo rm -r /etc/modprobe.d/ndiswrapper
sudo rm -rf /lib/modules/`uname -r`/ubuntu/misc/ndiswrapper

Now a snapshot version of the madwifi driver is downloaded, which already repairs the bug:
Code:
wget http://snapshots.madwifi.org/special/ma ... 007.tar.gz

unpack:

Code:
tar zxf madwifi-nr-r3366+ar5007.tar.gz

change directory:

Code:
cd madwifi-nr*

Now we can compile and install:

Code:
sudo make install

If everything was implemented without error message, the module can be loaded:

Code:
sudo modprobe ath_pci

We now reboot the system.

After the restart we can test whether everything functioned:

Code:
ifconfig
iwconfig
sudo iwlist scan

and if you want to connect to a nearby open wireless router then type:
sudo dhclient



Note:
most of the above was loosely translated from the original post on the German Ubuntu forum
http://forum.ubuntuusers.de/topic/160673/

and it worked for my Aspire 3680 laptop running Linux Mint 5 beta 48

User avatar
eagle
Level 1
Level 1
Posts: 31
Joined: Fri Jul 06, 2007 12:22 am

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by eagle » Sat Jun 14, 2008 4:25 am

Hi all, thanks for posting this help. Using Mickinator's original instructions, I was able to get my dad's wireless running on an Acer Aspire 5520, which has an Atheros AR5007 wireless card.

Anyway, we just installed Elyssa now, and again, I wanted to get the wireless working. I decided to try out kozakery's method, as it is more recent, and and he says it worked on the Elyssa beta. I have nothing to complain about the instructions, but I can't connect to madwifi's website. I tried the wget command that he gave, but it didn't work. So I went to madwifi.org to see if I could download it there. But madwifi.org seems to be down. Is there a way I can get information about this? Is there some sort of archive where I might be able to get the file? Or, is it possible for someone who has downloaded the snapshot to upload it somewhere until madwifi's site is back (is this illegal)?

chazsheen
Level 1
Level 1
Posts: 4
Joined: Thu Nov 20, 2008 1:44 pm

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by chazsheen » Thu Nov 20, 2008 2:45 pm

After messing around with the ath5k MadWifi stuff when I had Elyssa installed I decided to go another route after upgrading to Felicia RC1. I've got the 5007 pain in the butt card in my laptop and decided to give the ath9k drivers a shot this time around. It went 100x times smoother, it's easier to get installed, and my network tools properly displays my card information now.

Grab them from here:

http://wireless.kernel.org/en/users/Dow ... essdrivers

And just follow the directions. I updated my linux-headers(sudo apt-get install linux-headers-2.6.27-7-generic) before I ran "make" just to be safe. After that it's as easy as: make, sudo make install, sudo make unload, sudo make load, and viola! working wireless. Didn't even need to restart networking.

llin-mint
Level 1
Level 1
Posts: 3
Joined: Wed Apr 09, 2008 3:26 pm

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by llin-mint » Sun Dec 28, 2008 2:48 am

This is useful and it works, but having to retype after every reboot was getting quite tiresome:

Code: Select all

sudo modprobe ath-pci
iwconfig
So after a little digging I found a simple solution in an unrelated thread. I'm sure the regular users must have overlooked this but for the new users and for myself, being unfamiliar with the linux operating system can make a simple task very hard to do without a little help.

Simply type:

Code: Select all

sudo gedit /etc/modules
and then add the line:

Code: Select all

ath-pci
To the end of the text already there.

Thats it, Mint will now bring up your wireless card at boot-time. Once again, thank you so much for this precious tutorial, it was so easy to install madwifi :mrgreen:

dr3amX

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by dr3amX » Mon Jan 12, 2009 8:28 pm

chazsheen wrote:After messing around with the ath5k MadWifi stuff when I had Elyssa installed I decided to go another route after upgrading to Felicia RC1. I've got the 5007 pain in the butt card in my laptop and decided to give the ath9k drivers a shot this time around. It went 100x times smoother, it's easier to get installed, and my network tools properly displays my card information now.

Grab them from here:

http://wireless.kernel.org/en/users/Dow ... essdrivers

And just follow the directions. I updated my linux-headers(sudo apt-get install linux-headers-2.6.27-7-generic) before I ran "make" just to be safe. After that it's as easy as: make, sudo make install, sudo make unload, sudo make load, and viola! working wireless. Didn't even need to restart networking.
Thank you very much :D It works like a charm.
Using Atheros AR5BXB6 on Acer Aspire 5570Z and Linux Mint 6 Felicia.
Just download drivers, unpack, make, sudo make install, sudo make unload, sudo make load and restart. :wink:

triwave
Level 1
Level 1
Posts: 34
Joined: Thu May 29, 2008 12:32 pm

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by triwave » Wed Apr 15, 2009 2:52 pm

chazsheen wrote:After messing around with the ath5k MadWifi stuff when I had Elyssa installed I decided to go another route after upgrading to Felicia RC1. I've got the 5007 pain in the butt card in my laptop and decided to give the ath9k drivers a shot this time around. It went 100x times smoother, it's easier to get installed, and my network tools properly displays my card information now.
I have the 5006X (=AR5413) and was wondering if anybody had luck with that? chazsheen didn't mention if WPA works or not. I have re-built the madwifi drivers and dorked around for hours, best I can do is get my card to show up, scan networks and display signal strenth/ssid in nm-applet , but I have not been able to get WPA working. That's a deal breaker for me and still trying to solve...

triwave
Level 1
Level 1
Posts: 34
Joined: Thu May 29, 2008 12:32 pm

Re: Solution for Atheros AR 5006 / 5007 Cards

Post by triwave » Tue Jun 02, 2009 5:13 pm

I was never able to get either of these ideas to work ... spent a lot of time and suffered a lot of frustration ... it's really a shame some stuff in Linux is still so cryptic and difficult, because much of the user experience otherwise is just fantastic. I put up with a fair it but it makes me realize the barrier to entry to timid or less experienced users is a real thing. What good is it if your wireless or printer or something so key won't work right?

Anyway, when ubuntu 9.04 came out I downloaded it and was anxious to see if my wireless would work - and it did! Yipee, but having used Mint for a while now ubuntu looked to blaahh and I didn't want to install it. I waited for Gloria to come out and first thing I checked on the live CD was wireless - it worked too!

I don't know how I had it working in Mint 5 and then broke it and never recovered, but it works fine in Mint 7 Gloria.

Thanks again for a great distro I love to use everyday!!

Post Reply

Return to “Wireless”