On Tue, Feb 16, 2021 at 05:50:32PM +0100, Maheen Iqbal wrote:
> Hi,
> 
> I am getting the below mentioned error even though I set the phc clock time
> to somewhere in 2021 for all the connected devices.
> sudo phc_ctl CLOCK_REALTIME set 1613412397.584098055

But what about the PHC?  See below.
 
> sudo phc2sys -s eth0 -c CLOCK_REALTIME -w -m -O 0
> phc2sys[1034.500]: CLOCK_REALTIME phc offset 1613412696595700703 s0 freq
>  -80545 delay    770
> phc2sys[1035.500]: failed to step clock: Invalid argument

CLOCK_REALTIME's offset from the PHC (eth0) is ~1613412696.6 seconds.

The whole seconds part needs 31 bits... I think your kernel/libc is
rejecting such a large offset correction.

Thanks,
Richard


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

Reply via email to