From 02110280800f5fe6f5b01f193b9cda9d8333053c Mon Sep 17 00:00:00 2001 From: Yossi Date: Thu, 30 Nov 2017 12:29:40 +0200 Subject: [PATCH] update RTC installation :tv: --- stage2/01-sys-tweaks/01-run.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/stage2/01-sys-tweaks/01-run.sh b/stage2/01-sys-tweaks/01-run.sh index 21c3980..4b5f075 100755 --- a/stage2/01-sys-tweaks/01-run.sh +++ b/stage2/01-sys-tweaks/01-run.sh @@ -313,20 +313,25 @@ echo "========== Setup RTC ============" sudo apt-get install python-smbus i2c-tools # TODO: turn on ISC on raspi-config... + + + # add to sudo nano /boot/config.txt -# dtoverlay=i2c-rtc,pcf8523 +echo "dtoverlay=i2c-rtc,ds3231" >> /boot/config.txt +echo "dtparam=i2c_arm=on" >> /boot/config.txt # Remove hw-clock sudo apt-get -y remove fake-hwclock sudo update-rc.d -f fake-hwclock remove # copy new file to -#sudo nano /lib/udev/hwclock-set - -# set HW clock -sudo hwclock -D -r +sudo wget https://dride.io/code/hwclock-set +sudo cp dhcpd.conf /lib/udev/hwclock-set +sudo rm hwclock-set +# we will sync the current date form the app using BLE +# looks at /daemon/bluetooth/updateDate.js echo "========== Install Dride-core [Cardigan] ============" cd /home