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 like once we change the line to the following it seems to work (confirmed on a scope using GPIO, shows around a 1 usec delta, with a few power cycles). I haven't dug into why the -a doesn't do what we'd expect, but either way this does: sudo phc2sys -s /dev/ptp0 -m -w Hopefully this is helpful to anyone else using the Nvidia Jetson TX2 :) On Fri, Dec 21, 2018 at 9:18 PM Richard Cochran <richardcoch...@gmail.com> wrote: > 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 be pretty close, but it is not. > > You need to run the phc2sys program as well. What you have done > synchronizes the clocks in your NICs only. > > Thanks, > Richard >
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users