How To Use WOL

Wake-On-LAN (WOL) is a protocol standard that allows your PC/Smartphone to turn on a computer via your local network or the Internet.

Note: The operation of VIM2, VIM3 and Edge is almost the same, so this document will take VIM2 as an example.

VIM2, VIM3 and Edge are different from VIM1, as it supports the WOL-function.

Firstly, you have to connect VIM2 to your LAN, then get the Ethernet MAC address.

Ubuntu

Get Ethernet MAC address

1.MAC Address Sticker on the backside of the board:

If the sticker has peeled-off, you can use following steps to get the MAC Address.

2.On Ubuntu, type ifconfig on terminal

1
2
3
4
5
6
$ ifconfig
eth0 Link encap:Ethernet HWaddr 98:aa:fc:60:46:de
inet addr:192.168.1.142 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::9aaa:fcff:fe60:46de/64 Scope: Link


HWaddr 98:aa:fc:60:46:de corresponds to your Ethernet MAC Address.

Enable WOL

1.By default WOL is disabled. So you’ll have to use the KBI (Khadas Bootloader Instructions) to enable it.

1
kvim2# kbi trigger wol w 1

If you want to check the WOL status, you can run:

1
2
kvim2# kbi trigger wol r
boot wol: enable

2.You can enable WOL in the Applications->Wake On LAN Setting on Ubuntu.

wol

  • Select WOL Mode.

wol

Test WOL

After doing the steps above, we can test the WOL function.

1) Connect VIM2 with LAN

2) Power off VIM2

3) Attempt to wake up your VIM2 on Ubuntu.

  • Install the wakeonlan tool
    1
    $ sudo apt-get install wakeonlan
    Now you can wake up your VIM2 with it’s MAC Address
    1
    $ wakeonlan 98:aa:fc:60:46:de

See also

KBI Guidance