PTP frequency correction on i.MX7Dual Sabre board does not work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PTP frequency correction on i.MX7Dual Sabre board does not work

719 Views
aleks_007
Contributor I

Hi,

I have yocto 6.18-whinlatter build on imx7dsabresd. Board eth1 is connected directly to Gb Eth port on ubuntu pc acting as GMC.

Setup: timestamp: hardware, L2, E2E (same on both sides). Tried also P2P without any change.

Status: 

  • ptp4l itself is running and processing traffic
  • ptp4l itself is running and processing traffic
  • L2 transport is at least partially working
  • The servo loop is running (but not converging)
  • Clock adjustment interface is reachable

What is not working

  • No real synchronization (offset ~70 seconds)
  • No servo convergence

Output from sabre board:

journalctl -u ptp4l -f
Apr 22 17:09:40 sabre ptp4l[2464]: ptp4l[155781.900]: rms 71226758544 max 71226804804 freq +7663667 +/- 0 delay -116854 +/- 0
Apr 22 17:09:41 sabre ptp4l[2464]: ptp4l[155783.700]: rms 71228752192 max 71229030928 freq +7663667 +/- 0 delay -132657 +/- 0
Apr 22 17:09:43 sabre ptp4l[2464]: ptp4l[155785.500]: rms 71228944076 max 71229050017 freq +7663667 +/- 0 delay -77441 +/- 55216
Apr 22 17:09:45 sabre ptp4l[2464]: ptp4l[155787.300]: rms 71229661065 max 71230564551 freq +7663667 +/- 0 delay 1673 +/- 0
Apr 22 17:09:47 sabre ptp4l[2464]: ptp4l[155789.101]: rms 71231298512 max 71231338212 freq +7663667 +/- 0 delay 1673 +/- 0
Apr 22 17:09:49 sabre ptp4l[2464]: ptp4l[155790.901]: rms 71231204103 max 71231241274 freq +7663667 +/- 0 delay 1673 +/- 0
Apr 22 17:09:50 sabre ptp4l[2464]: ptp4l[155792.701]: rms 70167499092 max 71233271909 freq +7663667 +/- 0 delay -4187 +/- 0
Apr 22 17:09:52 sabre ptp4l[2464]: ptp4l[155794.501]: rms 71233298545 max 71233330758 freq +7663667 +/- 0 delay -3246 +/- 941
Apr 22 17:09:54 sabre ptp4l[2464]: ptp4l[155796.301]: rms 71233259853 max 71233297985 freq +7663667 +/- 0 delay 1846 +/- 0
Apr 22 17:09:56 sabre ptp4l[2464]: ptp4l[155798.102]: rms 71235540484 max 71235852602 freq +7663667 +/- 0 delay -6786 +/- 1960

 

Question: Was anyone being able to get PTP with L2 transport (E2E or P2P) working on imx7dsabresd?

 

0 Kudos
Reply
2 Replies

676 Views
kef2
Senior Contributor V

ptp4l synchronizes PTP clocks. phc2sys is used to synchronize system clock to PTP clock.

0 Kudos
Reply

602 Views
aleks_007
Contributor I

Yes, both services are running, but still with offset

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2354815%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPTP%20frequency%20correction%20on%20i.MX7Dual%20Sabre%20board%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2354815%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20have%20yocto%26nbsp%3B6.18-whinlatter%20build%20on%26nbsp%3Bimx7dsabresd.%20Board%20eth1%20is%20connected%20directly%20to%20Gb%20Eth%20port%20on%20ubuntu%20pc%20acting%20as%20GMC.%3C%2FP%3E%3CP%3ESetup%3A%20timestamp%3A%20hardware%2C%20L2%2C%20E2E%20(same%20on%20both%20sides).%20Tried%20also%20P2P%20without%20any%20change.%3C%2FP%3E%3CP%3EStatus%3A%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3Eptp4l%20itself%20is%20running%20and%20processing%20traffic%3C%2FLI%3E%3CLI%3Eptp4l%20itself%20is%20running%20and%20processing%20traffic%3C%2FLI%3E%3CLI%3EL2%20transport%20is%20at%20least%20partially%20working%3C%2FLI%3E%3CLI%3EThe%20servo%20loop%20is%20running%20(but%20not%20converging)%3C%2FLI%3E%3CLI%3EClock%20adjustment%20interface%20is%20reachable%3C%2FLI%3E%3C%2FUL%3E%3CP%3EWhat%20is%20not%20working%3C%2FP%3E%3CUL%3E%3CLI%3ENo%20real%20synchronization%20(offset%20~70%20seconds)%3C%2FLI%3E%3CLI%3ENo%20servo%20convergence%3C%2FLI%3E%3C%2FUL%3E%3CP%3EOutput%20from%20sabre%20board%3A%3C%2FP%3E%3CPRE%3E%3CFONT%20size%3D%222%22%3Ejournalctl%20-u%20ptp4l%20-f%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A40%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155781.900%5D%3A%20rms%2071226758544%20max%2071226804804%20freq%20%2B7663667%20%2B%2F-%200%20delay%20-116854%20%2B%2F-%200%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A41%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155783.700%5D%3A%20rms%2071228752192%20max%2071229030928%20freq%20%2B7663667%20%2B%2F-%200%20delay%20-132657%20%2B%2F-%200%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A43%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155785.500%5D%3A%20rms%2071228944076%20max%2071229050017%20freq%20%2B7663667%20%2B%2F-%200%20delay%20-77441%20%2B%2F-%2055216%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A45%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155787.300%5D%3A%20rms%2071229661065%20max%2071230564551%20freq%20%2B7663667%20%2B%2F-%200%20delay%201673%20%2B%2F-%200%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A47%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155789.101%5D%3A%20rms%2071231298512%20max%2071231338212%20freq%20%2B7663667%20%2B%2F-%200%20delay%201673%20%2B%2F-%200%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A49%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155790.901%5D%3A%20rms%2071231204103%20max%2071231241274%20freq%20%2B7663667%20%2B%2F-%200%20delay%201673%20%2B%2F-%200%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A50%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155792.701%5D%3A%20rms%2070167499092%20max%2071233271909%20freq%20%2B7663667%20%2B%2F-%200%20delay%20-4187%20%2B%2F-%200%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A52%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155794.501%5D%3A%20rms%2071233298545%20max%2071233330758%20freq%20%2B7663667%20%2B%2F-%200%20delay%20-3246%20%2B%2F-%20941%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A54%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155796.301%5D%3A%20rms%2071233259853%20max%2071233297985%20freq%20%2B7663667%20%2B%2F-%200%20delay%201846%20%2B%2F-%200%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3EApr%2022%2017%3A09%3A56%20sabre%20ptp4l%5B2464%5D%3A%20ptp4l%5B155798.102%5D%3A%20rms%2071235540484%20max%2071235852602%20freq%20%2B7663667%20%2B%2F-%200%20delay%20-6786%20%2B%2F-%201960%3C%2FFONT%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3EQuestion%3A%26nbsp%3BWas%20anyone%20being%20able%20to%20get%20PTP%20with%20L2%20transport%20(E2E%20or%20P2P)%20working%20on%26nbsp%3Bimx7dsabresd%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2356169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PTP%20frequency%20correction%20on%20i.MX7Dual%20Sabre%20board%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2356169%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYes%2C%20both%20services%20are%20running%2C%20but%20still%20with%20offset%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PTP%20frequency%20correction%20on%20i.MX7Dual%20Sabre%20board%20does%20not%20work%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eptp4l%20synchronizes%20PTP%20clocks.%20phc2sys%20is%20used%20to%20synchronize%20system%20clock%20to%20PTP%20clock.%3C%2FP%3E%3C%2FLINGO-BODY%3E