Help with Adafruit RTC, please

51 views
Skip to first unread message

John Baker

unread,
May 12, 2016, 5:45:35 PM5/12/16
to BeagleBoard
I mounted the Adafruit DS3231 RTC module on a breadboard and using the Adafruit instructions got it to work. It works fine but it takes one minute after booting the BBB before it reads the clock date and time and updates to Debian. I would like it to update right away when the BBB boots up. I suspect that the BBB is trying to get the date and time thru the Ethernet connection but don't know. Any help please?
Thanks, John

Here's the Adafruit DS3231 info:
and here's the instructions:

My systemd code is: 
[Unit]
Description=DS3231 RTC Service

[Service]
Type=simple
WorkingDirectory=/usr/share/rtc_ds3231
ExecStart=/bin/bash clock_init.sh
SyslogIdentifier=rtc_ds3231

[Install]
WantedBy=multi-user.target

and my clock_init.sh code is:
#!bin/bash
sleep 15
echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
hwclock -s -f /dev/rtc1
hwclock -w

Reply all
Reply to author
Forward
0 new messages