Richard,
I am only seeing one PHC. It is /dev/ptp0. I also only have one Ethernet
device showing. It's eth0. "ethtool -T eth0" shows that I have hardware
timestamping and the PTP hardware clock is 0. From what I can tell, I'm
using the correct PHC. When I read the clock from that PHC, it never
increments. That tells me something is wrong with the PHC clock setup.

Hannes,
I was thinking that it could be a driver issue. I never thought about the
device tree, but it could be that. At this point, I'm not ruling anything
out. I'm not familiar with device trees or the imx6 hardware. (I was given
this hardware and told to set up the PTP services.) Please forgive my
ignorance. I do have the yocto project to build the kernel image for this
hardware. How would I go about checking that the device tree is set up
correctly? Does the imx6 Hardware Development Guide talk about setting up
the device tree?

On Wed, Dec 5, 2018 at 8:15 AM Hannes Mayr <hannes.m...@microgate.it> wrote:

> 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