Skip to content

Instantly share code, notes, and snippets.

@EkoAdiWijayanto
Created August 20, 2017 14:31
Show Gist options
  • Save EkoAdiWijayanto/4e73e353d91be3abb83ee63591c776a5 to your computer and use it in GitHub Desktop.
Save EkoAdiWijayanto/4e73e353d91be3abb83ee63591c776a5 to your computer and use it in GitHub Desktop.
RTC ds3231
#/boot/config.txt
dtoverlay=i2c-rtc,ds3231
# terminal
$ sudo apt-get purge fake-hwclock
$ sudo reboot
$ hwclock -w
$ sudo dpkg-reconfigure tzdata
#/etc/rc.local
/sbin/hwclock -s
#/etc/default/hwclock
HWCLOCKACCESS=no
$ sudo reboot
apt-get purge ntp
apt-get install ntpdate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment