1

i am looking for a solution that can prefer NTP, updating the RTC when possible, and then fall back to the RTC when no network is available.

  • it seems that NTP do this job and when the ntp is running it syncs RPI's time also the hwclock to the ntpserver time?

  • during boot up system date acts weird! some time works fime, some times sync with rtc, some time go back to 1999 ,.... any help in this regard?

by the way: i have sussessfully done these stuff:

  • Why do you think there is a problem? You have told us lots of things you haven't done, or imagine don't work , but not what you have actually done – Milliways Apr 17 '17 at 11:19
  • i have added RTC to RPI3 and it works, i also installed ntpd daemon and it works fine. the problem starts when the pi boots or when i plug the power; time goes back to 1999 meanwhile rtc has kept the time when i read it with hwclock -r. i checked the boot sequence, when the RPI boots the time is OK (a simple script show time on boot on LCD) but as soon as ntp is started the time goes back to 1999 – hossein valizadeh Apr 18 '17 at 3:18
  • There was no need to "installed ntpd daemon". Why? it would have been present. You still haven't said what you have actually done "added RTC" which? how? DO NOT PUT DETAIL IN Comments paste into your question. DO NOT say "is OK", if you actually want help put actual data in the question. – Milliways Apr 18 '17 at 3:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.