Hi Keith,

On 05/12/2018 00:02, Keith Squier wrote:

I'm at a lost as to what to do next. I have an embedded system with an imx6 using the fec driver. It will properly sync to a master when using software timestamps, but it will never sync when using hardware timestamps.

When I make the system behave as a master clock and use phc2sys with "-a -r -r", it says it's synchronizing eth0 to CLOCK_REALTIME, which is what I would expect, except that it never updates the ptp0 clock. In fact, the time in /dev/ptp0 never changes, and the offset continues to grow. The ptp0 clock is stuck. Running "testptp -g" always gives me the same time.

we are also using PTP on an imx6. IIRC the imx6 needs a reference clock on GPIO_16 / ENET_REF_CLK for the ieee1588 timer to run. There is a whole chapter about this in the imx6 Hardware Development Guide. So you might check that the reference clock is setup correctly in the device-tree.

Hannes



_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to