Hi, Peter Bergin <pe...@berginkonsult.se> writes:
> Hi, > > On 2021-10-13 00:19, Richard Cochran wrote: >> On Tue, Oct 12, 2021 at 09:47:21PM +0200, Peter Bergin wrote: >>> Hi, >>> >>> I'm currently working on a network product using gPTP configuration for PTP >>> sync. The device shall be a AVB endpoint handling audio and according to >>> Avnu specifications all endpoint shall be capable of being master on the >>> network. Some plugins for AVB (such as gstreamer and alsa-plugins) require >>> that system time (CLOCK_REALTIME) is in sync with PHC to get correct timing. >>> I see different cases depending on if the device is master or slave. If the >>> device is slave I would like to sync PHC to CLOCK_REALTIME. The other way >>> around, if device is master I would like to sync CLOCK_REALTIME to PHC. >>> >>> To the question; is there a way to use phc2sys and handle this >>> automatically? >> phc2sys has an automatic mode. See the man page for details. >> > Thanks! My bad, should have read man pages better. And I did try '-a' > but had issues with it. To summarize for other users: > > $ ./phc2sys -a -r -r -q -m > phc2sys[412816.955]: Waiting for ptp4l... > phc2sys[412817.956]: Waiting for ptp4l... One thing that could be missing is for phc2sys to use the same config file as ptp4l, this should be more convenient, something like this: $ ./phc2sys -a -r -r -q -m -f /etc/linuxptp/gPTP.cfg Cheers, -- Vinicius _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users