LS1028ARDB time synchronization problem

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

LS1028ARDB time synchronization problem

700 Views
baiyu
Contributor I

Hi, Expert

One question from my side about two LS1028ARDB doing time synchronization, it seems the synchronization process failed. Details as below:

1. run "enetc_switch_cpu_port_with_bridge_without_ns.sh" on two LS1028ARDB separately, that means configure the boards to bridge mode. the system time and hardware time difference is 7days.

2. the swp2 port is connected directly between the two boards, run"ptp4l -i swp2 -f /etc/ptp4l_cfg/gPTP.cfg -m" separately on the two boards, the result shows they are not synchronized. detail configurations for time synchronization as below:

2.1 Slave gptp.cfg:

slave gptp.cfg.png

2.2 Master gptp.cfg

master gptp.cfg.png

2.3 run"PTP4L" on master and slave:

2.3.1 master feedback:

master.png

2.3.2 slave feedback:

slave.png

2.3.3 master swp2 capability:

master swp2.png

2.3.4 slave swp2 capability:

slave swp2.png

@yipingwang 

0 Kudos
1 Reply

680 Views
yipingwang
NXP TechSupport
NXP TechSupport
Please refer to the following log.
board A:
root@localhost:~# ls /sys/bus/pci/devices/0000:00:00.5/net/ swp0 swp1 swp2 swp3 root@localhost:~# ip link add name switch type bridge root@localhost:~# ip link set switch up root@localhost:~# ip link set swp0 down root@localhost:~# ip link set swp0 up root@localhost:~# ip link set swp1 down root@localhost:~# ip link set swp1 up root@localhost:~# ip link set swp0 master switch root@localhost:~# ip link set swp1 master switch root@localhost:~# bridge link 7: swp0 state UP @eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master switch state forwarding priority 32 cost 4 8: swp1 state LOWERLAYERDOWN @eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 master switch state disabled priority 32 cost 100 root@localhost:~# ifconfig switch 1.1.1.1 netmask 255.255.255.0 root@localhost:~# ethtool -T swp0 |grep --color=never "PTP Hardware Clock" PTP Hardware Clock: 1 root@localhost:~# ping 1.1.1.2 -c 10 PING 1.1.1.2 (1.1.1.2): 56 data bytes 64 bytes from 1.1.1.2: icmp_seq=0 ttl=64 time=0.748 ms 64 bytes from 1.1.1.2: icmp_seq=1 ttl=64 time=0.470 ms round-trip min/avg/max/stddev = 0.464/0.511/0.748/0.081 ms root@localhost:~# ptp4l -i swp0 -p /dev/ptp1 -2 -m ptp4l[387.417]: selected /dev/ptp1 as PTP clock ptp4l[387.452]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[387.452]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[387.453]: port 1: link up ptp4l[393.514]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[393.514]: selected best master clock 00e00c.fffe.001302 ptp4l[393.514]: assuming the grand master role ptp4l[394.361]: port 1: new foreign master 00e00c.fffe.001602-1 ptp4l[462.401]: port 1: link down ptp4l[462.401]: port 1: MASTER to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED) ptp4l[462.436]: port 1: link down

board B: root@localhost:~# ls /sys/bus/pci/devices/0000:00:00.5/net/ swp0 swp1 swp2 swp3 root@localhost:~# ip link add name switch type bridge root@localhost:~# ip link set switch up root@localhost:~# ip link set swp0 down root@localhost:~# ip link set swp0 up root@localhost:~# ip link set swp1 down root@localhost:~# ip link set swp1 up root@localhost:~# ip link set swp0 master switch root@localhost:~# ip link set swp1 master switch root@localhost:~# bridge link 6: swp0 state LOWERLAYERDOWN @eno2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 master switch state disabled priority 32 cost 100 7: swp1 state UP @eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master switch state forwarding priority 32 cost 4 root@localhost:~# ifconfig switch 1.1.1.2 netmask 255.255.255.0 root@localhost:~# ethtool -T swp0 |grep --color=never "PTP Hardware Clock" PTP Hardware Clock: 1 root@localhost:~# ping 1.1.1.1 -c 10 PING 1.1.1.1 (1.1.1.1): 56 data bytes 64 bytes from 1.1.1.1: icmp_seq=0 ttl=64 time=0.524 ms 64 bytes from 1.1.1.1: icmp_seq=1 ttl=64 time=0.489 ms root@localhost:~# ptp4l -i swp1 -p /dev/ptp1 -2 -m ptp4l[280.895]: selected /dev/ptp1 as PTP clock ptp4l[280.932]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[280.932]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[280.933]: port 1: link up ptp4l[286.927]: port 1: new foreign master 00e00c.fffe.001302-1 ptp4l[287.771]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[287.771]: selected best master clock 00e00c.fffe.001602 ptp4l[287.772]: assuming the grand master role ptp4l[290.927]: selected best master clock 00e00c.fffe.001302 ptp4l[290.927]: port 1: MASTER to UNCALIBRATED on RS_SLAVE ptp4l[291.927]: master offset -106310946035 s0 freq +0 path delay 0 ptp4l[292.927]: master offset -106310950168 s1 freq -4132 path delay 2337 ptp4l[294.927]: master offset -7002 s2 freq -11134 path delay 1932

 

0 Kudos