Re: [Linuxptp-users] clock sync

2018-12-22 Thread Richard Cochran
On Fri, Dec 21, 2018 at 12:12:53PM -0500, Randy Spruyt wrote: > nvidia@jetson-randy1:~$ sudo phc2sys -a -r -m > phc2sys[83977.835]: reconfiguring after port state change > phc2sys[83977.839]: selecting eth0 for synchronization > phc2sys[83977.840]: nothing to synchronize You need -r twice if you w

Re: [Linuxptp-users] clock sync

2018-12-22 Thread Randy Spruyt
Thanks, actually phc2sys was running on each, i.e. from the original message: nvidia@jetson-randy2:~$ sudo phc2sys -a -r -m phc2sys[75361.130]: reconfiguring after port state change phc2sys[75361.133]: selecting CLOCK_REALTIME for synchronization ... I spent a bit more time with this it looks li

Re: [Linuxptp-users] clock sync

2018-12-21 Thread Richard Cochran
On Fri, Dec 21, 2018 at 12:12:53PM -0500, Randy Spruyt wrote: > Perhaps an elementary question, but maybe someone knows. The goal is to > have getnstimeofday() return a synchronized time value for 2 systems in a > kernel module. To do this, I would expect a simple "date" call from each > system to

Re: [Linuxptp-users] clock sync

2018-12-21 Thread Randy Spruyt
I should mention this is just using the default config file installed with ptp4l, but for full disclosure: nvidia@jetson-randy2:~$ cat /etc/linuxptp/ptp4l.conf [global] # # Default Data Set # twoStepFlag 1 slaveOnly 0 priority1 128 priority2 12