Sponsored Link
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


It works! I can’t thank you enough.
It worked for me as well! Used on a Compaq/HP C700 series laptop running Ubuntu Hardy Heron 64 bit. LED showing status for the integral wireless Atheros AR5007 is still off but the wireless is working very well.
Terminal command “sudo ndiswrapper -i net5211.inf” did not work for me, but I was able to install it directly using ndiswrapper instead. That was the only issue.
BRAVO! Thank you so much!
For kernel 2.6.24 (hardy) my wifi working with http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz. madwifi-ng-r2756+ar5007.tar.gz is very unstable.
im doing dual boot winXP & ubuntu since my ubuntu cannot connect to internet during my wireless problem. im using Acer Aspire 4520 which is really famous & cheap. the wireless driver is atheros AR5007EG. ok… this all start when the first time using linux & ubuntu 8 hardy was my 1st linux. i had been settle this problem for 2 times but stuck for d 3rd time until now.
my first trial, im able to settle network problem by follow all the threads that i coppied from ubuntu forums. however, sudenlly, my ubuntu having problem with sound just after i settle withmy network. maybe after 1/2 o more then that. so, i decide 2 re-install ubuntu for the 2nd time to make sure that i have a PERFECT ubuntu because im thinking off get rid winXP.
after that, i try to set up the wireless, AGAIN with steps that given in the threads that i coppied from ubuntu forums. i follow & read all the process step by step carefully. & once again, im able to settle my network for the 2nd time. and after that, im online using ubuntu since i want to update & install movie & audio codec from internet. after settle with codec & few things, i feel relief so i finally decide to decrease the size of my winXP.
so, i resize the partition from winXP using partition magic 8 which i had installed before i resize my partition & install ubuntu. after that, there is a warning that saying error in resizing partition so i quit.
so…i decide to give a check on my beloved ubuntu & U know what??? GRUB LOADING ERROR!!! so, i set WinXP as an active partition so that i can get in my winXP.
after that, i decide to install ubuntu for the 3rd time. this is where i stuck & everything turn to shit.no matter what i use, madwifi-ng-r2756+ar5007 or madwifi-nr-r3366+ar5007 even ndiswrapper, all i got is fail. below is one of error that i got from madwifi-ng-r2756+ar5007.
rj@blackTOP:~/madwifi-ng-r2756+ar5007$ make
Checking requirements… ok.
Checking kernel configuration… ok.
make -C /lib/modules/2.6.24-16-generic/build SUBDIRS=/home/rj/madwifi-ng-r2756+ar5007 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-16-generic’
CC [M] /home/rj/madwifi-ng-r2756+ar5007/ath/if_ath.o
CC [M] /home/rj/madwifi-ng-r2756+ar5007/ath/if_ath_pci.o
LD [M] /home/rj/madwifi-ng-r2756+ar5007/ath/ath_pci.o
CC [M] /home/rj/madwifi-ng-r2756+ar5007/ath_hal/ah_os.o
HOSTCC /home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:26:19: error: stdio.h: No such file or directory
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:27:19: error: errno.h: No such file or directory
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:28:20: error: getopt.h: No such file or directory
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:29:20: error: string.h: No such file or directory
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:30:20: error: stdlib.h: No such file or directory
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:32:23: error: sys/fcntl.h: No such file or directory
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:33:22: error: sys/stat.h: No such file or directory
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c: In function ‘uudecode_usage’:
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:37: warning: implicit declaration of function ‘printf’
/home/serge/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:37: warning: incompatible implicit declaration of built-in function ‘printf’
/home/rje/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c: At top level:
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:40: error: expected ‘)’ before ‘*’ token
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:70: error: expected ‘)’ before ‘*’ token
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c: In function ‘main’:
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:121: error: ‘FILE’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:121: error: (Each undeclared identifier is reported only once
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:121: error: for each function it appears in.)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:121: error: ‘src_stream’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:122: error: ‘dst_stream’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:122: error: ‘NULL’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:130: warning: implicit declaration of function ‘getopt’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:134: error: ‘optarg’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:138: warning: implicit declaration of function ‘exit’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:138: warning: incompatible implicit declaration of built-in function ‘exit’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:141: error: ‘optind’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:142: error: ‘stdin’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:144: warning: implicit declaration of function ‘fopen’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:146: warning: implicit declaration of function ‘fprintf’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:146: warning: incompatible implicit declaration of built-in function ‘fprintf’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:146: error: ‘stderr’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:147: warning: implicit declaration of function ‘strerror’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:147: error: ‘errno’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:147: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:148: warning: incompatible implicit declaration of built-in function ‘exit’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:152: warning: incompatible implicit declaration of built-in function ‘exit’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:156: warning: implicit declaration of function ‘get_line_from_file’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:156: warning: assignment makes pointer from integer without a cast
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:157: warning: implicit declaration of function ‘strncmp’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:164: warning: incompatible implicit declaration of built-in function ‘fprintf’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:165: warning: incompatible implicit declaration of built-in function ‘exit’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:168: warning: implicit declaration of function ‘strtoul’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:170: warning: implicit declaration of function ‘strchr’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:170: warning: incompatible implicit declaration of built-in function ‘strchr’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:172: warning: incompatible implicit declaration of built-in function ‘fprintf’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:173: warning: incompatible implicit declaration of built-in function ‘exit’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:178: warning: implicit declaration of function ‘strcmp’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:179: error: ‘stdout’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:182: error: ‘O_WRONLY’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:182: error: ‘O_CREAT’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:182: error: ‘O_TRUNC’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:186: error: ‘O_EXCL’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:188: warning: implicit declaration of function ‘open’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:189: error: ‘S_IRWXU’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:189: error: ‘S_IRWXG’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:189: error: ‘S_IRWXO’ undeclared (first use in this function)
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:191: warning: implicit declaration of function ‘fdopen’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:193: warning: incompatible implicit declaration of built-in function ‘fprintf’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:194: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:195: warning: incompatible implicit declaration of built-in function ‘exit’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:199: warning: implicit declaration of function ‘read_stduu’
/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode.c:201: warning: implicit declaration of function ‘fclose’
make[3]: *** [/home/rj/madwifi-ng-r2756+ar5007/ath_hal/uudecode] Error 1
make[2]: *** [/home/rj/madwifi-ng-r2756+ar5007/ath_hal] Error 2
make[1]: *** [_module_/home/rj/madwifi-ng-r2756+ar5007] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-16-generic’
make: *** [modules] Error 2
i follow all the steps given but still the terminal reply my command like above. i dont know whether i miss a steps or spelling error. it’s impossible to make a mistake cos after few times i found failure, i just copy & paste because tired & want to ensure that i follow the steps.
what i want to say here is, HELP me all ubuntu experienced user. i really want to use linux as my no 1 OS. maybe you all can help me by reply me with a full complete step because im very new to linux & this my 1st time to linux. to be frank, i dont know wat does the command mean. im very attract to ubuntu since i heard wat does ubuntu mean. so, im one of human being that want to learn ubuntu. help me…
p/s:sorry for being a loser in this forum. i really hope ubuntu community can help me. thank you.
did you install the following packages
sudo aptitude install build-essential
sudo apt-get install libc6-dev
and try it should work
I use ndiswrapper over amd64, in a fresh install working good, but before some restart, I have a problem.
I can see al the networks, when I use a iwlist I see all the networks, but I can’t connect to any network.
Is very difficult connect, imposible if I don’t reload the ndiswrapper module whith ndiswrapper -ma && sudo ndiswrapper -mi && modprobe ndiswrapper and in some occaciones not is posible.
Really really difficult make work.
Can some help me?
I use hardy over amd64
Same issue as T!. sudo ndiswrapper -i net5211.inf failed to execute.
I replace ndiswrapper with ndisgtk instead, and hey presto!
Wireless connection has appeared in Network Settings.
Thank you. Xie xie. Terima kasih. Arigatou gozaimasu.
cd madwifi-ng-r2756+ar5007
make
that make should be a “sudo make”
if u dont do sudo make u will get error 2
Everything worked perfectly…BUT!…the only problem i’m having now is that it wont connect to any of the networks…
Can anyone please help me…
Okay. It works perfectly.
I am posting this while connected to a wireless network.
The problem was I chose the wrong WEP encryption key when I entered the passphrase.
It would have been nice if Ubuntu automated those settings, but at least it works now. I can not thanks you enough.
—
Ubuntu 8.04 Hardy Heron
Compaq Presario F762AU
AMD Turion 64bit
Thank you. I can confirm:It worked for me as well! Used on a Compaq presario C700 laptop running Ubuntu Hardy Heron 64 bit. LED showing status for the integral wireless Atheros AR5007 is still off but the wireless is working very well.
Terminal command “sudo ndiswrapper -i net5211.inf” did not work for me, but I was able to install it directly
I have the madwifi driver installed and working on a compaq f700 with 32-bit system. However, i cannot connect to wireless networks. I have tried changing key setting and a number of other things but so far no success. i am about to give up. please help.
Many thanks… It works for me in a Compaq C735EM with Ubuntu Hardy Heron 64 Bits. Driver must be loaded with ndisgtk and ‘voilá’ wi-fi working with no problems. Like other users I noticed that blue light on the button and in the panel does not turns on, its a minor problem.
Thanks a lot.
Okay. I spoke too soon.
I could not connect to the web as soon as I rebooted my laptop and retyped the key for the WEP enabled wireless network.
I tried again and again for one hour, but it just won’t connect.
So right now, the network card has only succeeded once.
What’s going on?
I unscrewed the panel underneath the F762AU and here’s the exact model of my card:
Atheros AR5BXB63
I have the Atheros ar5007EG wireless network adapter and I can’t this to work. I’m having problems at the very beginning with the sudo apt-get install build-essential.
I get “Reading package lists… done
Building dependency tree
Reading state information… done
E: couldn’t find package build-essential”
Not sure whats going on as I am extremely new to Ubuntu(installed it last night)
you need to make sure you have enabled universe and multiverse in your repositories
To enable the universe and multiverse repositories using the Software Sources tool, you can execute the following steps:
1. Open System->Administration->Software Sources
2. Input your administrative password if you are prompted to do so. Once the program loads, check the boxes next to “Community-maintained Open Source software (universe)” and “Software restricted by copyright or legal issues (multiverse)”.
3. Next, close Software Sources. A dialog will prompt you to reload the package information. Click the “reload” button.
I did all that, and once I tried to reload it, I got a bunch of error messages, they all start with “W: Failed to fetch…”
Problem is it said for me to be able to continue, I needed to be connected to the internet, but I’m not connected on my laptop where I have Ubuntu installed, but it works fine when I reboot with Vista.
it works after setting up: modprobe ath_pci. but after each restart, ath0 disappears and i can’t connect anymore. i have to do it again and again.
you know the problem???
I am using a Compaq C735EM laptop with Ubuntu Hardy 64 bits and this method works fine the first time I used it. Wifi adapter is recognised by the system and works o.k. even find a lot more networks that a netgear USB adapter that I use with this laptop and transfer files fastest than the Netgear adpter but when I reboot the system adapter doesn’t work anymore, still recognised by system and still can find all networks but its impossible to connect to anyone. Also blue LED never works but button does it.
Any suggestions???
i tried the steps above for 64 bit hardy with an ar242x wireless card, but am still unable to connect to my wireless internet. Ndiswrapper shows that i have a network and are connected to it. but without an ethernet cord plugged in i cannot connect to the internet. Network manager does not even recognize the wireless network.
PROCEDURE FOR UBUNTU HARDY HERON 64 Bits USERS
Go to System/Administration/Hardware drivers and disable all referring to your network card
HAL and support for Atheros Card
Ensure you have your kernel headers and the build essential package. Use Synaptic or:
sudo aptitude update
sudo aptitude install linux-headers-$(uname -r) build-essential
Install ndisgtk. Use Synaptic or:
sudo apt-get install ndisgtk
Get 64 Bits XP drivers from blakemartin:
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
Blacklist the default driver
echo “blacklist ath_pci” | sudo tee -a /etc/modprobe.d/blacklist
Load Ndiswrapper and XP driver:
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
At this point your network card must work O.K. if not try to load XP driver with ndisgtk.
(blue led in some laptops will not work or still red but its a minor problem)
This information was taken from forums.
When you reboot your PC in most cases AR5007EG doesn’t work anymore (maybe find networks but can’t connect to them)
Victor Nieto has written a script to solve the problem but this script must be executed before X server starts, I tried this and works ok EVERY TIME YOU TURNS ON YOUR PC.
first of all here is the Script:
Use an editor and copy-paste this: (pay attention in the 1st. line in other posts looks like “#bin/bash”, correct it)
#! bin/bash
modprobe -r ndiswrapper
cp /etc/modprobe.d/blacklist .
sed ’s/#blacklist ath_pci/blacklist ath_pci/g’ /etc/modprobe.d/blacklist>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!!!
I am using this in a Compaq C735EM Laptop with Hardy Heron 64 Bits and works fine (execept blue led)
Thanks to all who contribute to make Linux grow up, and specially to Victor Nieto for the Script.
Thanks. This post helped tremendously. I even reinstalled Hardy and recreated the process (in the back of my mind thinking that the wi-fi working is just one stroke of good luck) and it still worked. God bless you!
Sos un genio!!! ya funciona mi WIFI!!
Muchas gracias!!
thanx a lot!!!}
Guillermo
Thank you JoeDriller. I am able to connect to unencrypted networks with little problem now.
But I just went through a harrowing three hours attempting to connect to a WEP enabled network.
Somehow, I have succeeded connecting this time. But this really isn’t a very satisfying solution.
Obviously, I can’t keep trying for three hours every time I wish to connect to a WEP enabled network.
Gracias por el manual hermano, habia probado de todo y ya estaba al borde de renunciar.
Tengo una Compaq presario F756LA con un AMD64 con Ubuntu Hardy H. y todo funciono perfecto !!!
🙂
I tried following your steps one by one, but at the step “make” it gives me an Error 2 message.
Any help is appreciated.
I just wanted to say thanks to admin for posting this! I have the toshiba satellite w/Atheros ar5007. Worked perfectly (i386) by following these steps.
If you’re getting an error 2, you need to following steps in posting #17 by admin. Make sure you get the prompt, and click “reload”.
Then run: sudo aptitude install build-essential
Then start over at step one. This is what worked for me.
Hi,
I have a Acer Aspire 4710Z with Atheros AR5007EG WLAN card…
I installed Ubuntu 8.04 2 days ago…
After following all the steps, Ubuntu detected my netowrk (linksys) with very good connectivity….but it just won’t connect to the internet…
wifi is not encrypted anyway…
any help will be greatly appreciated…..
thnx in advance.
install -d /usr/local/man/man8
install -m 0644 man/*.8 /usr/local/man/man8
install ../scripts/madwifi-unload /usr/local/bin/madwifi-unload
make[1]: Leaving directory `/home/david/madwifi-ng-r2756+ar5007/tools’
david@david-laptop:~/madwifi-ng-r2756+ar5007$ sudo modprobe ath_pci
WARNING: /etc/modprobe.d/blacklist line 40: ignoring bad line starting with ‘?blacklist’
WARNING: /etc/modprobe.d/blacklist line 41: ignoring bad line starting with ‘sudo’
WARNING: /etc/modprobe.d/blacklist line 42: ignoring bad line starting with ‘sudo’
WARNING: /etc/modprobe.d/blacklist line 43: ignoring bad line starting with ‘?blacklist’
WARNING: /etc/modprobe.d/blacklist line 44: ignoring bad line starting with ‘?blacklist’
WARNING: /etc/modprobe.d/blacklist line 45: ignoring bad line starting with ‘?blacklist’
david@david-laptop:~/madwifi-ng-r2756+ar5007$
donno whats happening