[LinuxPPS] Ultimate time server

Javier Herrero jherrero at hvsistemas.es
Wed Dec 29 12:12:00 CET 2010


Yes, I'm aware of the work of Poul-Henning :) He is also the author of 
the ntp Oncore clock code. And that is the way I've been playing with, 
hardware timestamping using an external counter (with much more 
resolution... 2.5ns). But when converting the timestamps from counter 
values (that have a jitter of only a few pps, due to the GPS pps output 
jitter - this jitter is later reduced by the ntp Oncore clock driver 
using the correction data provided by the GPS) to time values, I've 
found that a jitter appears, in the range of 300-400ns, and sometimes 
more. I suppose that due to other granularities in the kernel that I've 
not yet investigated.

And the results that I obtain are good... but could be better :) My next 
steps will be to use a GPS-disciplined clock source for the timestamping 
and timekeeping, and to look were that jitter is appearing. But january 
will be a very busy month for me and I don't know when I will have time 
to continue playing with these things :)

Regards,

Javier

El 29/12/2010 11:52, Gerhard Bertelsmann escribió:
> I am reading your interesting discussion about a precise time server. Poul
> Henning-Kamp
> from the FreeBSD universe has done some interesting work using hardware
> time stamping
> - see link below:
>
> http://phk.freebsd.dk/soekris/pps/
>
> The AMD Elan SC520 CPU has a kind of one-shot counter with a resolution of
> 33Mhz/4
> which could time stamp external events with a resolution of 120ns to get
> rid off interrupt
> latency/jitter. Poul has also used counters build on FPGAs on standard PCs
> an achieved
> amazing results. IMHO that is the way some of you try to archive high
> accurate time servers.
>
> The Elan CPU is a little bit outdated nowadays. But there are new
> interesting ones:
> PowerPC derivates
> Xscale (ARM)
> and Marvell Kirkwood (88F6281 ARM)
> Especially the last one is IMHO the most interesting one. It can do IEEE
> 1588 and PTP external
> events time stamping (e.g. GPS PPS) with a resolution of 8 ns. Andy
> o'Brien has done
> some interesting investigation. He was so kind to share his code. Please
> have a look at:
>
> http://lnxpps.de/openrd_utils.tar
>
> The hardware used is OpenRD. Im trying to do this on a cheap Seagate
> Dockstar which
> is based on the same CPU. There are a lot of other boards, e.g.
> SheevaPlug, QNAP TS-119, ...
>
> The code is not ready to use, but it should be a very good starting point
> especially gpio9_irq_test.c.
>
> Somebody interested in making a PPS driver ?
>
> Regards
>
> Gerd
>
>




More information about the LinuxPPS mailing list