器件型号: AM6422
你好!
我使用 4 个链式 AM64x 器件、我需要使用 gPTP 将每个器件同步到 GM。 我得到了这个解决方案、其中 1 号是使用 E2E 模式的 GM。 我无法使用 P2P 实现更小的抖动、

PRU_ICSSG 接口连接到 ICSSG0、方式与 Phytec AM64x phyBOARD 中的方式相同。 因此、它们不能进入 CPSW3g。 该测试使用 Phytec 最新的 Yocto (25.2.0) 和几个封装来执行。 它使用 Linux 6.12.8。
-----
为了简化设置、我从 TI 记录的示例开始、希望从这种方式开始会更轻松。 工作完成后、我会回到我需要设置的链条。 这个例子对我来说不起作用、我正在描述我所做的事情。
我使用此代码在中间的节点中启动桥接器。 桥接器工作正常、如果我愿意、我可以在极端之间转发 IP 数据包、但不将其设置为 IP 桥接器。
ip link add name br0 type bridge
ip link set dev eth1 master br0
ip link set dev eth2 master br0
ip link set dev br0 up
bridge vlan add dev br0 vid 1 pvid untagged self
然后在 gPTP 启动时、中间的节点具有更高的 (100) 优先级、如链接示例所示。 并且命令和配置与示例中的命令和配置相同。
当中间的桥接节点启动时、它将成为右侧节点的主节点、该节点在启动后立即启动(连接到 eth2)、直到左侧节点启动、同步中断。 桥接器日志:
ptp4l[1134.992]: selected /dev/ptp2 as PTP clock
ptp4l[1135.008]: port 1 (eth1): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1135.032]: port 2 (eth2): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1135.033]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1135.033]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1138.109]: port 2 (eth2): LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[1138.109]: selected local clock 1a61e8.fffe.0e03f6 as best master
ptp4l[1138.109]: port 2 (eth2): assuming the grand master role
ptp4l[1138.946]: port 1 (eth1): LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[1138.946]: port 1 (eth1): assuming the grand master role
ptp4l[1138.946]: port 2 (eth2): assuming the grand master role
ptp4l[1150.515]: port 2 (eth2): new foreign master eec20f.fffe.e01eba-1
当我在另一个极端启动节点时、电桥右侧的节点开始同步并停止。
ptp4l[1153.558]: selected /dev/ptp2 as PTP clock
ptp4l[1153.570]: port 1 (eth1): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1153.571]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1153.571]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1156.906]: port 1 (eth1): new foreign master 1a61e8.fffe.0e03f6-2
ptp4l[1157.309]: port 1 (eth1): LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[1157.309]: selected local clock eec20f.fffe.e01eba as best master
ptp4l[1157.309]: port 1 (eth1): assuming the grand master role
ptp4l[1158.906]: selected best master clock 1a61e8.fffe.0e03f6
ptp4l[1158.906]: port 1 (eth1): MASTER to UNCALIBRATED on RS_SLAVE
ptp4l[1159.787]: port 1 (eth1): UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[1160.537]: rms 2156 max 2858 freq -5055 +/- 1485 delay 72 +/- 0
ptp4l[1161.538]: rms 400 max 619 freq -6371 +/- 539 delay 72 +/- 0
ptp4l[1162.538]: rms 664 max 703 freq -7569 +/- 175 delay 72 +/- 0
ptp4l[1163.538]: rms 420 max 559 freq -7801 +/- 18 delay 72 +/- 0
ptp4l[1164.539]: rms 136 max 225 freq -7674 +/- 47 delay 71 +/- 0
ptp4l[1165.539]: rms 25 max 39 freq -7532 +/- 32 delay 71 +/- 0
ptp4l[1166.539]: rms 39 max 45 freq -7465 +/- 13 delay 71 +/- 0
ptp4l[1166.804]: port 1 (eth1): multiple peer responses
ptp4l[1166.804]: port 1 (eth1): rogue peer delay response
ptp4l[1166.804]: port 1 (eth1): SLAVE to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[1182.844]: port 1 (eth1): FAULTY to LISTENING on INIT_COMPLETE
ptp4l[1183.802]: port 1 (eth1): rogue peer delay response
ptp4l[1183.802]: port 1 (eth1): LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[1199.842]: port 1 (eth1): FAULTY to LISTENING on INIT_COMPLETE
ptp4l[1200.800]: port 1 (eth1): rogue peer delay response
ptp4l[1200.800]: port 1 (eth1): LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED
左侧的节点在启动时不同步、只会开始产生问题。
ptp4l[1171.593]: selected /dev/ptp2 as PTP clock
ptp4l[1171.604]: port 1 (eth2): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1171.605]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1171.605]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1174.727]: port 1 (eth2): LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[1174.727]: selected local clock 5e17b3.fffe.d5675b as best master
ptp4l[1174.727]: port 1 (eth2): assuming the grand master role
ptp4l[1188.606]: port 1 (eth2): multiple peer responses
ptp4l[1188.606]: port 1 (eth2): received pdelay_resp msg with unexpected peer port id eec20f.fffe.e01eba-1
ptp4l[1205.607]: port 1 (eth2): multiple peer responses
ptp4l[1205.607]: port 1 (eth2): received pdelay_resp msg with unexpected peer port id eec20f.fffe.e01eba-1
什么是我的缺失? 谢谢!




