Salvator-X Android Oreo Wake On Lan

0

I'm working on an ARM device Renesas Salvator-X that run Android Oreo. The goal is to turn on remotely it from LAN.

We know that it is possible. Using Yocto image from https://elinux.org/R-Car/Boards/Salvator-X we are able to cross compile ethtool from sources and use it to configure WOL, suspend to Idle the board and wake it up by sending a magic packet.

Then we tried to use an ethtool project (https://github.com/rxwen/ethtool) for Android, compiled using Android makefiles.

But using

ethtool eth0

Command does not allow access us to access WOL configuration and return :

Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes:   100baseT/Half 100baseT/Full 
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes:  100baseT/Half 100baseT/Full 
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                     100baseT/Half 100baseT/Full 
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x000000cc (204)
               link timer rx_err tx_err
Link detected: yes

I'm not sure about what I'm saying but it can come from Renesas drivers update which does not allow the Android project to get ethernet interface properties as expected.

I'm currently trying to compile ethtool for this device, to run it as executable. But I'm facing some limitations such ass

CANNOT LINK EXECUTABLE "ethtool": "/system/bin/ethtool" has text relocations
Aborted

Due to Android security and optimizations limitations.

Does any one already worked on this or have any idea ?

Thanks !

android
wake-on-lan
asked on Stack Overflow Jun 19, 2018 by Alchimic

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0