[LinuxPPS] cross posting [time-nuts] NTP API on Linux 2.6.26
Folkert van Heusden
folkert at vanheusden.com
Sun Jan 11 22:19:27 CET 2009
> > Odd. I still get:
> >
> > belle:/usr/local/src/ntp-4.2.4p6# /usr/local/ntp/bin/ntptime
> > ntp_gettime() returns code 5 (ERROR)
> > time cd14bd4c.3240a000 Sun, Jan 11 2009 19:47:40.196, (.196299),
> > maximum error 9016 us, estimated error 16 us
> > ntp_adjtime() returns code 5 (ERROR)
> > modes 0x0 (),
> > offset -26.000 us, frequency -3.138 ppm, interval 1 s,
> > maximum error 9016 us, estimated error 16 us,
> > status 0x40 (UNSYNC),
> > time constant 4, precision 1.000 us, tolerance 500 ppm,
>
> Ntp is not synced yet. Until ntp has SYNCed ntptime will report precision =
> 1.000 us even if ntp is capable of NANO mode. Either your refclock is not yet
> working or you didn't wait long enough to run this. It is also possible that
> you are not picking up the correct timex.h file during the build. You need to
> have a look at the config log to confirm which file is used.
Ok verified that:
gcc -DHAVE_CONFIG_H -I/usr/local/src/timex.h -I/lib/modules/2.6.26-pps/build/include -I/lib/modules/2.6.26-pps/build/Documentation/pps -I. -I. -I.. -I../include -I../include -I../libopts
-I/usr/include -march=nocona -O2 -m64 -mno-sse3 -DHAVE_PPSAPI -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes -MT ntpd.o -MD -MP -MF ".deps/ntpd.Tpo" -c -
o ntpd.o ntpd.c
also:
belle:/usr/local/src/ntp-4.2.4p6# ls -l /usr/local/src/timex.h/
total 8
-rw-r--r-- 1 root staff 6567 2009-01-10 15:46 timex.h
but:
remote refid st t when poll reach delay offset jitter
==============================================================================
*GPS_NMEA(1) .GPS. 0 l 3 16 377 0.000 -0.031 0.012
... etc....
ntp.nmi.nl .IRIG. 1 u 45 64 7 12.447 74.570 0.768
ntp_gettime() returns code 0 (OK)
time cd14e020.7a3a7000 Sun, Jan 11 2009 22:16:16.477, (.477454),
maximum error 2073 us, estimated error 217 us
ntp_adjtime() returns code 0 (OK)
modes 0x0 (),
offset -30.000 us, frequency -3.065 ppm, interval 1 s,
maximum error 2073 us, estimated error 217 us,
status 0x1 (PLL),
time constant 7, precision 1.000 us, tolerance 500 ppm,
Folkert van Heusden
--
Multitail est un outil permettant la visualisation de fichiers de
journalisation et/ou le suivi de l'exécution de commandes. Filtrage,
mise en couleur de mot-clé, fusions, visualisation de différences
(diff-view), etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
More information about the LinuxPPS
mailing list