On Fri, Jun 15, 2018 at 09:59:04AM +0000, Jord Pool wrote:
> So I found that when launching ptp4l it automatically assigns itself
> a /dev/ptp* device. One time it assigns /dev/ptp2, another time it
> assigns /dev/ptp4 etc very random. I have a total of 5 devices:
> /dev/ptp0, /dev/ptp1, /dev/ptp2, /dev/ptp3 and /dev/ptp4.

How many MACs do you have? Five or more?

If `ptp4l -i enp0s25` chooses different /dev/ptp* every time you stop
and start again, then something is very broken in your kernel.  (After
a reboot, however, the /dev/ptp* number might have changed.  That is
why you can only give ptp4l the interface.)

> Phc2sys is launched at the same time by using # phc2sys -c /dev/ptp0
> -s CLOCK_REALTIME -m -q -w.

Just use the automatic mode of phc2sys:

    phc2sys -a -r -r -m -q

> When specifying /dev/ptp0 in the ptp4l command (# ptp4l -i enp0s25
> /dev/ptp0 -m -q -4 -H) it still automatically chooses another
> /dev/ptp* device. When not specifying enp0s25 but only the device (#
> ptp4l -i /dev/ptp0 -m -q -4 -H) it returns the following message:

You cannot specifiy the PTP device to ptp4l, only the network
interface.

HTH,
Richard


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to