LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 01-16-2014, 04:09 AM   #1
dolphs
Member
 
Registered: Nov 2003
Posts: 43

Rep: Reputation: 15
Qualcomm Atheros AR8171 Wake on LAN issues


I owe a ASRock H81M-ITX mainboard which has an Qualcomm Atheros AR8171 Ethernet on board:


02:00.0 Ethernet controller: Atheros Communications Inc. Device 10a1 (rev 10)
Subsystem: ASRock Incorporation Device 10a1
Kernel driver in use: alx


I just compiled kernel 3.12.8 and from " ethtool eth0 " it seem wol functionality exists, which is also set ENABLED in BIOS ( PCIE Device Power ON ). However executing " ethtool -s eth0 wol g " gives the following error:

" Cannot get current wake-on-lan settings: Operation not supported
not setting wol "


Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Current message level: 0x000060e4 (24804)
link ifup rx_err tx_err hw wol


From this I seem to be missing:

<snip snip>
Port: MII
<snip snip>
Supports Wake-on: pumbg
Wake-on: g


Also inteteresting why it loads twisted pair port instead of "mii" module. Would be great if one can give me a hand with this so it supports "wake on lan" properly
 
Old 01-20-2014, 11:48 AM   #2
dolphs
Member
 
Registered: Nov 2003
Posts: 43

Original Poster
Rep: Reputation: 15
Hi, a quick test reveals the hardware is capable of WOL, no matter of what OS is used.

This has been tested once " PCI Device Power On " got enabled in BIOS. Once verified the power button got briefly pressed, so the system went into S5-mode.
At this stage the set was ready for WOL and thus after executing " etherwake MAC:ADDRESS:MAC:ADDRESS:MAC:ADDRESS " from another machine the server woke up!

Therefore seems hardware is working fine, just the alx-kernel driver need to be polished as shown above so it will support "wol-g¨ in /etc/network/interfaces ( debian/wheezy )
 
Old 03-23-2014, 07:30 AM   #3
cybertaf
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
Hi dolphs,

I have exactly the same problem with Qualcomm Atheros AR8171 Ethernet.
Did you solve it ?

Cheers.
 
Old 04-02-2014, 08:39 PM   #4
buzzone
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
Hey,

same here!

Any progress on this?

I found out WoL was removed from the alx driver. I'm not allowed to post the URL here. But if you look on the github kernel mirror it's commit bc2bebe8de8ed4ba6482c9cc370b0dd72ffe8cd2.

It is stated that "the system will immediately resume after suspending". This wouldn't be any problem for me.
I'm on Sabayon/Gentoo and will try to build a custom kernel reverting that commit.

Cheers...

---------- Post added 04-02-14 at 07:39 PM ----------

https://github.com/torvalds/linux/co...0b0dd72ffe8cd2
 
Old 04-07-2014, 09:15 AM   #5
buzzone
LQ Newbie
 
Registered: Apr 2014
Posts: 2

Rep: Reputation: Disabled
The corresponding ticket on the Linux bug tracker to this issue:
https://bugzilla.kernel.org/show_bug.cgi?id=61651
 
Old 04-20-2014, 01:56 PM   #6
cybertaf
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
Hi,

I solved the problem by installing 3.10.37 kernel (downloaded here).
WOL with alx drivers works fine for me now.

Cheers
 
Old 05-16-2014, 04:53 PM   #7
mrksmts
LQ Newbie
 
Registered: May 2014
Posts: 1

Rep: Reputation: Disabled
@cybertaf, I am pretty much a noob here just done a fresh Ubuntu Server 14.04 install.

And still no WOL...

Last edited by mrksmts; 05-16-2014 at 05:05 PM.
 
Old 05-16-2014, 05:32 PM   #8
cybertaf
LQ Newbie
 
Registered: Mar 2014
Posts: 3

Rep: Reputation: Disabled
Il faut installer le kernel 3.10.37

64bits:
Code:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.37-saucy/linux-headers-3.10.37-031037-generic_3.10.37-031037.201404141035_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.37-saucy/linux-headers-3.10.37-031037_3.10.37-031037.201404141035_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.37-saucy/linux-image-3.10.37-031037-generic_3.10.37-031037.201404141035_amd64.deb
dpkg -i *.deb
update-grub
reboot

32bits
Code:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.37-saucy/linux-headers-3.10.37-031037-generic_3.10.37-031037.201404141035_i386.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.37-saucy/linux-headers-3.10.37-031037_3.10.37-031037.201404141035_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.37-saucy/linux-image-3.10.37-031037-generic_3.10.37-031037.201404141035_i386.deb
dpkg -i *.deb
update-grub
reboot
et sélectionner le kernel 3.10.37 dans le grub au démarrage.
 
Old 08-23-2014, 08:13 PM   #9
rico9999
LQ Newbie
 
Registered: Aug 2014
Posts: 1

Rep: Reputation: Disabled
Build old module version under 3.15.10

As an alternative to building a whole kernel, I wanted to share that I was able to successfully build the
3.10.53 driver under 3.15.10. I'm using FC20.

Pre-requisites:

$ rpm -qa | grep 3.15.10
kernel-headers-3.15.10-200.fc20.x86_64
kernel-devel-3.15.10-200.fc20.x86_64
kernel-3.15.10-200.fc20.x86_64
kernel-modules-extra-3.15.10-200.fc20.x86_64

Instructions:

1. Download linux-3.10.53.tar.xz from kernel org.

2. Extract alx driver
$ tar xf linux-3.10.53.tar.xz linux-3.10.53/drivers/net/ethernet/atheros/alx

3. Build
$ cd linux-3.10.53/drivers/net/ethernet/atheros/alx
$ make -C /lib/modules/`uname -r`/build M=`pwd` modules

4. Install
# cp /lib/modules/3.15.10-200.fc20.x86_64/kernel/drivers/net/ethernet/atheros/alx/alx.ko /lib/modules/3.15.10-200.fc20.x86_64/kernel/drivers/net/ethernet/atheros/alx/alx.ko.good
# cp alx.ko /lib/modules/3.15.10-200.fc20.x86_64/kernel/drivers/net/ethernet/atheros/alx/alx.ko

5. Reboot

6. Run ethtool (should work now)
# ethtool -s p4p1 wol g

7. Powerdown.
# shutdown

WOL should be working now.

I sure wish we didn't have to choose between laptop users not being able to suspend vs. home-theater users not being able to use WOL!
 
Old 02-14-2015, 05:18 AM   #10
meigelneit
LQ Newbie
 
Registered: Feb 2015
Posts: 2

Rep: Reputation: Disabled
Unhappy Build old module version under 3.15.10

Hi,
@rico9999
I followed your instructions above to build alx, but when i have executed make, i got "make: *** No targets. Stop."
Can you give me a hint, please? It's the first time i try to build a driver.
The used Kernel: 3.16.0-4-amd64
Thanks
MN
 
Old 02-14-2015, 05:19 AM   #11
meigelneit
LQ Newbie
 
Registered: Feb 2015
Posts: 2

Rep: Reputation: Disabled
...

Last edited by meigelneit; 02-14-2015 at 05:21 AM.
 
Old 02-26-2015, 10:56 AM   #12
tomrey
LQ Newbie
 
Registered: Feb 2015
Posts: 1

Rep: Reputation: Disabled
Hi,
I tried ist as well on WHEEZY but I get a make error:
/alx/main.c:1323:2: error: implicit declaration of function ‘SET_ETHTOOL_OPS’ [-Werror=implicit-function-declaration]

As a newbee to make I cannot find a solution.
pls. help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing alx driver for Qualcomm Atheros AR8161 Ethernet Card on RHEL6.5 alpo85 Linux - Networking 1 01-12-2014 04:38 PM
Anyone has luck with Qualcomm Atheros AR5BWB222? red_fire Linux - Wireless Networking 1 11-20-2012 03:32 PM
LXer: Qualcomm buys Atheros - good luck with that LXer Syndicated Linux News 0 01-06-2011 10:30 AM
Wake on Lan & Sleep on lan? ufmale Linux - Networking 1 06-25-2008 06:34 PM
wake on lan magic packet does not wake. albean Linux - Networking 1 06-30-2007 04:57 PM


All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration