Hey everyone,
I have been trying for a while to set up my master-slave PTP sync but in the slave I can see an offset. When I ask for the date in the slave and the master they have around 36 seconds difference. If I do not run this command after synchronizing with ptp4l, the slave is 36 seconds behind the master. If I run the command, then it is again around 36 seconds faster than the master. The problem is that they never are exactly at the same time. sudo phc2sys -s enp0s31f6 -O 36 -m Does someone knows what is the problem? Thank you very much in advance! Below the logs: Best regards, Federico Murciano Master: root@MK6C:~# ptp4l -A -i eth0 -m ptp4l[9493.515]: selected /dev/ptp0 as PTP clock ptp4l[9493.517]: driver changed our HWTSTAMP options ptp4l[9493.517]: tx_type 1 not 1 ptp4l[9493.517]: rx_filter 1 not 12 ptp4l[9493.517]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[9493.518]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[9493.518]: port 1: link up ptp4l[9500.191]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[9500.191]: selected best master clock 04e548.fffe.230108 ptp4l[9500.191]: assuming the grand master role ptp4l[9651.203]: timed out while polling for tx timestamp ptp4l[9651.204]: increasing tx_timestamp_timeout may correct this issue, but it is likely caused by a driver bug ptp4l[9651.204]: port 1: send sync failed ptp4l[9651.204]: port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[9667.205]: driver changed our HWTSTAMP options ptp4l[9667.205]: tx_type 1 not 1 ptp4l[9667.205]: rx_filter 1 not 12 Slave: Terminal 1 sudo ptp4l -f linuxptp.cfg -m ptp4l[179725.005]: selected /dev/ptp0 as PTP clock ptp4l[179725.006]: port 1 (enp0s31f6): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[179725.006]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[179725.006]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[179725.809]: port 1 (enp0s31f6): new foreign master 04e548.fffe.230108-1 ptp4l[179730.210]: selected best master clock 04e548.fffe.230108 ptp4l[179730.210]: running in a temporal vortex ptp4l[179730.210]: port 1 (enp0s31f6): LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[179732.410]: master offset -40033 s0 freq +3094 path delay 8176 ptp4l[179733.510]: master offset -40231 s1 freq +2896 path delay 8178 ptp4l[179734.610]: master offset 130 s2 freq +3026 path delay 8178 ptp4l[179734.610]: port 1 (enp0s31f6): UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED ptp4l[179735.710]: master offset -167 s2 freq +2768 path delay 8181 Terminal 2 sudo phc2sys -a -r -m phc2sys[179735.688]: reconfiguring after port state change phc2sys[179735.688]: selecting CLOCK_REALTIME for synchronization phc2sys[179735.688]: selecting enp0s31f6 as the master clock phc2sys[179735.689]: CLOCK_REALTIME phc offset 85994777540 s0 freq -100000000 delay 0 phc2sys[179736.689]: CLOCK_REALTIME phc offset 86085732758 s1 freq +2715 delay 0 phc2sys[179737.690]: CLOCK_REALTIME phc offset 12285 s2 freq +15000 delay 0 phc2sys[179738.690]: CLOCK_REALTIME phc offset 121 s2 freq +6521 delay 0 phc2sys[179739.691]: CLOCK_REALTIME phc offset -3304 s2 freq +3132 delay 0 phc2sys[179740.691]: CLOCK_REALTIME phc offset -3555 s2 freq +1890 delay 0 phc2sys[179741.692]: CLOCK_REALTIME phc offset -2345 s2 freq +2034 delay 0 phc2sys[179742.692]: CLOCK_REALTIME phc offset -1495 s2 freq +2180 delay 0 phc2sys[179743.692]: CLOCK_REALTIME phc offset -576 s2 freq +2651 delay 0 phc2sys[179744.693]: CLOCK_REALTIME phc offset -428 s2 freq +2626 delay 0 phc2sys[179745.693]: CLOCK_REALTIME phc offset -309 s2 freq +2617 delay 0 phc2sys[179746.694]: CLOCK_REALTIME phc offset 257 s2 freq +3090 delay 0 phc2sys[179747.694]: CLOCK_REALTIME phc offset 486 s2 freq +3396 delay 0 phc2sys[179748.694]: CLOCK_REALTIME phc offset -152 s2 freq +2904 delay 0 phc2sys[179749.695]: CLOCK_REALTIME phc offset -309 s2 freq +2701 delay 0 phc2sys[179750.695]: CLOCK_REALTIME phc offset 133 s2 freq +3050 delay 0 phc2sys[179751.696]: CLOCK_REALTIME phc offset -34 s2 freq +2923 delay 0 phc2sys[179752.696]: CLOCK_REALTIME phc offset 183 s2 freq +3130 delay 0 phc2sys[179753.696]: CLOCK_REALTIME phc offset -108 s2 freq +2894 delay 0 phc2sys[179754.696]: CLOCK_REALTIME phc offset 99 s2 freq +3069 delay 0 phc2sys[179755.697]: CLOCK_REALTIME phc offset -86 s2 freq +2913 delay 0 phc2sys[179756.697]: CLOCK_REALTIME phc offset 189 s2 freq +3163 delay 0 phc2sys[179757.698]: CLOCK_REALTIME phc offset -178 s2 freq +2852 delay 0 phc2sys[179758.698]: CLOCK_REALTIME phc offset -282 s2 freq +2695 delay 0 phc2sys[179759.698]: CLOCK_REALTIME phc offset 126 s2 freq +3018 delay 0 phc2sys[179760.699]: CLOCK_REALTIME phc offset -98 s2 freq +2832 delay 0 phc2sys[179761.699]: CLOCK_REALTIME phc offset 338 s2 freq +3239 delay 0 phc2sys[179762.699]: CLOCK_REALTIME phc offset -103 s2 freq +2899 delay 0 phc2sys[179763.700]: CLOCK_REALTIME phc offset 186 s2 freq +3157 delay 0 phc2sys[179764.700]: CLOCK_REALTIME phc offset -217 s2 freq +2810 delay 0 phc2sys[179765.700]: clockcheck: clock jumped forward or running faster than expected! This happens after running the command phc2sys[179765.701]: CLOCK_REALTIME phc offset 72000000088 s0 freq +2810 delay 0 phc2sys[179766.701]: CLOCK_REALTIME phc offset 71999999826 s2 freq +2700 delay 0 phc2sys[179767.701]: CLOCK_REALTIME phc offset 72000000062 s2 freq +100000000 delay 0 phc2sys[179768.702]: CLOCK_REALTIME phc offset 71979295436 s2 freq +100000000 delay 0 Terminal 3 sudo phc2sys -s enp0s31f6 -O 36 -m phc2sys[179764.119]: CLOCK_REALTIME phc offset -71999999978 s0 freq +3157 delay 0 phc2sys[179765.120]: CLOCK_REALTIME phc offset -72000000048 s1 freq +3087 delay 0 phc2sys[179766.120]: CLOCK_REALTIME phc offset -45 s2 freq +3042 delay 0 phc2sys[179767.120]: CLOCK_REALTIME phc offset -82 s2 freq +2992 delay 0 phc2sys[179768.120]: CLOCK_REALTIME phc offset -46560779 s2 freq -46557730 delay 0 phc2sys[179769.121]: CLOCK_REALTIME phc offset -67251308 s2 freq -81216493 delay 0 phc2sys[179770.121]: CLOCK_REALTIME phc offset -70107428 s2 freq -100000000 delay 0 phc2sys[179771.121]: CLOCK_REALTIME phc offset -63443433 s2 freq -97584010 delay 0 _______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users