openSUSE Forums > New User How To/FAQ (read only) > Unreviewed How To and FAQ » 11.1 and Atheros AR5007EG Wireless Howto

Go Back   openSUSE Forums > New User How To/FAQ (read only) > Unreviewed How To and FAQ
Forums FAQ Members List Search Today's Posts Mark Forums Read


Unreviewed How To and FAQ POST HERE: Tips and solutions for SUSE Linux from the community. (Please do not post questions)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-Dec-2008, 16:40
snakedriver's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: NE Arkansas
Posts: 986
snakedriver hasn't been rated much yet
Default 11.1 and Atheros AR5007EG Wireless Howto

On my HP 9700z laptop, the Atheros AR5007EG Wireless worked out of the box with openSUSE 11.1, but the rate was only 1MHZ and if I did "iwconfig wlan0 rate 54M", the device became sporatic. Let's fix it.

Note: if your's is working out of the box the way you want, there is no need to try this procedure.

1st, go here: snapshots.madwifi.org: madwifi-hal-0.10.5.6 and get madwifi-hal-0.10.5.6-r3879-20081204.tar.gz (which is the latest at this writing). Move it to it's own folder & untar it (all I did was click on the tarball and copy over the extracted folder). then copy the untarred folder to /usr/src/packages/BUILD. Take the time to read all the text files in that folder like install, readme, etc -- lot's of good info about the driver (and on the madwifi site too; it's a very powerful driver for other than just getting online = various modes).

2nd using Yast, make sure you have kernel-source, kernel-syms, gcc and make installed. And, kernel-source & kernel-syms must match your running kernel (uname -a).
If they don't match, do a YOU online update.

Now let's build the kernel module, but 1st we need to prepare the kernel:
In a terminal as root:
Issue the following commands and give the computer time to finish the operation, then issue the next one (it takes a while):
Code:
cd /usr/src/linux

make mrproper

make cloneconfig

make modules_prepare
Now we are ready to do some serious compiling; let's build the ath_pci module:
Still in the terminal as root:
Again, issue the following commands and give the computer time to finish the operation, then issue the next one:
Code:
rmmod ath5k  <-- unloads the SUSE kernel module

cd /usr/src/packages/BUILD/madwifi-hal-0.10.5.6-r3879-20081204

make

make install

modprobe  ath_pci  <-- loads the ath_pci kernel module
Almost there:
Now go to Yast > Network Devices & check the setup for your card; every wireless extension has to be accurate, DNS, gateway, etc has to be entered and they are all on separate tabs, on separate pages.
Also, there is a driver context menu on one of those tabs for the driver; make sure that is set for the ath_pci module or it will simply reload the ath5k module. Also make it effective at boot and don't forget to set the MTU. What I'm trying to say is look at all the tabs and context menus and make sure that the needed config info is present. And, don't forget to turn on the firewall. Check them again.
Save out of all that.

Finally, in a terminal as root, do "iwconfig"; hopefully you get 97/100 and the rate = 54M as I did

Have fun...See compiling is not that tough once you know how

If you have any questions, PM me.
__________________
nForce5, AMD 5600+; HP dv9700z, AMD "Puma"; both openSUSE 11.1 x86-64
Reply With Quote
  #2 (permalink)  
Old 23-Dec-2008, 17:30
Puzzled Penguin
 
Join Date: Dec 2008
Location: Bovensmilde, Netherlands
Posts: 1
emn8w8 hasn't been rated much yet
Smile Re: 11.1 and Atheros AR5007EG Wireless Howto

Hi, Jim,

Like you I have an Atheros 5007EG in my Acer laptop; the pesky thing has never worked out of the box.
And even now with 11.1 it does install but works with the limitations you mentioned.
So I am all too familiar with the procedure you have described here but I would like to mention some additions to it.
First of all: this procedure has to be repeated after every kernel update (how small it may be).
A reboot is necessary after completing this procedure (this is regretted deeply by the developers of this driver...)
The ath5k driver will be reloaded after a reboot, thus resulting in a conflict with the newly installed ath_pci (HAL) driver;
the solution to this is blacklisting the ath5k driver. I did this by adding the line "blacklist ath5k" in both
/etc/modules.conf.local and /etc/modprobe.d/blacklist
Last: the settings for the NIC applied through YaST will be happily ignored when using KNetworkManager;
in fact after I had replaced the ath5k driver with the HAL driver the NIC was up and running with the settings
I had previous assigned to it in KNetworkManager; there was no need to use YaST.

Thanks for the link to this driver; my biggest problem with this NIC has always been to find the latest version...

Best regards, Erik
Reply With Quote
  #3 (permalink)  
Old 03-Jan-2009, 16:38
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 5
Ade22 hasn't been rated much yet
Default Re: 11.1 and Atheros AR5007EG Wireless Howto

To: Snakedriver
Thanks for the madwifi compilation. Instruction was straight forward...few errors,but got there in the end.

Thanks.Happy New Year.
Reply With Quote
  #4 (permalink)  
Old 04-Jan-2009, 04:12
Dexter1979's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: +52° 9' 13.68", -8° 37' 57.07"
Posts: 506
Dexter1979 's reputation will be famous soon enoughDexter1979 's reputation will be famous soon enoughDexter1979 's reputation will be famous soon enough
Default Re: 11.1 and Atheros AR5007EG Wireless Howto

This How-To works for the Netgear Wg311t as well. It has Atheros AR5212 chip. Ath5k works out of the box but I found it sluggish as well. Madwifi's does the business
__________________
Lord Flasheart: Always treat your plane like you treat your woman.
Lieutenant George: Take her home at the weekend to meet your mother?
Lord Flasheart: No, get inside her five times a day and take her to heaven and back!
Reply With Quote
  #5 (permalink)  
Old 04-Jan-2009, 07:26
snakedriver's Avatar
Global Moderator
 
Join Date: Mar 2008
Location: NE Arkansas
Posts: 986
snakedriver hasn't been rated much yet
Default Re: 11.1 and Atheros AR5007EG Wireless Howto

Quote:
Originally Posted by Ade22 View Post
To: Snakedriver
.few errors,but got there in the end.
Happy New Year.
Please list the errors and I will correct the guide ASAP.

Jim
__________________
nForce5, AMD 5600+; HP dv9700z, AMD "Puma"; both openSUSE 11.1 x86-64
Reply With Quote
  #6 (permalink)  
Old 04-Jan-2009, 08:19
Dexter1979's Avatar
Parent Penguin
 
Join Date: Jun 2008
Location: +52° 9' 13.68", -8° 37' 57.07"
Posts: 506
Dexter1979 's reputation will be famous soon enoughDexter1979 's reputation will be famous soon enoughDexter1979 's reputation will be famous soon enough
Default Re: 11.1 and Atheros AR5007EG Wireless Howto

I found no errors. Only thing that was missing is mentioned in emn8w8's post. After you are done compiling and installing Madwifi you need to add Ath5k to the blacklist.

I did this by opening it in kwrite as root. I opened a terminal and typed the following after becoming root:

Code:
kwrite /etc/modprobe.d/blacklist
Scroll down to the bottom and add
Code:
blacklist ath5k
Press save and exit kwrite.

After a reboot I put in my settings under Yast - Network Settings - Network Devices. One thing I noticed is that the 'old' card using ath5k was still listed as a device. I deleted that. Everything seems to work just fine. My internet is a lot quicker!

Thanks for the help, Snakedriver!
__________________
Lord Flasheart: Always treat your plane like you treat your woman.
Lieutenant George: Take her home at the weekend to meet your mother?
Lord Flasheart: No, get inside her five times a day and take her to heaven and back!
Reply With Quote
  #7 (permalink)  
Old 02-Mar-2009, 06:11
Explorer Penguin
 
Join Date: Jun 2008
Posts: 135
jengelh hasn't been rated much yet
Default Re: 11.1 and Atheros AR5007EG Wireless Howto

*facepalm* for seeing that people still wrongly suggest to run make cloneconfig.
Reply With Quote
  #8 (permalink)  
Old 24-Mar-2009, 18:33
Puzzled Penguin
 
Join Date: Dec 2008
Posts: 7
blandoon hasn't been rated much yet
Thumbs up Re: 11.1 and Atheros AR5007EG Wireless Howto

Thanks, this worked great for me. It seems to have eliminated my performance problems with the ath5k kernel module on 11.1. I had been putting off messing with madwifi for a long time because I assumed it would be a lot harder than it was... but the whole thing went exactly as advertised.

I ran "make oldconfig" in place of "make cloneconfig" and it did the trick.
__________________
[I]"The good news is that (in the future) we will have a good operating system and programming language. The bad news is that they will be Unix and C++."[/I]
- Richard Gabriel, [I]The Rise Of Worse Is Better[/I]
Reply With Quote
  #9 (permalink)  
Old 25-Mar-2009, 15:48
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: 11.1 and Atheros AR5007EG Wireless Howto

The easier way, if ath5k from openSUSE-kernel 2.6.27 really gives problems (in most cases it does not) is

a) to try compat-wireless-kmp packages with newer ath5k from OBS:

Webpin - Results for compat-wireless

b) Instead of compiling yourself, use "madwifi-free" packages from driver:wireless Repository.

Webpin - Results for madwifi-free

If you really want/need to build the driver from source, use the src.rpms.

As stated before by jengelh, make prepare/config/cloneconfig/whatever is _not_ needed and will mess up your build system at least for other modules you try to build. It is also advisable to install "kernel-syms" matching your kernel version together with kernel-source.

If you really think you must compile from a tarball and not using RPM-packages or rebuilding from src.rpms (for what ever reason, it does not make any sense at all), don't use madwifi-hal-0.10.5.6 as on some systems there were serious issues, use

snapshots.madwifi.org: madwifi-hal-testing

or

snapshots.madwifi.org: madwifi-free

But again, as there are ready made packages available, it is completely unnecesssary.
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #10 (permalink)  
Old 11-Apr-2009, 23:09
Puzzled Penguin
 
Join Date: Apr 2009
Posts: 1
eupeso4 hasn't been rated much yet
Talking Re: 11.1 and Atheros AR5007EG Wireless Howto

Thanx for the help Sneake.
Everything working fine now without any errors.
Thnx
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks

Tags
atheros ar5007eg


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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2