[JESSIE] RTC Installation Step-by-Step

[HOWTO] Short Dedicated User Guides for specific tasks

[JESSIE] RTC Installation Step-by-Step

Postby cresfang » Thu Feb 09, 2017 6:04 am

1. Run sudo apt-get -y install i2c-tools

2. Run sudo nano /etc/modules and check, make sure to have the following items in the file and add what is missing

i2c-bcm2708
i2c-dev
rtc-ds1307


3. Run sudo nano /boot/config.txt and add the following line:

enable_uart=1
dtoverlay=i2c-rtc,ds1307


4. Reboot system by sudo reboot

5. Run sudo apt-get -y remove fake-hwclock && sudo update-rc.d -f fake-hwclock remove

6. Run sudo nano /lib/udev/hwclock-set and comment out these three lines:

#if [ -e /run/systemd/system ] ; then
# exit 0
#fi


7. Run date to verify the time is correct.

8. Plug in Ethernet or WiFi to let the Pi sync the right time from the Internet. Once that's done, run sudo hwclock -w to write the time, and another sudo hwclock -r to read the time.

That's it, next time you reboot, the clock will be sync'd automagically from RTC.
http://crescendo-fang.cf
User avatar
cresfang
 
Posts: 94
Joined: Mon Aug 29, 2016 9:43 am
Location: Garden of Time

Return to [HOWTO] UPS PIco HV3.0A Short User Guides

Who is online

Users browsing this forum: No registered users and 1 guest