Hi, I'm trying to setup a device as the grand master clock, we using an imx6 dual lite which has ieee 1588 support in the enet controller. This is connected to a 7-port switch (no ptp support), and this switch is configured via bridge interface br0.
What I had a problem with was receiving packets on the master (delay request) from a slave device, I noticed that ptp4l actually binds the socket to the interface specified from the command for example: $ ptp4l -A -H -4 -I eth0 ptp4l will bind to eth0 and also joins the multicast group on eth0, In my case I must use eth0 as it has the ptp hardware support. But to receive packets through the bridge interface I need to bind instead to br0 and join the multicast group on br0. From what I see after doing this I can successfully receive the slave's packets on the master device, does this change make sense for my circumstances? Another thing was the Sync and Delay_Req messages had 0 in the timestamp values, I attached a capture for example. Though when I run phc2sys on my slave the system clock does seem to get synchronized to the time on the master, which leads me to think everything is functioning OK? I also attached logs of the commands from slave and master. Thanks, Rob C
rc-ptp4l-0.pcap
Description: rc-ptp4l-0.pcap
SLAVE OUTPUT: $ ptp4l -s -A -H -4 -i eth0 -m & $ ptp4l[24740.751]: selected /dev/ptp0 as PTP clock ptp4l[24740.758]: driver changed our HWTSTAMP options ptp4l[24740.760]: tx_type 1 not 1 ptp4l[24740.762]: rx_filter 1 not 12 ptp4l[24740.764]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[24740.767]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[24740.768]: port 1: link up ptp4l[24741.595]: port 1: new foreign master 00143e.fffe.10842f-1 ptp4l[24745.595]: selected best master clock 00143e.fffe.10842f ptp4l[24745.598]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[24747.595]: master offset -22100 s0 freq -22092 path delay -16108 ptp4l[24748.596]: master offset -27841 s1 freq -27832 path delay -16104 ptp4l[24750.596]: master offset 10865 s2 freq -16967 path delay -16108 ptp4l[24750.598]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED ptp4l[24751.596]: master offset 8369 s2 freq -16203 path delay -16108 ptp4l[24752.596]: master offset 4379 s2 freq -17683 path delay -16101 ptp4l[24753.597]: master offset -2559 s2 freq -23307 path delay -15958 ptp4l[24754.597]: master offset -3097 s2 freq -24613 path delay -15958 ptp4l[24755.597]: master offset -132 s2 freq -22577 path delay -16101 ptp4l[24756.597]: master offset -753 s2 freq -23237 path delay -16104 ptp4l[24757.597]: master offset 799 s2 freq -21911 path delay -16706 ptp4l[24758.597]: master offset 716 s2 freq -21755 path delay -17351 ptp4l[24759.598]: master offset 3669 s2 freq -18587 path delay -17419 ptp4l[24760.598]: master offset -11673 s2 freq -32828 path delay -17351 MASTER OUTPUT: $ ptp4l[7573.109]: selected /dev/ptp0 as PTP clock testing printf ptp4l[7573.117]: ROBS_TAG: open_socket: binding to br0 ptp4l[7573.119]: index: 16 ptp4l[7573.121]: ROBS_TAG: open_socket: binding to br0 ptp4l[7573.123]: index: 16 ptp4l[7573.125]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[7573.127]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[7579.223]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES ptp4l[7579.224]: selected local clock 00143e.fffe.10842f as best master ptp4l[7579.224]: assuming the grand master role PHC2SYS ON SLAVE OUTPUT: $ phc2sys -a -r -m & $ phc2sys[24792.947]: reconfiguring after port state change phc2sys[24792.950]: selecting CLOCK_REALTIME for synchronization phc2sys[24792.952]: selecting eth0 as the master clock phc2sys[24792.954]: phc offset 56106244 s0 freq -31150 delay 4000 phc2sys[24793.955]: phc offset 56115635 s1 freq -21763 delay 4000 phc2sys[24794.955]: phc offset 4353 s2 freq -17410 delay 4000 phc2sys[24795.956]: phc offset 2186 s2 freq -18271 delay 4000 phc2sys[24796.957]: phc offset -4551 s2 freq -24352 delay 4000 phc2sys[24797.957]: phc offset -5897 s2 freq -27063 delay 4000 phc2sys[24798.958]: phc offset 1490 s2 freq -21445 delay 4000 phc2sys[24799.958]: phc offset 3896 s2 freq -18592 delay 4000 phc2sys[24800.959]: phc offset -1907 s2 freq -23227 delay 4000 phc2sys[24801.959]: phc offset -3407 s2 freq -25299 delay 4000 phc2sys[24802.960]: phc offset -905 s2 freq -23819 delay 4000 phc2sys[24803.960]: phc offset 1218 s2 freq -21967 delay 4000 phc2sys[24804.961]: phc offset 1233 s2 freq -21587 delay 4000
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users