Hi C.J.,
On Thu, Jun 20, 2013 at 03:56:00PM -0700, C.J. Adams-Collier wrote:
I hear ntpdate has been deprecated long time and obsoleted in new releases.
Try ntpd -q
I have tried this long ago, and would be happy if things would have been
that simple.
ntp_refclock:refclock_process_f() calls libntp:clocktime() and the
latter aboslutely cannot deal with the fact if e.g. your embedded
system without RTC boots up assuming it is January 1st 1970 and a GPS
reference time in the year 2013 has been received.
I looked into fixing the ntpd/libntp code some months ago, but gave up
as it seems to be written on the assumption that there simply are not 43
years of difference between two timestamps.
Having said that, I'm clearly not a ntpd expert and happy to try
whatever method people suggest here. But after lots of debugging and
ntp source code reading I arrived at the conclusion that it is not
possible using the existing code, which prompted the implementation of
gpsdate.