Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#82 Wake on LAN fails

Chipset-specific
open
nobody
General (32)
5
2012-07-20
2012-07-20
alfonso
No

I have a hundred of Fujitsu P300 with Debian Squeeze, lspci shows:

02:01.0 Ethernet controller [0200]: ADMtek NC100 Network Everywhere Fast Ethernet 10/100 [1317:0985] (rev 11)
Subsystem: Fujitsu Technology Solutions Scenic N300 ADMtek AN983 10/100 Mbps PCI Adapter [1734:100c]
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B+ DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 64 (16000ns min, 32000ns max), Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 23
Region 0: I/O ports at 3000 [size=256]
Region 1: Memory at d0100000 (32-bit, non-prefetchable) [size=1K]
Expansion ROM at 20000000 [disabled] [size=128K]
Capabilities: [c0] Power Management version 2
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=100mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
Kernel driver in use: tulip

Scenario 1)

With kernel

ii linux-image-2.6.32-5-686 2.6.32-45

the driver tulip hasn't support for ethtool . Sample:

root@A52-PRO:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:05:44:52:08
inet addr:172.19.231.113 Bcast:172.19.231.255 Mask:255.255.255.0
inet6 addr: fe80::230:5ff:fe44:5208/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:71475 errors:0 dropped:0 overruns:0 frame:0
TX packets:41620 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:93656966 (89.3 MiB) TX bytes:4580530 (4.3 MiB)
Interrupt:23 Base address:0x3000

root@A52-PRO:~# ethtool eth0
Settings for eth0:
No data available
root@A52-PRO:~#

But, if I turn off the P300, and then I run from my PC:

wakeonlan 00:30:05:44:52:08

The Fujitsu P300 wakes up.

Looking the tulip_core.c file I can confirm that does not support ethtool.

Scenario 2)

With kernel:

ii linux-image-3.2.0-0.bpo.2-686-pae 3.2.12-1~bpo60+1 Linux

Now, the driver tulip has support for ethtool:

root@A52-PRO:~# ethtool eth0
Settings for eth0:
Supports Wake-on: pg
Wake-on: d
root@A52-PRO:~# ethtool -s eth0 wol g
root@A52-PRO:~# ethtool eth0
Settings for eth0:
Supports Wake-on: pg
Wake-on: g
root@A52-PRO:~#

But, if I turn off the P300, and then I run from my PC:

wakeonlan 00:30:05:44:52:08

The Fujitsu P300 doesn't wake up.

Looking the tulip_core.c file I can confirm it has support for ethtool.

Scenario 3)

Return to kernel 2.6.32-45 and apply this patch:

http://simon.baatz.info/wol-support-for-an983b/
http://simon.baatz.info/downloads/tulip_an983b_wol_lucid-2.6.32-22.patch

Rebuild and install the kernel, reboot and:

root@A52-PRO:~# ethtool eth0
Settings for eth0:
Supports Wake-on: pg
Wake-on: d
root@A52-PRO:~# ethtool -s eth0 wol g
root@A52-PRO:~# ethtool eth0
Settings for eth0:
Supports Wake-on: pg
Wake-on: g
root@A52-PRO:~#

OK, I have kernel 2.6.32 with ethtool support. But:

wakeonlan 00:30:05:44:52:08

Fails again.

Conclusion

The code added to tulip_core.c for ethtool support makes fail wake on lan in this ethernet card.
I would like to have ethtool support and wake on lan running. Is it possible?

Discussion