Tool/software: Linux
SDK: Linux RT SDK 5.02
Device: AM571x IDK
We tried to run PTP daemon on both interfaces of PRU ETH. When both interfaces are connected and receiving PTP messages, none of the two PTP daemon work. It works only when other interfaces is removed:
On interface eth2, ptp4l daemon is started. At this point of time, eth3 is not connected.
root@am57xx-evm:~# ptp4l -2 -P -f oc-eth2.cfg -s -m
ptp4l[1840.355]: selected /dev/ptp2 as PTP clock
ptp4l[1840.410]: port 1 (eth2): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1840.412]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1840.843]: port 1: new foreign master 001d7f.fffe.104ec2-1
ptp4l[1842.843]: selected best master clock 001d7f.fffe.104ec2 on port 1
ptp4l[1842.844]: port 1 (eth2): LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[1843.850]: master offset -71744 s0 freq -6449 path delay 587
ptp4l[1844.850]: master offset -71821 s1 freq -6526 path delay 589
ptp4l[1845.850]: master offset -53 s2 freq -6579 path delay 591
ptp4l[1845.851]: port 1 (eth2): UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[1846.850]: master offset 12 s2 freq -6530 path delay 590
ptp4l[1847.850]: master offset -29 s2 freq -6567 path delay 593
ptp4l[1848.850]: master offset -45 s2 freq -6592 path delay 592
...
ptp4l[1881.849]: master offset 5 s2 freq -6548 path delay 589
ptp4l[1882.849]: master offset 15 s2 freq -6537 path delay 587
ptp4l[1883.849]: master offset 27 s2 freq -6520 path delay 589
ptp4l[1884.824]: port 1: multiple peer responses <--------------------------- This is when eth3 is connected.
ptp4l[1884.824]: port 1: rogue peer delay response
ptp4l[1884.824]: port 1 (eth2): SLAVE to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[1900.942]: port 1 (eth2): FAULTY to LISTENING on INIT_COMPLETE
ptp4l[1901.066]: port 1: rogue peer delay response
ptp4l[1901.067]: port 1 (eth2): LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[1917.182]: port 1 (eth2): FAULTY to LISTENING on INIT_COMPLETE
ptp4l[1917.306]: port 1: rogue peer delay response
ptp4l[1917.306]: port 1 (eth2): LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
On interface eth3: ptp4l daemon was started together with daemon on eth2, but network cable on eth3 was disconnected.
root@am57xx-evm:~# ptp4l -2 -P -f oc-eth3.cfg -s -m
ptp4l[1851.388]: selected /dev/ptp2 as PTP clock
ptp4l[1851.450]: port 1 (eth3): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1851.452]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[1851.454]: port 1: link down
ptp4l[1851.455]: port 1 (eth3): LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[1851.510]: selected best master clock 70ff76.fffe.1c0ee6
ptp4l[1868.611]: port 1: link up
ptp4l[1868.670]: port 1 (eth3): FAULTY to LISTENING on INIT_COMPLETE
ptp4l[1868.685]: port 1: rogue peer delay response
ptp4l[1868.686]: port 1 (eth3): LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[1884.800]: port 1 (eth3): FAULTY to LISTENING on INIT_COMPLETE