Hi Mike,
Can you pls let me know what all commands i need to run, order wise, in master and slave, to get same date on both master and slave??

Thanks,
Gourav



On 7/24/2019 6:44 PM, Lynch, Mike wrote:

You have to use phc2sys to synchronize the masters PHC clock to the masters system clock. I’m not sure but I think it also has to be used on the slave side to synchronize the slave system clock to the slave PHC clock, Richard?

*From:*gourav jain <gj...@cdot.in>
*Sent:* Tuesday, July 23, 2019 11:55 PM
*To:* Richard Cochran <richardcoch...@gmail.com>
*Cc:* linuxptp-users@lists.sourceforge.net
*Subject:* Re: [Linuxptp-users] Trying to sync date between master and slave

Hello Richard,

I didn't get why you are suggesting to run phc2sys in master ??
Would like to say my requirement once again,

Master side Slave side
system clock-->PHC clock---------------------PHC clock--->system clock

Master:
1) setting date:
                          Wed Jul 24 /_10:08:00_/ IST 2019
2) Running :
                     ./ptp4l -i eth1 -m

Slave :
1) setting date:
                          Wed Jul 24 /_10:09:00_/ IST 2019
2) Running :
                     ./ptp4l -i eth1 -s -m

After running ptp4l utility in master and slave, i can see slave PHC clock is synchronized with master. Further more, i want to sync slave system clock with slave PHC clock which is already synchronized above, so that i'm expecting slave date will become same like master. (correct me if its not possible)

Kindly let me know after ptp4l what i need to run in slave to get my requirement done.

Thanks,
Gourav


On 7/23/2019 10:28 PM, Richard Cochran wrote:

    On Tue, Jul 23, 2019 at 10:13:41AM +0530, gourav jain wrote:

        Hi,

        If your intent is to serve the system time, then you need two -r flags

        here, for example:

             ./phc2sys -a -r -r -m

        the above said where i need to run in master or slave side ??

    On the master (the one serving the time).

    HTH,

    Richard


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

Reply via email to