Wake-On-Lan
Find out the MAC address of the ethernet port
The MAC address can be found out with the command ifconfig or ip. For example, 00:1e:06:42:bf:78 is the MAC address access Wake-On-Lan magic.
$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:1e:06:42:bf:78 brd ff:ff:ff:ff:ff:ff inet 192.168.10.132/24 brd 192.168.10.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::21e:6ff:fe42:bf78/64 scope link valid_lft forever preferred_lft forever
Enabling Wake-On-Lan
By adding one argument to the kernel command line via editing /media/boot/config.ini file, Wake-On-Lan can be enabled and will be affected on the next boot.
enable_wol=<0|1>
For example, in order to enable Wake-On-Lan.
setenv bootargs "... enable_wol=1"
Triggering Wake-On-Lan
Firstly, we are assuming that ODROID-N2/C4/HC4 is suspended while DC power cable and ethernet cable are attached.
$ sudo systemctl suspend
From another a device, a desktop or a router which can triggers an Wake-On-Lan packet, you can wake up the ODROID-N2/C4/HC4. For example, from Ubuntu desktop, the command wakeonlan with a specific MAC address will make the ODROID-N2/C4/HC4 start instantly.
$ wakeonlan 00:1e:06:42:bf:78