Date/time keeps going out of whack

You have a problem with your Wandboard and want to ask the community for help.

Date/time keeps going out of whack

Postby dwf » Mon Oct 10, 2016 7:25 pm

I'm running a Wandboard Quad on Ubuntu 14.04 and having a fun time trying to keep the clock in sync with the real world.

It starts up with an incorrect date/time, and I have to sudo ntpdate -s xx.xx.xx.xx. Even after that, at random, the clock will go way forward into the future (I've seen 2020 often, occasionally 2032) or a bit into the past (2014).

While I'd be thrilled to have accidentally discovered a time machine, I'd rather use it in the here and now ;) What can I do to get the clock to stop going way off? I can ntpdate every minute, but that doesn't help me much when the device needs to be used offline.

Apologies if I've missed some stupid-simple FAQ on the matter!
dwf
 
Posts: 1
Joined: Tue Sep 13, 2016 8:57 pm

Re: Date/time keeps going out of whack

Postby jury093 » Wed Oct 12, 2016 2:23 pm

dwf wrote:I'm running a Wandboard Quad on Ubuntu 14.04 and having a fun time trying to keep the clock in sync with the real world.
It starts up with an incorrect date/time, and I have to sudo ntpdate -s xx.xx.xx.xx. Even after that, at random, the clock will go way forward into the future (I've seen 2020 often, occasionally 2032) or a bit into the past (2014).

what command you use and see the fluctuation of time?
cases:
Code: Select all
ntpdate
date
hwclock

if ntpdate, then try use only one NTP server, e.g. ntpdate -d yountpserver. no from _pool_, but by IP or by name
if date, then you have problem in kernel into timer part
If hwclock, check rezonator (32.768KHZ-CM315-2S) at SoM pcb

you can use coil cell for backup RTC, but:
viewtopic.php?f=8&t=243

best choice - external rtc chip..
jury093
 
Posts: 59
Joined: Fri Feb 06, 2015 10:41 am
Location: Sankt-Peterburg, Russia

Re: Date/time keeps going out of whack

Postby Tapani » Thu Oct 20, 2016 3:56 am

Another guess on why times can jump like that:
Could NTP keep track of "drift" on the board? That is, it tries to compensate for a drifting RTC, and somehow the drift parameters end up being completely whack?
Tapani
Site Admin
 
Posts: 705
Joined: Tue Aug 27, 2013 8:32 am

Re: Date/time keeps going out of whack

Postby ClayMontgomery » Fri Oct 21, 2016 8:44 pm

NTP works very well for me and I am using the Dizzy release. I have copied my ntp.conf file below.
I removed the example server and added other NTP servers.
ntpdate is considered obsolete. Use ntpd -q instead.
Also, looking at your /ntp.log might provide clues to your problem.

# Network Time Protocal configuration file.
# NTP is used to obtain the current time and date from the internet.

# The driftfile must remain in a place specific to this
# machine - it records the machine specific clock error
driftfile /etc/ntp.drift

# This obtains a random server which will be close
# (in IP terms) to the machine. Add other servers
# as required, or change this.
#server time.server.example.com

# Some good NTP servers in the USA are:
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
server 3.us.pool.ntp.org
server time.nist.gov

# This log file can help to debug problems:
logfile ntp.log

Regards, Clay
ClayMontgomery
 
Posts: 70
Joined: Tue Nov 19, 2013 9:14 pm


Return to Getting started

Who is online

Users browsing this forum: No registered users and 14 guests

cron