Skip to main content
Bumped by Community user
added 734 characters in body
Source Link

I'm working on a project where an RTC (DS3231) is needed since the RPi will not have continuous access to the internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and none of them solve this delay on reboot issue.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

EDIT. What I've tried until now:

  1. First Method

-Including rtc-ds1307 in /etc/modules (It doesn't with "rtc-ds3231", so I use ds1307 driver instead)

-Including in /etc/rc.local:

    echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
    hwclock -s
  1. Second Method (recommended for Jessie)

-Including dtoverlay=i2c-rtc,ds3231 at the end of /boot/config.txt

-Commenting out the following lines in /lib/udev/hwclock-set:

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

How I set up and read time

sudo date -s "01 AUG 2017 1:00:00"
sudo hwclock -w
sudo hwclock -r; sudo date

I'm working on a project where an RTC (DS3231) is needed since the RPi will not have continuous access to the internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and none of them solve this delay on reboot issue.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

I'm working on a project where an RTC (DS3231) is needed since the RPi will not have continuous access to the internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and none of them solve this delay on reboot issue.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

EDIT. What I've tried until now:

  1. First Method

-Including rtc-ds1307 in /etc/modules (It doesn't with "rtc-ds3231", so I use ds1307 driver instead)

-Including in /etc/rc.local:

    echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
    hwclock -s
  1. Second Method (recommended for Jessie)

-Including dtoverlay=i2c-rtc,ds3231 at the end of /boot/config.txt

-Commenting out the following lines in /lib/udev/hwclock-set:

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

How I set up and read time

sudo date -s "01 AUG 2017 1:00:00"
sudo hwclock -w
sudo hwclock -r; sudo date
deleted 17 characters in body
Source Link
Steve Robillard
  • 34.9k
  • 18
  • 104
  • 109

I'm working on a project where aan RTC (DS3231) is needed since the RPi will not have continouscontinuous access to the internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and none of them solve this delay on reboot issue.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

Thank you in advance.

I'm working on a project where a RTC (DS3231) is needed since the RPi will not have continous access to internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and none of them solve this delay on reboot issue.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

Thank you in advance.

I'm working on a project where an RTC (DS3231) is needed since the RPi will not have continuous access to the internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and none of them solve this delay on reboot issue.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

deleted 4 characters in body
Source Link

I'm working on a project where a RTC (DS3231) is needed since the RPi will not have continous access to internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and anynone of them seems to keep time properlysolve this delay on reboot issue.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

Thank you in advance.

I'm working on a project where a RTC (DS3231) is needed since the RPi will not have continous access to internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and any of them seems to keep time properly on reboot.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

Thank you in advance.

I'm working on a project where a RTC (DS3231) is needed since the RPi will not have continous access to internet. I've been able to set the clock on time and keep it but I've observed that a delay in time appears when I reboot the system. Around 1 second each 5 reboots.

I've tried to set the clock both with the rc.local method and the overlays method (I'm running Jessie), and none of them solve this delay on reboot issue.

Any idea about why this could happen? It is not a problem with my clock as I've checked two differents DS-3231.

Thank you in advance.

Source Link
Loading