Re: [Linuxptp-users] Should Linux PTP syn the clock used by date between PCs?
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Gil G. <Gil...@ha...> - 2015-11-11 17:38:15
|
Thanks. -----Original Message----- From: Keller, Jacob E [mailto:jac...@in...] Sent: Wednesday, November 11, 2015 7:35 PM To: ric...@gm...; Gil Graiber Cc: lin...@li... Subject: Re: [Linuxptp-users] Should Linux PTP syn the clock used by date between PCs? For master, you need to use phc2sys to sync the kernel time to the PHC on the NIC doing the timestamping, on the slave you do the reverse, which is what the "-r -r" option is for. Best practice is to use a different piece of hardware as a grand master, rather than using one of the NICs directly as master. Regards, Jake On Wed, 2015-11-11 at 15:25 +0000, Gil Graiber wrote: > So if it is not best practice, how else can I sync the system clock on > the master and the slaves? > I would like all system clocks on the Lan to be synced to the master > hardware clock on the master NIC. > > -----Original Message----- > From: Richard Cochran [mailto:ric...@gm...] > Sent: Wednesday, November 11, 2015 5:21 PM > To: Gil Graiber > Cc: lin...@li... > Subject: Re: [Linuxptp-users] Should Linux PTP syn the clock used by > date between PCs? > > On Wed, Nov 11, 2015 at 02:44:22PM +0000, Gil Graiber wrote: > > I run phc2sys like this on the master and the slave. > > It is not best practice to use the system for a PTP master. However, > you *can* do this if you really, truly want to. On the master, you > need to repeat the '-r' phc2sys option in order to confirm the unusual > configuration. > > Master: > ptp4l -i eth0 > phc2sys -a -r -r > > Slave: > ptp4l -i eth0 -s > phc2sys -a -r > > That should work better for you. > > Thanks, > Richard > > ------------------------------------------------------------------- > ----------- > _______________________________________________ > Linuxptp-users mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxptp-users |