On Mon, 23 Feb 2015 18:48:51 -0800, Gary E. Miller wrote:
>     ptp4l[364.654]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
>     phc2sys[365.199]: port 002590.fffe.f355da-1 changed state
>     phc2sys[365.199]: reconfiguring after port state change
>     phc2sys[365.199]: selecting CLOCK_REALTIME for synchronization
>     phc2sys[365.199]: selecting eth0 as the master clock
>     phc2sys[365.199]: phc offset -70353239245525 s0 freq      +0 delay   1348
> 
> WTF was that???
> 
>     ptp4l[365.571]: clockcheck: clock jumped forward or running faster than 
> expected!
>     ptp4l[365.571]: master offset 70368744176888 s0 freq   -9485 path delay   
>   58263

You are apparently running several programs that try to drive the same
clock. This is going to fail, no matter what software you use. This is
most likely a misconfiguration on your side, perhaps you're running
multiple ptp4l instances over the same net interface.

On a similar note, earlier in the thread, you mentioned that you want
the realtime (system) clock to be set by other program than phc2sys. You
must not tell phc2sys to drive the system clock, then, otherwise those
two programs would fight each other. This means you must not pass "-r"
to phc2sys, that option tells phc2sys to drive the system clock (please
do read the phc2sys man page before asking more questions about this,
thanks).

Now, with a single interface and no system clock to sync (i.e. just
phc2sys -a), there's just one clock (the internal clock of the NIC).
phc2sys does synchronization of two or more clocks. If it has just one
clock, it has nothing to synchronize it with and as the consequence, it
does nothing.

As ntpshm is implemented as a servo, it does not come into the game at
all. phc2sys has nothing to synchronize, as synchronizing one clock is a
no-op, and thus does nothing. Using manual mode instead of the
automatic one won't change this.

What's needed is implementing ntpshm to be a clock, not a servo.

tl;dr: What you're trying to achieve does not work with linuxptp
currently.

 Jiri

-- 
Jiri Benc

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to