Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old May 20th, 2008   #1
k33bz
Grande Half-n-Half Cinnamon Ubuntu
 
k33bz's Avatar
 
Join Date: May 2007
Location: San Antonio, TEXAS
Beans: 940
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to k33bz Send a message via MSN to k33bz Send a message via Yahoo to k33bz
Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

After alot of toying around trying to find how I can get my wireless working in my Acer Aspire Laptop I came across this post.

The originally post is in German.

I have place the contents below.



If you have Atheros AR5007 wireless network adapter follow this procedure to make it work in ubuntu 8.04

First make sure of your Network card. But do be careful, for some reason it might report back to being AR5006 or might come up as Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)


More than likely if you get either one of those reported back to you it is in fact AR5007.

Run this code in your terminal

Code:
lspci
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

Go to System->Administration->Software Sources
Make sure you have "Universe" & "Multiverse" checked.

Then open the terminal from Applications–>Accessories–>Terminal and copy the following command

Code:
sudo apt-get install build-essential

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

sudo make 

sudo make install

sudo modprobe ath_pci

sudo reboot
That’s it now your wireless should work without any problem.




PROCEDURE FOR UBUNTU HARDY HERON 64 bits USERS
(NEW INFO PROVIDED BY ANDUU FOR YOU 64BIT USERS. GO TO HIS THREAD:http://ubuntuforums.org/showthread.php?t=816780 AND THANK BRAVEERUDITE FOR POINTING THIS OUT)

64-bit users please let me know if the above solution works.

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 build the essential package. Use Synaptic or:


Code:
sudo aptitude update 

sudo aptitude install linux-headers-$ (uname-r) build-essential

Install ndisgtk.
Use Synaptic or:


Code:
sudo apt-get install ndisgtk
Get 64 bits XP drivers from blakemartin:

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


tar xvf ar5007eg-*.tar.gz tar xvf ar5007eg tar.gz-*.

tar xvf ndiswrapper-newest.tar.gz
Blacklist the default driver

Code:
echo “blacklist ath_pci” | sudo tee -a /etc/modprobe.d/blacklist
Load Ndiswrapper and XP driver:

Code:
sudo ndiswrapper -i net5211.inf Sudo ndiswrapper-i net5211.inf
Load up ndiswrapper every time Linux is loaded

Code:
sudo modprobe ndiswrapper Sudo modprobe ndiswrapper

echo “ndiswrapper” | sudo tee -a /etc/modules
Restart your system using the following command Restart your system using the following command

Code:
sudo reboot
At this point your network card must work OK 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 does not work anymore (maybe find networks but can not 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 TURNS YOU 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)

Code:
#! 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 blacklist3 /etc/init.d/networking restart
Save the file as subirwifi

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

Code:
sudo cp subirwifi /etc/init.d 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

Code:
sudo ln -s /etc/init.d/subirwifi S09subirwifi
if all was correct you should see a line like this when you do
Code:
ls -l
lrwxrwxrwx …………… S09subirwifi -> /ect/init.d/subirwifi

reboot your system and… Luck!!!


Thanks to all who contribute to make Linux grow up, and specially to Victor Nieto for the script.
__________________
Our only ignorance is our own intelligence
Linux Is not Windows | Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install|
Linux user number 479043 | Ubuntu User number is # 24065
http://www.creative-funds.com

Last edited by k33bz; June 8th, 2008 at 04:54 PM..
k33bz is offline   Reply With Quote
Old May 21st, 2008   #2
be4truth
Ubuntu Extra Shot
 
Join Date: Jan 2007
Location: /India/Auroville/home
Beans: 353
Hardy Heron (Ubuntu Development)
Send a message via MSN to be4truth Send a message via Yahoo to be4truth
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

Hi k33bz,
the org. German link is local /media/disk. Does that mean you have a German USB stick? Can you post the Internet link. I have trouble with this wireless card and will try your suggestion as soon as I am back on that laptop.
__________________
Intel C2D 2.4 GHZ on mobo Intel 965RY, Intrepid 32 bit
Don't forget to thank; more points when you want to go to heaven or less karma if you decide for reincarnation. Mark threads solved when they are ...
be4truth is offline   Reply With Quote
Old May 22nd, 2008   #3
k33bz
Grande Half-n-Half Cinnamon Ubuntu
 
k33bz's Avatar
 
Join Date: May 2007
Location: San Antonio, TEXAS
Beans: 940
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to k33bz Send a message via MSN to k33bz Send a message via Yahoo to k33bz
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

Quote:
Originally Posted by be4truth View Post
Hi k33bz,
the org. German link is local /media/disk. Does that mean you have a German USB stick? Can you post the Internet link. I have trouble with this wireless card and will try your suggestion as soon as I am back on that laptop.
No, it probable did that because I had saved the document for easy viewing while off line. I will try to find the real link again.


cant seem to find that link now, so I will just remove the link I have here.
__________________
Our only ignorance is our own intelligence
Linux Is not Windows | Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install|
Linux user number 479043 | Ubuntu User number is # 24065
http://www.creative-funds.com

Last edited by k33bz; May 22nd, 2008 at 05:55 PM..
k33bz is offline   Reply With Quote
Old May 22nd, 2008   #4
Anduu
Grande Half-n-Half Cinnamon Ubuntu
 
Anduu's Avatar
 
Join Date: Apr 2006
Location: Alberta,Canada
Beans: 996
Ubuntu Development Release
Send a message via ICQ to Anduu
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

Regarding the ndiswrapper 64 bit method:

I am in a bit of a pickle....

Everything goes well up until using the script on reboot.As far as I can tell I did everything correctly regarding copying and symlinking it however it doesn't seem to have any effect.I can see wireless networks but cannot connect.

Once rebooted if I run the script manually ie sudo sh /etc/init.d/subirwifi I can usually get connected.Sometimes I have to disable/re-enable wireless through the network manager to be able to connect.

During my testing on the odd occasion I have been able to get connected without doing anything!

Something kinda flakey is going on here...any ideas.
__________________
What color do Smurfs turn when you choke em?
____________________________
Anduu is offline   Reply With Quote
Old May 22nd, 2008   #5
k33bz
Grande Half-n-Half Cinnamon Ubuntu
 
k33bz's Avatar
 
Join Date: May 2007
Location: San Antonio, TEXAS
Beans: 940
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to k33bz Send a message via MSN to k33bz Send a message via Yahoo to k33bz
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

Quote:
Originally Posted by Anduu View Post
Regarding the ndiswrapper 64 bit method:

I am in a bit of a pickle....

Everything goes well up until using the script on reboot.As far as I can tell I did everything correctly regarding copying and symlinking it however it doesn't seem to have any effect.I can see wireless networks but cannot connect.

Once rebooted if I run the script manually ie sudo sh /etc/init.d/subirwifi I can usually get connected.Sometimes I have to disable/re-enable wireless through the network manager to be able to connect.

During my testing on the odd occasion I have been able to get connected without doing anything!

Something kinda flakey is going on here...any ideas.
To tell you the truth, I am not sure, hope someone else comes by and lets you know. I dont run a 64 bit machine. I just found this post, and it worked perfectly for me on my machine. But I dont have the hardware to test on a 64 bit.
__________________
Our only ignorance is our own intelligence
Linux Is not Windows | Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install|
Linux user number 479043 | Ubuntu User number is # 24065
http://www.creative-funds.com
k33bz is offline   Reply With Quote
Old May 23rd, 2008   #6
Anduu
Grande Half-n-Half Cinnamon Ubuntu
 
Anduu's Avatar
 
Join Date: Apr 2006
Location: Alberta,Canada
Beans: 996
Ubuntu Development Release
Send a message via ICQ to Anduu
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

Well I think I have it sorted out now....I added
Code:
/etc/init.d/networking restart
to the end of the script and after rebooting a few times it has been connecting consistently so far.
__________________
What color do Smurfs turn when you choke em?
____________________________
Anduu is offline   Reply With Quote
Old May 23rd, 2008   #7
k33bz
Grande Half-n-Half Cinnamon Ubuntu
 
k33bz's Avatar
 
Join Date: May 2007
Location: San Antonio, TEXAS
Beans: 940
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to k33bz Send a message via MSN to k33bz Send a message via Yahoo to k33bz
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

Sounds good, for others I will add that at the end of the script I have up there.




SCRIPT FIXED
__________________
Our only ignorance is our own intelligence
Linux Is not Windows | Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install|
Linux user number 479043 | Ubuntu User number is # 24065
http://www.creative-funds.com

Last edited by k33bz; May 23rd, 2008 at 05:31 AM.. Reason: Fixing the script, thanks for the help Anduu
k33bz is offline   Reply With Quote
Old May 26th, 2008   #8
Jaded Misanthrope
A Carafe of Ubuntu
 
Join Date: May 2008
Beans: 140
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

I got this method working once, but after restart I could not connect to wireless anymore. I haven't tried going through the steps again, but I am pretty sure that would allow me to connect again; is there a way around having to go through the steps each reboot?

Just a note: I'm running i386 / 32 bit or whatever and followed the first set on instructions.

EDIT: Okay, running the instructions starting from cd madwifi-ng-r2756+ar5007 works, but is there a way to not have to go through the instructions from there each time I reboot when the wireless works?

Last edited by Jaded Misanthrope; May 26th, 2008 at 07:18 PM..
Jaded Misanthrope is offline   Reply With Quote
Old May 26th, 2008   #9
k33bz
Grande Half-n-Half Cinnamon Ubuntu
 
k33bz's Avatar
 
Join Date: May 2007
Location: San Antonio, TEXAS
Beans: 940
Ubuntu 9.04 Jaunty Jackalope
Send a message via AIM to k33bz Send a message via MSN to k33bz Send a message via Yahoo to k33bz
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

Quote:
Originally Posted by Jaded Misanthrope View Post
I got this method working once, but after restart I could not connect to wireless anymore. I haven't tried going through the steps again, but I am pretty sure that would allow me to connect again; is there a way around having to go through the steps each reboot?

Just a note: I'm running i386 / 32 bit or whatever and followed the first set on instructions.

EDIT: Okay, running the instructions starting from cd madwifi-ng-r2756+ar5007 works, but is there a way to not have to go through the instructions from there each time I reboot when the wireless works?

MMMM, I am not sure about that, I only did these instructions once, never had a problem after rebooting. Only thing I can suggest is to go over the steps again, and make sure you did everything.

sorry.
__________________
Our only ignorance is our own intelligence
Linux Is not Windows | Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install|
Linux user number 479043 | Ubuntu User number is # 24065
http://www.creative-funds.com
k33bz is offline   Reply With Quote
Old May 27th, 2008   #10
Jaded Misanthrope
A Carafe of Ubuntu
 
Join Date: May 2008
Beans: 140
Re: Atheros 5007 Wifi Chipset Hardy (8.04LTS) Install

Yeah, I just rebooted after going to bed last night and I could connect to my router straight away; not sure what happened--hopefully it'll work like that all the time now.
Jaded Misanthrope is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:00 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry