On Thu, Jul 20, 2017 at 01:09:24PM +0200, Petr Kulhavy wrote:
> Now the situation has changed. The master is in sync with the
> SW-timestamping slave and the HW-timestamping slave is 37 seconds behind.
> Why is that?

I guess because your PHC on the GM is set to UTC and not TAI.

Normally, when implementing a GM, you will use a global time reference
like a GPS to discipline the PHC.  If you don't have a good reference,
then you can set the PHC to TAI by hand like this.

        #
        # set phc to clock_realtime (utc)
        #
        testptp -s

        #
        # shift phc to tai
        #
        testptp -t 37

        #
        # check to see offset
        #
        testptp -g; date

If you want the PHC on the GM to track the local system time, then you
can run phc2sys on the GM like this.

        phc2sys -a -r -r

(Note that -r is repeated.)

HTH,
Richard



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to