nxp-archive / openil_linuxptp

PTP IEEE 1588 stack for Linux
GNU General Public License v2.0
136 stars 60 forks source link

Setting system time and date not working after wasted first attempt #40

Open mmitrov opened 2 years ago

mmitrov commented 2 years ago

Hello community,

I've noticed an issue with applying time date when using software timestamping.

What I noticed is that the date&time are updated only over the first state machine loop. Later loops won't do the work for me.

Observed behavior:

In addition, timedatectl field 'System clock is synchronized' in the most of the cases changes state to yes. No matter how many times clock is selected, it is not updated until service is restarted manually over systemctl interface and again application-wise the first time of the new run state machine reaches 'UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED'.

I use software timestamping therefore there is only one ptp4l service running in Boundary mode, but it was the same behavior in the Ordinary mode.

Can you help on this?

Thanks in advance!