On Mon, Jan 18, 2021 at 04:05:52AM +0000, Coughlin, David S wrote:

> I tried running phc2sys to synch the processor clock with the phc,
> by running it: phc2sys -r -O 0 -s /dev/ptp0 but this had no effect.
> The usage statement in phc2sys.c does not indicate that the -a and
> -r, but the documentation [now that I'm looking at it] seems to say
> that -r is only valid in conjunction with -a.  I'm fuzzy on how
> getopts works, so I can't judge anything from that line in the code.
> Since I need to point phc2sys at /dev/ptp0 as its master clock, I
> was not sure that autoconfiguration was valid.  Do I need to update
> my invocation to `phc2sys -ar -O 0 -s /dev/ptp0`, or do I require
> some other configuration?

For phc2sys, you either choose automatic configuration,

 -a             turn on autoconfiguration
 -r             synchronize system (realtime) clock
                repeat -r to consider it also as a time source

or manual configuration,

 -c [dev|name]  time sink device (CLOCK_REALTIME)
 -d [dev]       time source PPS device
 -s [dev|name]  time source device
 -O [offset]    sink-source time offset in seconds (0)
 -w             wait for ptp4l

So what you are looking for is something like

   phc2sys -s /dev/ptp0 -O 0

HTH,
Richard



_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to