Skip to content

Hardware Clock Synchronization Issue(NXP LS1021A TSN Switch) #3

@saiguvvala

Description

@saiguvvala

Hi,
I am working on the NXP LS1021A TSN switch and facing issues while trying to sync the hardware clock of NXP switch with other different board. I am getting high offset values while using PTP4L commands. Can you help me out by providing the information about decreasing the offset values.

I have run the commands ptp4l -i eth0 -m on the master device and ptp4l -i eth0 -m -s on the slave device
Output log:
ptp4l[2670.323]: selected /dev/ptp0 as PTP clock
ptp4l[2670.344]: port 1: INITIALIZING to LISTENING on INITIALIZE
ptp4l[2670.344]: port 0: INITIALIZING to LISTENING on INITIALIZE
ptp4l[2671.907]: port 1: new foreign master 00049f.fffe.ef0606-1
ptp4l[2675.908]: selected best master clock 00049f.fffe.ef0606
ptp4l[2675.908]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[2677.908]: master offset 1814389063 s0 freq +1000000 path delay -11282235
ptp4l[2678.908]: master offset 1886559517 s1 freq +1000000 path delay -20511764
ptp4l[2680.908]: master offset 121269846 s2 freq +1000000 path delay -15896999
ptp4l[2680.908]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[2681.908]: master offset 184210931 s2 freq +1000000 path delay -15896999
ptp4l[2682.908]: master offset 251765244 s2 freq +1000000 path delay -20511764
ptp4l[2683.908]: master offset 314706772 s2 freq +1000000 path delay -20511764
ptp4l[2684.908]: master offset 377648525 s2 freq +1000000 path delay -20511764
ptp4l[2685.908]: master offset 440589373 s2 freq +1000000 path delay -20511764
ptp4l[2686.908]: master offset 504437035 s2 freq +1000000 path delay -21418673
ptp4l[2687.908]: master offset 567378447 s2 freq +1000000 path delay -21418673
ptp4l[2688.908]: master offset 630240205 s2 freq +1000000 path delay -21339819
ptp4l[2689.908]: master offset 693181169 s2 freq +1000000 path delay -21339819
ptp4l[2690.909]: master offset 755680662 s2 freq +1000000 path delay -20897631
ptp4l[2691.909]: master offset 818622550 s2 freq +1000000 path delay -20897631
ptp4l[2692.909]: master offset 879851362 s2 freq +1000000 path delay -19185932
ptp4l[2693.909]: master offset 944503921 s2 freq +1000000 path delay -20897631
ptp4l[2694.909]: master offset 1007954619 s2 freq +1000000 path delay -21408405
ptp4l[2695.909]: master offset 1070896194 s2 freq +1000000 path delay -21408405
ptp4l[2696.909]: master offset 1132568476 s2 freq +1000000 path delay -20138162
ptp4l[2697.909]: master offset 1194557077 s2 freq +1000000 path delay -19185932
ptp4l[2698.909]: master offset 1257321980 s2 freq +1000000 path delay -19009231
ptp4l[2699.909]: master offset 1320774158 s2 freq +1000000 path delay -19520005
ptp4l[2700.909]: master offset 1386472022 s2 freq +1000000 path delay -22276805
ptp4l[2701.909]: master offset 1451115371 s2 freq +1000000 path delay -23979093
ptp4l[2702.909]: master offset 1512354701 s2 freq +1000000 path delay -22276805
ptp4l[2703.909]: master offset 1571665092 s2 freq +1000000 path delay -18645601
ptp4l[2704.910]: master offset 1626802503 s2 freq +1000000 path delay -10840052
ptp4l[2705.910]: master offset 1689743412 s2 freq +1000000 path delay -10840052
ptp4l[2706.910]: master offset 1751953893 s2 freq +1000000 path delay -10110519
ptp4l[2707.910]: master offset 1814895418 s2 freq +1000000 path delay -10110519

The kernel version and tag are

[root@OpenIL:misc]# uname -v
#1 SMP Fri Feb 1 17:11:55 CST 2019
[root@OpenIL:misc]# uname -r
4.14.47-ipipe
[root@OpenIL:misc]#

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions