rbr
Members
-
Joined
-
Last visited
Reputation Activity
-
rbr got a reaction from Christian_ in SOLVED: How to add an external RTC module to ROCK64 boardHello, this was my way to make RTC DS3231 works on rock64.
apt-get install i2c-tools
- /etc/rc.local
/lib/udev/hwclock-set /dev/rtc1 exit 0 - /lib/udev/hwclock-set
if [ -e /run/systemd/system ] ; then # exit 0 /bin/enable_dtoverlay i2c0 i2c@ff150000 okay echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device fi #if [ -e /run/udev/hwclock-set ]; then # exit 0 #fi HCTOSYS_DEVICE=rtc1
Copy to /bin/ and make executable
https://raw.githubusercontent.com/ayufan-rock64/linux-package/master/root/usr/local/sbin/enable_dtoverlay
systemctl stop systemd-timesyncd.service
systemctl disable systemd-timesyncd.service
systemctl stop fake-hwclock.service
systemctl disable fake-hwclock.service
sudo apt-get -y remove fake-hwclock
apt install chrony