Add the following at the bottom of the page above exit 0. ^x exit and save the file. Reboot your ODROID-C2.

odroid@odroid:~$ sudo reboot

If everything worked correctly the RTC on ODROID-C2 should be initialised on boot and the current date and time will be loaded into Linux. You need to check the existence of “rtc-pcf8563” in the output of “lsmod” command when the HW RTC doesn't work correctly.

You can check the current time on the RTC on ODROID-C2 with:

odroid@odroid:~$ sudo hwclock -r

If this is the first time you have run the RTC on ODROID-C2 it will display a date of APR 20th 2016.

If the ODROID-C2 is connected to the internet the correct date and time should be set automatically otherwise you can set the current date and time using:

odroid@odroid:~$ sudodate-s"20 APR 2016 18:00:00"

You can check the current linux date with the command (date).

To save the date into the RTC chip on ODROID-C2 use the following command:

odroid@odroid:~$ sudo hwclock -w

Verify the date has been saved onto the RTC on ODROID-C2 with:

odroid@odroid:~$ sudo hwclock -r

Kernel update will break the RTC functionality
To avoid this problem, you can use this workaround that will patch the dtb all the time