Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Atheros drivers. ar5006eg.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Thu May 08, 2008 12:07 pm    Post subject: Atheros drivers. ar5006eg. Reply with quote

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


I've installed madwifi-ng

Code:

C1REX c1rex # modprobe ath_pci
C1REX c1rex # iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

C1REX c1rex #

_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/


Last edited by C1REX on Sat May 10, 2008 2:01 am; edited 1 time in total
Back to top
View user's profile Send private message
Jeffrey0
n00b
n00b


Joined: 31 Dec 2004
Posts: 68

PostPosted: Thu May 08, 2008 6:51 pm    Post subject: Reply with quote

It might actually be a 5007EG with incorrect identification; I know mine is.

If so, you have 2 options:
  • Applying an experimental madwifi patch which only works on x86. Most of the reports in the bug report seem to be positive.
  • ndiswrapper. I've found that the WinXP 5.3.0.56 drivers from atheros.cz work well.
Back to top
View user's profile Send private message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Thu May 08, 2008 10:45 pm    Post subject: Reply with quote

I've tried the same on Ubuntu:

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

iwconfig shows the same.
_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/
Back to top
View user's profile Send private message
bradbeglin
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2006
Posts: 91
Location: Atlanta, Georgia, USA

PostPosted: Fri May 09, 2008 4:20 am    Post subject: Reply with quote

There is a third option: Upgrade to kernel 2.6.25 and use the built in ath5k driver.
Back to top
View user's profile Send private message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Fri May 09, 2008 9:41 am    Post subject: Reply with quote

I have newest ~x86 gentoo-source 2.6.15-r2 and cannot find this driver.

EDIT: Finded. http://wireless.kernel.org/en/users/Drivers/ath5k
_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/
Back to top
View user's profile Send private message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Sat May 10, 2008 1:53 am    Post subject: Reply with quote

gtbrad wrote:
There is a third option: Upgrade to kernel 2.6.25 and use the built in ath5k driver.


OK. Installed in kernel and what then?
Any easy, noob friendly howto for gentoo user?

iwconfig shows the same.
_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/
Back to top
View user's profile Send private message
Jeffrey0
n00b
n00b


Joined: 31 Dec 2004
Posts: 68

PostPosted: Sat May 10, 2008 2:22 am    Post subject: Reply with quote

Can you try running "lspci -v -n" and looking for the "Subsystem" value under 03:00.0 (your WLAN card entry)? You can look the value up on this database; the cards that start with "1468:04" are 5007EG, the others are 5006EG.

Now, this matters because ath5k doesn't support 5007EG yet (tried it a few hours ago). 5006EG should work fine though. If it is 5007EG then ath5k isn't an option and you should either try patching madwifi or using ndiswrapper.
Back to top
View user's profile Send private message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Sun May 11, 2008 11:12 am    Post subject: Reply with quote

Code:
03:00.0 0200: 168c:001c (rev 01)
        Subsystem: 103c:137b
        Flags: fast devsel, IRQ 16
        Memory at f2000000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [40] Power Management version 2
        Capabilities: [50] Message Signalled Interrupts: Mask- 64bit- Queue=0/0 Enable-
        Capabilities: [60] Express Legacy Endpoint, MSI 00
        Capabilities: [90] MSI-X: Enable- Mask- TabSize=1
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [140] Virtual Channel <?>
        Kernel modules: ath5k, ath_pci

So kernel drivers are not in use. How to fix it?
_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/
Back to top
View user's profile Send private message
C1REX
l33t
l33t


Joined: 02 Jan 2004
Posts: 774
Location: Poland/UK

PostPosted: Tue May 13, 2008 1:28 pm    Post subject: Reply with quote

dmesg fragment.

Code:
ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
i2c-adapter i2c-0: nForce2 SMBus adapter at 0x3040
i2c-adapter i2c-1: nForce2 SMBus adapter at 0x3000
wlan: 0.9.4
ath_pci: 0.9.4
ACPI: PCI Interrupt Link [LK1E] enabled at IRQ 16
ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [LK1E] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:03:00.0 to 64
wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status 13)
ACPI: PCI interrupt for device 0000:03:00.0 disabled
PCI: Enabling device 0000:03:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:03:00.0[A] -> Link [LK1E] -> GSI 16 (level, low) -> IRQ 16
PCI: Setting latency timer of device 0000:03:00.0 to 64
ath5k_pci 0000:03:00.0: registered as 'phy0'
ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 21
ACPI: PCI Interrupt 0000:00:07.0[B] -> Link [LAZA] -> GSI 21 (level, low) -> IRQ 21
PCI: Setting latency timer of device 0000:00:07.0 to 64
ath5k phy0: failed to wakeup the MAC Chip
ACPI: PCI interrupt for device 0000:03:00.0 disabled
ath5k_pci: probe of 0000:03:00.0 failed with error -5


Please help. Even guessing may be helpful.
_________________
CLICK HERE to help move gentoo up on distrowatch.

If you like Gentoo you can thank devs here - https://www.gentoo.org/donate/
Back to top
View user's profile Send private message
Jeffrey0
n00b
n00b


Joined: 31 Dec 2004
Posts: 68

PostPosted: Tue May 13, 2008 5:13 pm    Post subject: Reply with quote

Unpatched madwifi-ng (ath_pci/hal) doesn't support the 5007EG which is what Gentoo's provided PCI database misdetects as "5006EG". Like I said above, use ndiswrapper+atheros.cz WinXP driver or manually apply the x86-only madwifi patch.
Back to top
View user's profile Send private message
Adwin
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2005
Posts: 128
Location: Poland

PostPosted: Wed May 14, 2008 12:00 am    Post subject: Reply with quote

I would recommend you update your pci ids

$ update-pciids

ath5k now works. Tried today with 2.6.26-rc2 on amd64.
Didn't have the time to check if the code was backwards-compatible with 2.6.25 though.
Back to top
View user's profile Send private message
AllenJB
Veteran
Veteran


Joined: 02 Sep 2005
Posts: 1285

PostPosted: Wed May 14, 2008 7:27 am    Post subject: Reply with quote

There is a patched ebuild available - see the Atheros AR5006EG wiki article
Back to top
View user's profile Send private message
beso_1717
Apprentice
Apprentice


Joined: 19 Jul 2007
Posts: 263

PostPosted: Thu Jun 19, 2008 7:36 pm    Post subject: Reply with quote

AllenJB wrote:
There is a patched ebuild available - see the Atheros AR5006EG wiki article


i still cannot have the 1a3b:1026 chip work either with madwifi or ath5k on amd64. i haven't yet tried ndiswrapper since i really don't like it. it's quite a bad a** and the last time i've tried it has broken my radeon compatibility.
any hints?!
Back to top
View user's profile Send private message
soroh6
Apprentice
Apprentice


Joined: 07 Nov 2002
Posts: 232

PostPosted: Fri Jun 27, 2008 3:40 am    Post subject: Reply with quote

C1REX wrote:
168c:001c (rev 01)

This is the telltale sign that you actually have a 5007EG chipset, lspci misidentifies them. lspci -nn to check yours

soroh6 wrote:
04:00.0 Ethernet controller [0200]: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter [168c:001c] (rev 01)


I just got this working today, because of the new HAL drivers that were released.

If you checkout an svn snapshot of madwifi, and extract the new HAL into that, it should work fine.

http://snapshots.madwifi.org/special/madwifi-hal-0.10.5.6-r3698-20080604.tar.gz

You'll need to reboot after installing the new drivers (seriously). I know they are just kernel modules, but even if you unload them, remove the directory, whatever, I would get a HAL status error until I rebooted, then the device was online already.

They should be in the trunk of madwifi soon (svn release of madwifi), so if you use svn ebuilds for madwifi, hopefully soon you can just emerge and get the new HAL already.

madwifi 0.93 and 0.94 will not work with 5007EG. Even current svn checkout (r3746) will not work without the new HAL.
_________________
:: soroh -*~
Back to top
View user's profile Send private message
HyperQuantum
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2005
Posts: 88

PostPosted: Fri Jun 27, 2008 1:04 pm    Post subject: Reply with quote

soroh6 wrote:
C1REX wrote:
168c:001c (rev 01)

This is the telltale sign that you actually have a 5007EG chipset, lspci misidentifies them. lspci -nn to check yours

soroh6 wrote:
04:00.0 Ethernet controller [0200]: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter [168c:001c] (rev 01)


I had the same output from "lspci", and had the device working for some time thanks to the special Madwifi snapshots.
But I just tried someone's suggestion from this thread, and did a "update-pciids". Now I get the following:
Code:
05:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter [168c:001c] (rev 01)

This is weird. The lspci output has changed, but is still wrong?
Back to top
View user's profile Send private message
soroh6
Apprentice
Apprentice


Joined: 07 Nov 2002
Posts: 232

PostPosted: Sat Jun 28, 2008 7:10 am    Post subject: Reply with quote

Yeah, still wrong, basically. It is (the ar5007) also known as 2425 or 242x based chipsets, so I guess it is slightly more accurate now. Thanks for the tip on update-pciids.

See http://madwifi.org/ticket/1192 for more information.

lspci -nn wrote:
04:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter [168c:001c] (rev 01)

_________________
:: soroh -*~
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum