On Wed, Jun 08, 2016 at 09:19:40AM +0000, DSP wrote: > The ptp hardware clock seems to be adjusted correct but with phc2sys i can't > set the RTC on the same value as the PHC. It is 36 seconds away like TAI-UTC.
The RTC should *not* have the same value as the PHC. The RTC uses the UTC timescale, but the PHC uses TAI. BTW, your nodes all have TAI-UTC = 35, not the current 36. (This shows that you are using some version prior to 1.6.) If you want to have the correct offset, use the "set GRANDMASTER_SETTINGS_NP" pmc command. > Master: > ptp4l -2 -i eth0 -p /dev/ptp0 -m > phc2sys -s eth0 -c CLOCK_REALTIME -w -m > RTC: Wed Jun 8 10:34:27 2016 0.000000 seconds > PHC: 2016-06-08 10:35:02.316598760 On the master, you are adjusting your CLOCK_REALTIME to follow the PHC time. But what is setting the PHC time? Maybe you reversed the -s and -c flags, but I don't know your intention. > Slave1: > ptp4l -i eth0 -p /dev/ptp0 -f /etc/linuxptp/default.cfg -s -m > phc2sys -s eth0 -c CLOCK_REALTIME -w -q -m > RTC: Wed Jun 8 10:34:25 2016 0.000000 seconds > PHC: 2016-06-08 10:35:00.084961211 > Slave2: > ptp4l -i eth0 -p /dev/ptp0 -f /etc/linuxptp/default.cfg -s -m > phc2sys -s eth0 -c CLOCK_REALTIME -w -q -m > RTC: Wed Jun 8 10:34:29 2016 0.000000 seconds > PHC: 2016-06-08 10:35:04.220653446 > What am I doing wrong? The slaves are configured to adjust their CLOCK_REALTIME (UTC) to follow the PHC (TAI). The master gives the slaves the TAI time and tells them that TAI-UTC=35. Then, phc2sys sets the system clock, and you can see the 35 second offset. So, there is nothing wrong with the slaves. HTH, ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users