Hello team,

I had no issue with using software time stamping and also I am able to see
the hardware timestamping support by building new kernel. But when I try to
use the PHC, I see the PHC clock not being updated correctly. I see only
the nSec bits being updated. Here are some of the tests I did.

---------------------
*root@sama7g5ek-sd:~# phc_ctl eth0 get*

*phc_ctl[60533.796]: clock time is 1.010098874 or Thu Jan  1 00:00:01 1970*

*root@sama7g5ek-sd:~# phc_ctl eth0 get*

*phc_ctl[60536.812]: clock time is 1.015383981 or Thu Jan  1 00:00:01 1970*

*root@sama7g5ek-sd:~# phc_ctl eth0 get*

*phc_ctl[60541.072]: clock time is 1.022850092 or Thu Jan  1 00:00:01 1970*

*------------------------*

And also, I tried the PHC sanity check, and it fails to get the correct PHC
time.

-------------------------
*root@sama7g5ek-sd:~# phc_ctl /dev/ptp0 freq 100000000 set 0.0 wait 10.0
get*

*phc_ctl[61677.633]: adjusted clock frequency offset to 100000000.000000ppb*

*phc_ctl[61677.638]: set clock time to 0.000000000 or Thu Jan  1 00:00:00
1970*

*phc_ctl[61687.640]: process slept for 10.000000 seconds*

*phc_ctl[61687.641]: clock time is 0.048045447 or Thu Jan  1 00:00:00 1970*



*root@sama7g5ek-sd:~# phc_ctl /dev/ptp0 freq 100000000 set 0.0 wait 10.0
get*

*phc_ctl[61700.096]: adjusted clock frequency offset to 100000000.000000ppb*

*phc_ctl[61700.101]: set clock time to 0.000000000 or Thu Jan  1 00:00:00
1970*

*phc_ctl[61710.103]: process slept for 10.000000 seconds*

*phc_ctl[61710.104]: clock time is 0.088698838 or Thu Jan  1 00:00:00 1970*

It would be great, if you could provide any information on this behaviour.
Thanks


Warm regards

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

Reply via email to