<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Other NXP Products中的主题 LS1028ARDB time synchronization problem</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/LS1028ARDB-time-synchronization-problem/m-p/1150227#M9246</link>
    <description>&lt;P&gt;Hi, Expert&lt;/P&gt;&lt;P&gt;One question from my side about two LS1028ARDB doing time synchronization, it seems the synchronization process failed. Details as below:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;2.1 Slave gptp.cfg:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slave gptp.cfg.png" style="width: 603px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124606i5F7DF0CE0D850A58/image-size/large?v=v2&amp;amp;px=999" role="button" title="slave gptp.cfg.png" alt="slave gptp.cfg.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.2&amp;nbsp;&lt;SPAN&gt;Master gptp.cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="master gptp.cfg.png" style="width: 627px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124607i40BC913917397E41/image-size/large?v=v2&amp;amp;px=999" role="button" title="master gptp.cfg.png" alt="master gptp.cfg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3 run"PTP4L" on master and slave:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3.1 master feedback:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="master.png" style="width: 592px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124608i47A694E2AD21585D/image-size/large?v=v2&amp;amp;px=999" role="button" title="master.png" alt="master.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3.2 slave feedback:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slave.png" style="width: 641px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124609iDBEF74110708222E/image-size/large?v=v2&amp;amp;px=999" role="button" title="slave.png" alt="slave.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3.3 master swp2 capability:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="master swp2.png" style="width: 473px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124611i5DDB15DB9FAD7D7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="master swp2.png" alt="master swp2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3.4 slave swp2 capability:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slave swp2.png" style="width: 664px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124614iF5142214C0C0083F/image-size/large?v=v2&amp;amp;px=999" role="button" title="slave swp2.png" alt="slave swp2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 08:51:23 GMT</pubDate>
    <dc:creator>baiyu</dc:creator>
    <dc:date>2020-09-08T08:51:23Z</dc:date>
    <item>
      <title>LS1028ARDB time synchronization problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/LS1028ARDB-time-synchronization-problem/m-p/1150227#M9246</link>
      <description>&lt;P&gt;Hi, Expert&lt;/P&gt;&lt;P&gt;One question from my side about two LS1028ARDB doing time synchronization, it seems the synchronization process failed. Details as below:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;2.1 Slave gptp.cfg:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slave gptp.cfg.png" style="width: 603px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124606i5F7DF0CE0D850A58/image-size/large?v=v2&amp;amp;px=999" role="button" title="slave gptp.cfg.png" alt="slave gptp.cfg.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2.2&amp;nbsp;&lt;SPAN&gt;Master gptp.cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="master gptp.cfg.png" style="width: 627px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124607i40BC913917397E41/image-size/large?v=v2&amp;amp;px=999" role="button" title="master gptp.cfg.png" alt="master gptp.cfg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3 run"PTP4L" on master and slave:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3.1 master feedback:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="master.png" style="width: 592px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124608i47A694E2AD21585D/image-size/large?v=v2&amp;amp;px=999" role="button" title="master.png" alt="master.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3.2 slave feedback:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slave.png" style="width: 641px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124609iDBEF74110708222E/image-size/large?v=v2&amp;amp;px=999" role="button" title="slave.png" alt="slave.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3.3 master swp2 capability:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="master swp2.png" style="width: 473px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124611i5DDB15DB9FAD7D7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="master swp2.png" alt="master swp2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.3.4 slave swp2 capability:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="slave swp2.png" style="width: 664px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/124614iF5142214C0C0083F/image-size/large?v=v2&amp;amp;px=999" role="button" title="slave swp2.png" alt="slave swp2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52411"&gt;@yipingwang&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/LS1028ARDB-time-synchronization-problem/m-p/1150227#M9246</guid>
      <dc:creator>baiyu</dc:creator>
      <dc:date>2020-09-08T08:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: LS1028ARDB time synchronization problem</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/LS1028ARDB-time-synchronization-problem/m-p/1159967#M9473</link>
      <description>&lt;PRE&gt;Please refer to the following log.&lt;BR /&gt;board A:&lt;BR /&gt;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: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 master switch state forwarding priority 32 cost 4 
8: swp1 state LOWERLAYERDOWN @eno2: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; 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&lt;BR /&gt;&lt;BR /&gt;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: &amp;lt;NO-CARRIER,BROADCAST,MULTICAST,UP&amp;gt; mtu 1500 master switch state disabled priority 32 cost 100 
7: swp1 state UP @eno2: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; 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&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 08:29:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/LS1028ARDB-time-synchronization-problem/m-p/1159967#M9473</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-09-28T08:29:46Z</dc:date>
    </item>
  </channel>
</rss>

