R-Car/Tests:ravb

This document describes test procedures for Renesas Electronics Ethernet AVB.

Wake-on-Lan
Wake-on-Lan is supported using MagicPacket, this describes how to test it on the Renesas Salvator-X boards.

To test WoL the target and the host needs to have working network configuration. It's possible to have target and host on different subnets as long as packets can be routed directly from host to target. However for this test it is assumed target and host are directly connected and on the same subnet, that way we don't have to worry about routing and such. The network interface on target are named eth0 and the interface on the host are named net0.

1. Find out the MAC address of the target, for example by running the ip command on the target itself.

root@target ~ # ip address show eth0 2: eth0:  mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 2e:09:0a:00:83:90 brd ff:ff:ff:ff:ff:ff inet 10.0.1.7/24 brd 10.0.1.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::2c09:aff:fe00:8390/64 scope link valid_lft forever preferred_lft forever

The MAC address 2e:09:0a:00:83:90 will be used in this example.

2. Set target to listen and wake-up by MagicPacket received on eth0 using ethtool. root@target ~ # ethtool -s eth0 wol g

3. Suspend target. root@target ~ # echo s2idle > /sys/power/mem_sleep root@target ~ # echo mem > /sys/power/state

4. Wake target up by sending MagicPacket from host interface net0 to a target with MAC address 2e:09:0a:00:83:90 using the tool etherwake. root@host ~ # etherwake -i net0 2e:09:0a:00:83:90