DART-MX8M Eth IEEE.1588: Difference between revisions
From Variscite Wiki
(Created page with "{{PageHeader|IEE1588 Hardware Timestamp}} {{DocImage|category1=Yocto|category2=DART-MX8M}}Category: DART-MXM8M __toc__ = Overview of IEE1588 Hardware Timestamping = * All...") |
|||
Line 78: | Line 78: | ||
Yocto build already contains the ptp4l required resoureces on the target. | Yocto build already contains the ptp4l required resoureces on the target. | ||
<pre> | <pre> | ||
root@ | root@imx8m-var-dart:~# ptp4l -H -A -l 7 -q -i eth0 -m -s & | ||
ptp4l[ | ptp4l[787.055]: config item (null).assume_two_step is 0 | ||
ptp4l[ | ptp4l[787.055]: config item (null).check_fup_sync is 0 | ||
ptp4l[ | ptp4l[787.055]: config item (null).tx_timestamp_timeout is 1 | ||
ptp4l[ | ptp4l[787.055]: config item (null).clockClass is 248 | ||
ptp4l[ | ptp4l[787.055]: config item (null).clockAccuracy is 254 | ||
ptp4l[ | ptp4l[787.055]: config item (null).offsetScaledLogVariance is 65535 | ||
ptp4l[ | ptp4l[787.055]: config item (null).productDescription is ';;' | ||
ptp4l[ | ptp4l[787.055]: config item (null).revisionData is ';;' | ||
ptp4l[ | ptp4l[787.056]: config item (null).userDescription is '' | ||
ptp4l[ | ptp4l[787.056]: config item (null).manufacturerIdentity is '00:00:00' | ||
ptp4l[ | ptp4l[787.056]: config item (null).domainNumber is 0 | ||
ptp4l[ | ptp4l[787.056]: config item (null).slaveOnly is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).twoStepFlag is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).priority1 is 128 | ||
ptp4l[ | ptp4l[787.056]: config item (null).priority2 is 128 | ||
ptp4l[ | ptp4l[787.056]: config item (null).gmCapable is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).gmCapable is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).clock_servo is 0 | ||
ptp4l[ | ptp4l[787.056]: config item (null).time_stamping is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).free_running is 0 | ||
ptp4l[ | ptp4l[787.056]: config item (null).time_stamping is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).time_stamping is 1 | ||
ptp4l[ | ptp4l[787.056]: selected /dev/ptp0 as PTP clock | ||
ptp4l[ | ptp4l[787.056]: config item (null).time_stamping is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).clock_servo is 0 | ||
ptp4l[ | ptp4l[787.056]: config item (null).uds_address is '/var/run/ptp4l' | ||
ptp4l[ | ptp4l[787.056]: section item /var/run/ptp4l.delay_mechanism now 0 | ||
ptp4l[ | ptp4l[787.056]: section item /var/run/ptp4l.network_transport now 0 | ||
ptp4l[ | ptp4l[787.056]: section item /var/run/ptp4l.delay_filter_length now 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).free_running is 0 | ||
ptp4l[ | ptp4l[787.056]: config item (null).freq_est_interval is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).gmCapable is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).kernel_leap is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).timeSource is 160 | ||
ptp4l[ | ptp4l[787.056]: config item (null).pi_proportional_const is 0.000000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).pi_integral_const is 0.000000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).pi_proportional_scale is 0.000000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).pi_proportional_exponent is -0.300000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).pi_proportional_norm_max is 0.700000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).pi_integral_scale is 0.000000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).pi_integral_exponent is 0.400000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).pi_integral_norm_max is 0.300000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).step_threshold is 0.000000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).first_step_threshold is 0.000020 | ||
ptp4l[ | ptp4l[787.056]: config item (null).max_frequency is 900000000 | ||
ptp4l[ | ptp4l[787.056]: config item (null).tsproc_mode is 0 | ||
ptp4l[ | ptp4l[787.056]: config item (null).delay_filter is 1 | ||
ptp4l[ | ptp4l[787.056]: config item (null).delay_filter_length is 10 | ||
ptp4l[ | ptp4l[787.056]: config item (null).summary_interval is 0 | ||
ptp4l[ | ptp4l[787.056]: config item (null).sanity_freq_limit is 200000000 | ||
ptp4l[ | ptp4l[787.056]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.boundary_clock_jbod is 0 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.network_transport is 0 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.delayAsymmetry is 0 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.follow_up_info is 0 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.freq_est_interval is 1 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.hybrid_e2e is 0 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.path_trace_enabled is 0 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.ingressLatency is 0 | ||
ptp4l[ | ptp4l[787.056]: config item /var/run/ptp4l.egressLatency is 0 | ||
ptp4l[ | ptp4l[787.057]: config item /var/run/ptp4l.delay_mechanism is 0 | ||
ptp4l[ | ptp4l[787.057]: config item /var/run/ptp4l.fault_badpeernet_interval is 16 | ||
ptp4l[ | ptp4l[787.057]: config item /var/run/ptp4l.fault_reset_interval is 4 | ||
ptp4l[ | ptp4l[787.057]: config item /var/run/ptp4l.tsproc_mode is 0 | ||
ptp4l[ | ptp4l[787.057]: config item /var/run/ptp4l.delay_filter is 1 | ||
ptp4l[ | ptp4l[787.057]: config item /var/run/ptp4l.delay_filter_length is 1 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.boundary_clock_jbod is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.network_transport is 1 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.delayAsymmetry is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.follow_up_info is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.freq_est_interval is 1 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.hybrid_e2e is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.path_trace_enabled is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.ingressLatency is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.egressLatency is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.delay_mechanism is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.fault_badpeernet_interval is 16 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.fault_reset_interval is 4 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.tsproc_mode is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.delay_filter is 1 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.delay_filter_length is 10 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.logMinDelayReqInterval is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.logAnnounceInterval is 1 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.announceReceiptTimeout is 3 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.syncReceiptTimeout is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.transportSpecific is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.logSyncInterval is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.logMinPdelayReqInterval is 0 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.neighborPropDelayThresh is 20000000 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.min_neighbor_prop_delay is -20000000 | ||
ptp4l[ | ptp4l[787.057]: config item eth0.udp_ttl is 1 | ||
ptp4l[ | ptp4l[787.057]: driver changed our HWTSTAMP options | ||
ptp4l[ | ptp4l[787.058]: tx_type 1 not 1 | ||
ptp4l[787.058]: rx_filter 1 not 12 | |||
ptp4l[787.058]: port 1: INITIALIZING to LISTENING on INITIALIZE | |||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.logMinDelayReqInterval is 0 | ||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.logAnnounceInterval is 1 | ||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.announceReceiptTimeout is 3 | ||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.syncReceiptTimeout is 0 | ||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.transportSpecific is 0 | ||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.logSyncInterval is 0 | ||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.logMinPdelayReqInterval is 0 | ||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.neighborPropDelayThresh is 20000000 | ||
ptp4l[ | ptp4l[787.058]: config item /var/run/ptp4l.min_neighbor_prop_delay is -20000000 | ||
ptp4l[ | ptp4l[787.058]: config item (null).uds_address is '/var/run/ptp4l' | ||
ptp4l[ | ptp4l[787.058]: port 0: INITIALIZING to LISTENING on INITIALIZE | ||
ptp4l[ | ptp4l[787.088]: port 1: setting asCapable | ||
ptp4l[ | ptp4l[788.070]: port 1: new foreign master 1831bf.fffe.e0ee96-1 | ||
ptp4l[ | ptp4l[792.072]: selected best master clock 1831bf.fffe.e0ee96 | ||
ptp4l[ | ptp4l[792.073]: foreign master not using PTP timescale | ||
ptp4l[ | ptp4l[792.073]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE | ||
ptp4l[ | ptp4l[792.337]: port 1: delay timeout | ||
ptp4l[ | ptp4l[792.338]: delay filtered 253400 raw 253400 | ||
ptp4l[793.093]: master offset -18761 s0 freq +17431 path delay 253400 | |||
ptp4l[793.161]: port 1: delay timeout | |||
ptp4l[793.163]: delay filtered 250342 raw 247284 | |||
ptp4l[794.093]: master offset -15677 s2 freq +20514 path delay 250342 | |||
ptp4l[794.093]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED | |||
ptp4l[794.832]: port 0: announce timeout | |||
ptp4l[794.832]: config item (null).uds_address is '/var/run/ptp4l' | |||
ptp4l[795.071]: port 1: delay timeout | |||
ptp4l[795.072]: delay filtered 247284 raw 245531 | |||
ptp4l[795.094]: master offset -17111 s2 freq +3403 path delay 247284 | |||
ptp4l[796.095]: master offset -2342 s2 freq +13038 path delay 247284 | |||
ptp4l[796.824]: port 1: delay timeout | |||
ptp4l[796.826]: delay filtered 246596 raw 245908 | |||
ptp4l[797.095]: master offset 2292 s2 freq +16970 path delay 246596 | |||
ptp4l[798.096]: master offset 2230 s2 freq +17595 path delay 246596 | |||
ptp4l[798.297]: port 1: delay timeout | |||
ptp4l[798.298]: delay filtered 247284 raw 247840 | |||
ptp4l[799.096]: master offset 1817 s2 freq +17851 path delay 247284 | |||
ptp4l[800.098]: master offset 664 s2 freq +17243 path delay 247284 | |||
ptp4l[800.245]: port 1: delay timeout | |||
ptp4l[800.247]: delay filtered 247323 raw 247362 | |||
ptp4l[800.854]: port 1: delay timeout | |||
ptp4l[800.856]: delay filtered 247362 raw 247863 | |||
ptp4l[800.960]: port 1: delay timeout | |||
ptp4l[800.962]: delay filtered 247323 raw 245850 | |||
ptp4l[800.989]: port 1: delay timeout | |||
ptp4l[800.991]: delay filtered 247284 raw 244362 | |||
ptp4l[801.098]: master offset 946 s2 freq +17725 path delay 247284 | |||
ptp4l[802.099]: master offset 58 s2 freq +17120 path delay 247284 | |||
ptp4l[802.259]: port 1: delay timeout | |||
ptp4l[802.260]: delay filtered 246596 raw 75420 | |||
ptp4l[802.805]: port 0: announce timeout | |||
ptp4l[802.805]: config item (null).uds_address is '/var/run/ptp4l' | |||
ptp4l[802.883]: port 1: delay timeout | |||
ptp4l[802.885]: delay filtered 245879 raw 245209 | |||
ptp4l[803.100]: master offset 1841 s2 freq +18921 path delay 245879 | |||
ptp4l[803.552]: port 0: setting asCapable | |||
ptp4l[803.869]: port 1: delay timeout | |||
ptp4l[803.871]: delay filtered 245740 raw 245631 | |||
ptp4l[804.100]: master offset -447 s2 freq +17185 path delay 245740 | |||
ptp4l[805.101]: master offset 473 s2 freq +17971 path delay 245740 | |||
ptp4l[805.657]: port 1: delay timeout | |||
ptp4l[805.658]: delay filtered 245879 raw 248128 | |||
ptp4l[806.088]: port 1: delay timeout | |||
ptp4l[806.089]: delay filtered 245740 raw 76947 | |||
ptp4l[806.102]: master offset -206 s2 freq +17434 path delay 245740 | |||
ptp4l[807.102]: master offset -205 s2 freq +17373 path delay 245740 | |||
ptp4l[807.310]: port 1: delay timeout | |||
ptp4l[807.311]: delay filtered 245740 raw 246000 | |||
ptp4l[808.102]: master offset -716 s2 freq +16801 path delay 245740 | |||
ptp4l[809.102]: master offset 152 s2 freq +17454 path delay 245740 | |||
ptp4l[809.227]: port 1: delay timeout | |||
ptp4l[809.229]: delay filtered 245740 raw 248291 | |||
ptp4l[809.253]: port 1: delay timeout | |||
ptp4l[809.255]: delay filtered 245740 raw 247458 | |||
ptp4l[809.483]: port 0: announce timeout | |||
ptp4l[809.484]: config item (null).uds_address is '/var/run/ptp4l' | |||
ptp4l[810.103]: master offset -202 s2 freq +17145 path delay 245740 | |||
ptp4l[810.943]: port 1: delay timeout | |||
ptp4l[810.945]: delay filtered 245815 raw 251457 | |||
ptp4l[811.104]: master offset -264 s2 freq +17023 path delay 245815 | |||
ptp4l[811.458]: port 1: delay timeout | |||
ptp4l[811.459]: delay filtered 246729 raw 249939 | |||
ptp4l[812.104]: master offset -1414 s2 freq +15794 path delay 246729 | |||
ptp4l[812.389]: port 1: delay timeout | |||
ptp4l[812.390]: delay filtered 246729 raw 244940 | |||
ptp4l[812.806]: port 1: delay timeout | |||
ptp4l[812.809]: delay filtered 246729 raw 244842 | |||
ptp4l[813.104]: master offset 560 s2 freq +17343 path delay 246729 | |||
ptp4l[814.105]: master offset 68 s2 freq +17019 path delay 246729 | |||
ptp4l[814.714]: port 1: delay timeout | |||
ptp4l[814.716]: delay filtered 246729 raw 244296 | |||
ptp4l[814.884]: port 1: delay timeout | |||
ptp4l[814.886]: delay filtered 246641 raw 247283 | |||
ptp4l[815.105]: master offset 932 s2 freq +17904 path delay 246641 | |||
ptp4l[815.978]: port 1: delay timeout | |||
ptp4l[815.981]: delay filtered 247370 raw 250300 | |||
ptp4l[816.106]: master offset -1437 s2 freq +15814 path delay 247370 | |||
ptp4l[816.445]: port 1: delay timeout | |||
ptp4l[816.446]: delay filtered 247370 raw 245339 | |||
ptp4l[817.106]: master offset 336 s2 freq +17156 path delay 247370 | |||
ptp4l[817.249]: port 0: announce timeout | |||
ptp4l[817.249]: config item (null).uds_address is '/var/run/ptp4l' | |||
ptp4l[817.486]: port 1: delay timeout | |||
ptp4l[817.489]: delay filtered 246689 raw 246095 | |||
ptp4l[818.106]: master offset 16 s2 freq +16937 path delay 246689 | |||
ptp4l[818.587]: port 1: delay timeout | |||
ptp4l[818.589]: delay filtered 245983 raw 245871 | |||
ptp4l[819.107]: master offset 2302 s2 freq +19228 path delay 245983 | |||
ptp4l[819.695]: port 1: delay timeout | |||
ptp4l[819.697]: delay filtered 245983 raw 247913 | |||
ptp4l[820.064]: port 1: delay timeout | |||
ptp4l[820.065]: delay filtered 245983 raw 246567 | |||
ptp4l[820.107]: master offset 156 s2 freq +17773 path delay 245983 | |||
ptp4l[820.891]: port 1: delay timeout | |||
ptp4l[820.893]: delay filtered 245983 raw 245284 | |||
ptp4l[821.107]: master offset -355 s2 freq +17308 path delay 245983 | |||
ptp4l[821.938]: port 1: delay timeout | |||
ptp4l[821.940]: delay filtered 246331 raw 253515 | |||
ptp4l[822.108]: master offset -1006 s2 freq +16551 path delay 246331 | |||
ptp4l[823.108]: master offset -1808 s2 freq +15447 path delay 246331 | |||
ptp4l[823.750]: port 1: delay timeout | |||
ptp4l[823.753]: delay filtered 246331 raw 245524 | |||
ptp4l[824.109]: master offset 1892 s2 freq +18605 path delay 246331 | |||
ptp4l[824.171]: port 1: delay timeout | |||
ptp4l[824.173]: delay filtered 246331 raw 246583 | |||
ptp4l[824.329]: port 0: announce timeout | |||
ptp4l[824.329]: config item (null).uds_address is '/var/run/ptp4l' | |||
ptp4l[825.109]: master offset 314 s2 freq +17594 path delay 246331 | |||
ptp4l[825.644]: port 1: delay timeout | |||
ptp4l[825.646]: delay filtered 245983 raw 243113 | |||
ptp4l[825.804]: port 1: delay timeout | |||
ptp4l[825.806]: delay filtered 246331 raw 246749 | |||
ptp4l[826.109]: master offset -231 s2 freq +17143 path delay 246331 | |||
ptp4l[826.141]: port 1: delay timeout | |||
ptp4l[826.143]: delay filtered 246219 raw 236069 | |||
ptp4l[827.110]: master offset -120 s2 freq +17185 path delay 246219 | |||
ptp4l[827.990]: port 1: delay timeout | |||
ptp4l[827.992]: delay filtered 246575 raw 247544 | |||
ptp4l[828.093]: port 1: delay timeout | |||
ptp4l[828.095]: delay filtered 246575 raw 462584 | |||
ptp4l[828.110]: master offset -1715 s2 freq +15554 path delay 246575 | |||
ptp4l[828.456]: port 1: delay timeout | |||
ptp4l[828.457]: delay filtered 246053 raw 239535 | |||
ptp4l[829.110]: master offset 1296 s2 freq +18051 path delay 246053 | |||
ptp4l[829.489]: port 1: delay timeout | |||
ptp4l[829.491]: delay filtered 246666 raw 250280 | |||
ptp4l[830.111]: master offset 595 s2 freq +17738 path delay 246666 | |||
ptp4l[830.467]: port 1: delay timeout | |||
ptp4l[830.469]: delay filtered 246666 raw 247352 | |||
ptp4l[831.111]: master offset -203 s2 freq +17119 path delay 246666 | |||
ptp4l[831.407]: port 1: delay timeout | |||
ptp4l[831.409]: delay filtered 247050 raw 247390 | |||
ptp4l[831.972]: port 0: announce timeout | |||
ptp4l[831.972]: config item (null).uds_address is '/var/run/ptp4l' | |||
ptp4l[832.112]: master offset -497 s2 freq +16764 path delay 247050 | |||
ptp4l[833.112]: master offset -1329 s2 freq +15783 path delay 247050 | |||
ptp4l[833.379]: port 1: delay timeout | |||
ptp4l[833.381]: delay filtered 247050 raw 245222 | |||
ptp4l[833.817]: port 1: delay timeout | |||
ptp4l[833.819]: delay filtered 247050 raw 245619 | |||
ptp4l[834.112]: master offset 695 s2 freq +17408 path delay 247050 | |||
ptp4l[835.113]: master offset -469 s2 freq +16453 path delay 247050 | |||
ptp4l[835.258]: port 1: delay timeout | |||
ptp4l[835.260]: delay filtered 247220 raw 247089 | |||
ptp4l[836.113]: master offset 1857 s2 freq +18638 path delay 247220 | |||
ptp4l[836.775]: port 1: delay timeout | |||
ptp4l[836.777]: delay filtered 247220 raw 235676 | |||
ptp4l[836.997]: port 1: delay timeout | |||
ptp4l[836.999]: delay filtered 246354 raw 245402 | |||
ptp4l[837.114]: master offset 791 s2 freq +18129 path delay 246354 | |||
ptp4l[837.621]: port 1: delay timeout | |||
ptp4l[837.623]: delay filtered 246354 raw 247791 | |||
ptp4l[838.114]: master offset -575 s2 freq +17000 path delay 246354 | |||
ptp4l[838.531]: port 1: delay timeout | |||
ptp4l[838.533]: delay filtered 246354 raw 244940 | |||
ptp4l[838.886]: port 1: delay timeout | |||
ptp4l[838.889]: delay filtered 246354 raw 248736 | |||
ptp4l[838.921]: port 0: announce timeout | |||
ptp4l[838.921]: config item (null).uds_address is '/var/run/ptp4l' | |||
ptp4l[839.114]: master offset -581 s2 freq +16822 path delay 246354 | |||
ptp4l[840.114]: master offset 413 s2 freq +17642 path delay 246354 | |||
ptp4l[840.842]: port 1: delay timeout | |||
ptp4l[840.844]: delay filtered 246269 raw 246920 | |||
ptp4l[841.115]: master offset -607 s2 freq +16746 path delay 246269 | |||
ptp4l[841.219]: port 1: delay timeout | |||
ptp4l[841.220]: delay filtered 245510 raw 72236 | |||
ptp4l[842.115]: master offset 1415 s2 freq +18585 path delay 245510 | |||
ptp4l[842.321]: port 1: delay timeout | |||
ptp4l[842.323]: delay filtered 246269 raw 250306 | |||
ptp4l[842.338]: port 1: delay timeout | |||
ptp4l[842.340]: delay filtered 246173 raw 245426 | |||
ptp4l[843.115]: master offset -469 s2 freq +17126 path delay 246173 | |||
ptp4l[843.599]: port 1: delay timeout | |||
ptp4l[843.601]: delay filtered 246173 raw 248747 | |||
ptp4l[844.115]: master offset -1057 s2 freq +16397 path delay 246173 | |||
ptp4l[845.115]: master offset 54 s2 freq +17191 path delay 246173 | |||
ptp4l[845.283]: port 1: delay timeout | |||
ptp4l[845.285]: delay filtered 247355 raw 248058 | |||
ptp4l[845.781]: port 0: announce timeout | |||
ptp4l[845.781]: config item (null).uds_address is '/var/run/ptp4l' | |||
ptp4l[846.116]: master offset -697 s2 freq +16456 path delay 247355 | |||
ptp4l[846.392]: port 1: delay timeout | |||
ptp4l[846.394]: delay filtered 247355 raw 246056 | |||
ptp4l[847.116]: master offset -621 s2 freq +16323 path delay 247355 | |||
ptp4l[847.863]: port 1: delay timeout | |||
ptp4l[847.865]: delay filtered 246495 raw 246070 | |||
ptp4l[848.116]: master offset 1203 s2 freq +17961 path delay 246495 | |||
ptp4l[848.682]: port 1: delay timeout | |||
ptp4l[848.683]: delay filtered 247489 raw 248451 | |||
ptp4l[848.932]: port 1: delay timeout | |||
ptp4l[848.934]: delay filtered 247298 raw 247677 | |||
ptp4l[849.116]: master offset -134 s2 freq +16985 path delay 247298 | |||
ptp4l[850.116]: master offset 367 s2 freq +17446 path delay 247298 | |||
ptp4l[850.691]: port 1: delay timeout | |||
ptp4l[850.693]: delay filtered 247690 raw 247703 | |||
ptp4l[851.117]: master offset -133 s2 freq +17056 path delay 247690 | |||
ptp4l[851.890]: port 1: delay timeout | |||
ptp4l[851.893]: delay filtered 247880 raw 249920 | |||
ptp4l[852.117]: master offset -461 s2 freq +16688 path delay 247880 | |||
</pre> | </pre> | ||
Revision as of 09:56, 17 November 2018
IEE1588 Hardware Timestamp
Overview of IEE1588 Hardware Timestamping
- Allows reference clock to be chosen independently of network speed.
- Software-programmable precise time-stamping of ingress and egress frames
- Timer monitoring capabilities for system calibration and timing accuracy management
- Precise time-stamping of external events with programmable interrupt generation
- Programmable event and interrupt generation for external system control
- Supports hardware- and software-controllable timer synchronization.
- Provides a 4-channel IEEE 1588 timer. Each channel supports input capture and output compare using the 1588 counter.
- Distribution of precise time information over the packetbased network
- Offers high accuracy (sub micro sec) over the network
Hardware Setup
- Connect Grand Master Clock Source (PC) to the same Ethernet to the target.
- Make sure there is communication between the PC and the target by checking the ping connectivity.
Software
On PC (Master) For Grand master clock can be Linux Build PC or other board For Ubuntu 16.04
$ sudo apt-get install linuxptp
Start the software base timestamping on PC or to become grandmaster clock source which you want to synchronize.
Make sure you have following device tree change present on your kernel.
diff --git a/arch/arm64/boot/dts/variscite/imx8m-var-dart-common.dtsi b/arch/arm64/boot/dts/variscite/imx8m-var-dart-common.dtsi
index 00dbc08..11148ad 100644
--- a/arch/arm64/boot/dts/variscite/imx8m-var-dart-common.dtsi
+++ b/arch/arm64/boot/dts/variscite/imx8m-var-dart-common.dtsi
@@ -182,6 +182,9 @@
MX8MQ_IOMUXC_ENET_RX_CTL_ENET1_RGMII_RX_CTL 0x91
MX8MQ_IOMUXC_ENET_TX_CTL_ENET1_RGMII_TX_CTL 0x1f
MX8MQ_IOMUXC_GPIO1_IO09_GPIO1_IO9 0x19
+ MX8MQ_IOMUXC_GPIO1_IO08_ENET1_1588_EVENT0_IN 0x91
+ MX8MQ_IOMUXC_I2C2_SCL_ENET1_1588_EVENT1_IN 0x91
+ MX8MQ_IOMUXC_I2C2_SDA_ENET1_1588_EVENT1_OUT 0x1f
>;
};
@@ -192,12 +195,6 @@
>;
};
- pinctrl_i2c2: i2c2grp {
- fsl,pins = <
- MX8MQ_IOMUXC_I2C2_SCL_I2C2_SCL 0x4000007f
- MX8MQ_IOMUXC_I2C2_SDA_I2C2_SDA 0x4000007f
- >;
- };
pinctrl_i2c3: i2c3grp {
fsl,pins = <
@@ -416,7 +413,6 @@
pinctrl_wifi: wifigrp {
fsl,pins = <
MX8MQ_IOMUXC_GPIO1_IO04_GPIO1_IO4 0xc1 /* WIFI_PWR_VSEL */
- MX8MQ_IOMUXC_GPIO1_IO08_GPIO1_IO8 0xc1 /* WIFI_PWR_ON */
MX8MQ_IOMUXC_NAND_CE1_B_GPIO3_IO2 0xc1 /* WIFI_REG_ON */
MX8MQ_IOMUXC_NAND_CE3_B_GPIO3_IO4 0xc1 /* BT_REG_ON */
MX8MQ_IOMUXC_SPDIF_EXT_CLK_GPIO5_IO5 0xc1 /* BT_BUF_EN */
@@ -612,8 +608,7 @@
&i2c2 {
clock-frequency = <100000>;
pinctrl-names = "default";
- pinctrl-0 = <&pinctrl_i2c2>;
- status = "okay";
+ status = "disabled";
/* DS1337 RTC module */
rtc@0x68 {
$ sudo ptp4l -i enp5s0 -m -S
- Here, in this case, the PC sends the timestamp using software timer, however, IEE1588 packets received on the target can synchronize the clock with 1uSec accuracy.
On device (Client)
Yocto build already contains the ptp4l required resoureces on the target.
root@imx8m-var-dart:~# ptp4l -H -A -l 7 -q -i eth0 -m -s & ptp4l[787.055]: config item (null).assume_two_step is 0 ptp4l[787.055]: config item (null).check_fup_sync is 0 ptp4l[787.055]: config item (null).tx_timestamp_timeout is 1 ptp4l[787.055]: config item (null).clockClass is 248 ptp4l[787.055]: config item (null).clockAccuracy is 254 ptp4l[787.055]: config item (null).offsetScaledLogVariance is 65535 ptp4l[787.055]: config item (null).productDescription is ';;' ptp4l[787.055]: config item (null).revisionData is ';;' ptp4l[787.056]: config item (null).userDescription is '' ptp4l[787.056]: config item (null).manufacturerIdentity is '00:00:00' ptp4l[787.056]: config item (null).domainNumber is 0 ptp4l[787.056]: config item (null).slaveOnly is 1 ptp4l[787.056]: config item (null).twoStepFlag is 1 ptp4l[787.056]: config item (null).priority1 is 128 ptp4l[787.056]: config item (null).priority2 is 128 ptp4l[787.056]: config item (null).gmCapable is 1 ptp4l[787.056]: config item (null).gmCapable is 1 ptp4l[787.056]: config item (null).clock_servo is 0 ptp4l[787.056]: config item (null).time_stamping is 1 ptp4l[787.056]: config item (null).free_running is 0 ptp4l[787.056]: config item (null).time_stamping is 1 ptp4l[787.056]: config item (null).time_stamping is 1 ptp4l[787.056]: selected /dev/ptp0 as PTP clock ptp4l[787.056]: config item (null).time_stamping is 1 ptp4l[787.056]: config item (null).clock_servo is 0 ptp4l[787.056]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[787.056]: section item /var/run/ptp4l.delay_mechanism now 0 ptp4l[787.056]: section item /var/run/ptp4l.network_transport now 0 ptp4l[787.056]: section item /var/run/ptp4l.delay_filter_length now 1 ptp4l[787.056]: config item (null).free_running is 0 ptp4l[787.056]: config item (null).freq_est_interval is 1 ptp4l[787.056]: config item (null).gmCapable is 1 ptp4l[787.056]: config item (null).kernel_leap is 1 ptp4l[787.056]: config item (null).timeSource is 160 ptp4l[787.056]: config item (null).pi_proportional_const is 0.000000 ptp4l[787.056]: config item (null).pi_integral_const is 0.000000 ptp4l[787.056]: config item (null).pi_proportional_scale is 0.000000 ptp4l[787.056]: config item (null).pi_proportional_exponent is -0.300000 ptp4l[787.056]: config item (null).pi_proportional_norm_max is 0.700000 ptp4l[787.056]: config item (null).pi_integral_scale is 0.000000 ptp4l[787.056]: config item (null).pi_integral_exponent is 0.400000 ptp4l[787.056]: config item (null).pi_integral_norm_max is 0.300000 ptp4l[787.056]: config item (null).step_threshold is 0.000000 ptp4l[787.056]: config item (null).first_step_threshold is 0.000020 ptp4l[787.056]: config item (null).max_frequency is 900000000 ptp4l[787.056]: config item (null).tsproc_mode is 0 ptp4l[787.056]: config item (null).delay_filter is 1 ptp4l[787.056]: config item (null).delay_filter_length is 10 ptp4l[787.056]: config item (null).summary_interval is 0 ptp4l[787.056]: config item (null).sanity_freq_limit is 200000000 ptp4l[787.056]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000 ptp4l[787.056]: config item /var/run/ptp4l.boundary_clock_jbod is 0 ptp4l[787.056]: config item /var/run/ptp4l.network_transport is 0 ptp4l[787.056]: config item /var/run/ptp4l.delayAsymmetry is 0 ptp4l[787.056]: config item /var/run/ptp4l.follow_up_info is 0 ptp4l[787.056]: config item /var/run/ptp4l.freq_est_interval is 1 ptp4l[787.056]: config item /var/run/ptp4l.hybrid_e2e is 0 ptp4l[787.056]: config item /var/run/ptp4l.path_trace_enabled is 0 ptp4l[787.056]: config item /var/run/ptp4l.ingressLatency is 0 ptp4l[787.056]: config item /var/run/ptp4l.egressLatency is 0 ptp4l[787.057]: config item /var/run/ptp4l.delay_mechanism is 0 ptp4l[787.057]: config item /var/run/ptp4l.fault_badpeernet_interval is 16 ptp4l[787.057]: config item /var/run/ptp4l.fault_reset_interval is 4 ptp4l[787.057]: config item /var/run/ptp4l.tsproc_mode is 0 ptp4l[787.057]: config item /var/run/ptp4l.delay_filter is 1 ptp4l[787.057]: config item /var/run/ptp4l.delay_filter_length is 1 ptp4l[787.057]: config item eth0.boundary_clock_jbod is 0 ptp4l[787.057]: config item eth0.network_transport is 1 ptp4l[787.057]: config item eth0.delayAsymmetry is 0 ptp4l[787.057]: config item eth0.follow_up_info is 0 ptp4l[787.057]: config item eth0.freq_est_interval is 1 ptp4l[787.057]: config item eth0.hybrid_e2e is 0 ptp4l[787.057]: config item eth0.path_trace_enabled is 0 ptp4l[787.057]: config item eth0.ingressLatency is 0 ptp4l[787.057]: config item eth0.egressLatency is 0 ptp4l[787.057]: config item eth0.delay_mechanism is 0 ptp4l[787.057]: config item eth0.fault_badpeernet_interval is 16 ptp4l[787.057]: config item eth0.fault_reset_interval is 4 ptp4l[787.057]: config item eth0.tsproc_mode is 0 ptp4l[787.057]: config item eth0.delay_filter is 1 ptp4l[787.057]: config item eth0.delay_filter_length is 10 ptp4l[787.057]: config item eth0.logMinDelayReqInterval is 0 ptp4l[787.057]: config item eth0.logAnnounceInterval is 1 ptp4l[787.057]: config item eth0.announceReceiptTimeout is 3 ptp4l[787.057]: config item eth0.syncReceiptTimeout is 0 ptp4l[787.057]: config item eth0.transportSpecific is 0 ptp4l[787.057]: config item eth0.logSyncInterval is 0 ptp4l[787.057]: config item eth0.logMinPdelayReqInterval is 0 ptp4l[787.057]: config item eth0.neighborPropDelayThresh is 20000000 ptp4l[787.057]: config item eth0.min_neighbor_prop_delay is -20000000 ptp4l[787.057]: config item eth0.udp_ttl is 1 ptp4l[787.057]: driver changed our HWTSTAMP options ptp4l[787.058]: tx_type 1 not 1 ptp4l[787.058]: rx_filter 1 not 12 ptp4l[787.058]: port 1: INITIALIZING to LISTENING on INITIALIZE ptp4l[787.058]: config item /var/run/ptp4l.logMinDelayReqInterval is 0 ptp4l[787.058]: config item /var/run/ptp4l.logAnnounceInterval is 1 ptp4l[787.058]: config item /var/run/ptp4l.announceReceiptTimeout is 3 ptp4l[787.058]: config item /var/run/ptp4l.syncReceiptTimeout is 0 ptp4l[787.058]: config item /var/run/ptp4l.transportSpecific is 0 ptp4l[787.058]: config item /var/run/ptp4l.logSyncInterval is 0 ptp4l[787.058]: config item /var/run/ptp4l.logMinPdelayReqInterval is 0 ptp4l[787.058]: config item /var/run/ptp4l.neighborPropDelayThresh is 20000000 ptp4l[787.058]: config item /var/run/ptp4l.min_neighbor_prop_delay is -20000000 ptp4l[787.058]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[787.058]: port 0: INITIALIZING to LISTENING on INITIALIZE ptp4l[787.088]: port 1: setting asCapable ptp4l[788.070]: port 1: new foreign master 1831bf.fffe.e0ee96-1 ptp4l[792.072]: selected best master clock 1831bf.fffe.e0ee96 ptp4l[792.073]: foreign master not using PTP timescale ptp4l[792.073]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[792.337]: port 1: delay timeout ptp4l[792.338]: delay filtered 253400 raw 253400 ptp4l[793.093]: master offset -18761 s0 freq +17431 path delay 253400 ptp4l[793.161]: port 1: delay timeout ptp4l[793.163]: delay filtered 250342 raw 247284 ptp4l[794.093]: master offset -15677 s2 freq +20514 path delay 250342 ptp4l[794.093]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED ptp4l[794.832]: port 0: announce timeout ptp4l[794.832]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[795.071]: port 1: delay timeout ptp4l[795.072]: delay filtered 247284 raw 245531 ptp4l[795.094]: master offset -17111 s2 freq +3403 path delay 247284 ptp4l[796.095]: master offset -2342 s2 freq +13038 path delay 247284 ptp4l[796.824]: port 1: delay timeout ptp4l[796.826]: delay filtered 246596 raw 245908 ptp4l[797.095]: master offset 2292 s2 freq +16970 path delay 246596 ptp4l[798.096]: master offset 2230 s2 freq +17595 path delay 246596 ptp4l[798.297]: port 1: delay timeout ptp4l[798.298]: delay filtered 247284 raw 247840 ptp4l[799.096]: master offset 1817 s2 freq +17851 path delay 247284 ptp4l[800.098]: master offset 664 s2 freq +17243 path delay 247284 ptp4l[800.245]: port 1: delay timeout ptp4l[800.247]: delay filtered 247323 raw 247362 ptp4l[800.854]: port 1: delay timeout ptp4l[800.856]: delay filtered 247362 raw 247863 ptp4l[800.960]: port 1: delay timeout ptp4l[800.962]: delay filtered 247323 raw 245850 ptp4l[800.989]: port 1: delay timeout ptp4l[800.991]: delay filtered 247284 raw 244362 ptp4l[801.098]: master offset 946 s2 freq +17725 path delay 247284 ptp4l[802.099]: master offset 58 s2 freq +17120 path delay 247284 ptp4l[802.259]: port 1: delay timeout ptp4l[802.260]: delay filtered 246596 raw 75420 ptp4l[802.805]: port 0: announce timeout ptp4l[802.805]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[802.883]: port 1: delay timeout ptp4l[802.885]: delay filtered 245879 raw 245209 ptp4l[803.100]: master offset 1841 s2 freq +18921 path delay 245879 ptp4l[803.552]: port 0: setting asCapable ptp4l[803.869]: port 1: delay timeout ptp4l[803.871]: delay filtered 245740 raw 245631 ptp4l[804.100]: master offset -447 s2 freq +17185 path delay 245740 ptp4l[805.101]: master offset 473 s2 freq +17971 path delay 245740 ptp4l[805.657]: port 1: delay timeout ptp4l[805.658]: delay filtered 245879 raw 248128 ptp4l[806.088]: port 1: delay timeout ptp4l[806.089]: delay filtered 245740 raw 76947 ptp4l[806.102]: master offset -206 s2 freq +17434 path delay 245740 ptp4l[807.102]: master offset -205 s2 freq +17373 path delay 245740 ptp4l[807.310]: port 1: delay timeout ptp4l[807.311]: delay filtered 245740 raw 246000 ptp4l[808.102]: master offset -716 s2 freq +16801 path delay 245740 ptp4l[809.102]: master offset 152 s2 freq +17454 path delay 245740 ptp4l[809.227]: port 1: delay timeout ptp4l[809.229]: delay filtered 245740 raw 248291 ptp4l[809.253]: port 1: delay timeout ptp4l[809.255]: delay filtered 245740 raw 247458 ptp4l[809.483]: port 0: announce timeout ptp4l[809.484]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[810.103]: master offset -202 s2 freq +17145 path delay 245740 ptp4l[810.943]: port 1: delay timeout ptp4l[810.945]: delay filtered 245815 raw 251457 ptp4l[811.104]: master offset -264 s2 freq +17023 path delay 245815 ptp4l[811.458]: port 1: delay timeout ptp4l[811.459]: delay filtered 246729 raw 249939 ptp4l[812.104]: master offset -1414 s2 freq +15794 path delay 246729 ptp4l[812.389]: port 1: delay timeout ptp4l[812.390]: delay filtered 246729 raw 244940 ptp4l[812.806]: port 1: delay timeout ptp4l[812.809]: delay filtered 246729 raw 244842 ptp4l[813.104]: master offset 560 s2 freq +17343 path delay 246729 ptp4l[814.105]: master offset 68 s2 freq +17019 path delay 246729 ptp4l[814.714]: port 1: delay timeout ptp4l[814.716]: delay filtered 246729 raw 244296 ptp4l[814.884]: port 1: delay timeout ptp4l[814.886]: delay filtered 246641 raw 247283 ptp4l[815.105]: master offset 932 s2 freq +17904 path delay 246641 ptp4l[815.978]: port 1: delay timeout ptp4l[815.981]: delay filtered 247370 raw 250300 ptp4l[816.106]: master offset -1437 s2 freq +15814 path delay 247370 ptp4l[816.445]: port 1: delay timeout ptp4l[816.446]: delay filtered 247370 raw 245339 ptp4l[817.106]: master offset 336 s2 freq +17156 path delay 247370 ptp4l[817.249]: port 0: announce timeout ptp4l[817.249]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[817.486]: port 1: delay timeout ptp4l[817.489]: delay filtered 246689 raw 246095 ptp4l[818.106]: master offset 16 s2 freq +16937 path delay 246689 ptp4l[818.587]: port 1: delay timeout ptp4l[818.589]: delay filtered 245983 raw 245871 ptp4l[819.107]: master offset 2302 s2 freq +19228 path delay 245983 ptp4l[819.695]: port 1: delay timeout ptp4l[819.697]: delay filtered 245983 raw 247913 ptp4l[820.064]: port 1: delay timeout ptp4l[820.065]: delay filtered 245983 raw 246567 ptp4l[820.107]: master offset 156 s2 freq +17773 path delay 245983 ptp4l[820.891]: port 1: delay timeout ptp4l[820.893]: delay filtered 245983 raw 245284 ptp4l[821.107]: master offset -355 s2 freq +17308 path delay 245983 ptp4l[821.938]: port 1: delay timeout ptp4l[821.940]: delay filtered 246331 raw 253515 ptp4l[822.108]: master offset -1006 s2 freq +16551 path delay 246331 ptp4l[823.108]: master offset -1808 s2 freq +15447 path delay 246331 ptp4l[823.750]: port 1: delay timeout ptp4l[823.753]: delay filtered 246331 raw 245524 ptp4l[824.109]: master offset 1892 s2 freq +18605 path delay 246331 ptp4l[824.171]: port 1: delay timeout ptp4l[824.173]: delay filtered 246331 raw 246583 ptp4l[824.329]: port 0: announce timeout ptp4l[824.329]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[825.109]: master offset 314 s2 freq +17594 path delay 246331 ptp4l[825.644]: port 1: delay timeout ptp4l[825.646]: delay filtered 245983 raw 243113 ptp4l[825.804]: port 1: delay timeout ptp4l[825.806]: delay filtered 246331 raw 246749 ptp4l[826.109]: master offset -231 s2 freq +17143 path delay 246331 ptp4l[826.141]: port 1: delay timeout ptp4l[826.143]: delay filtered 246219 raw 236069 ptp4l[827.110]: master offset -120 s2 freq +17185 path delay 246219 ptp4l[827.990]: port 1: delay timeout ptp4l[827.992]: delay filtered 246575 raw 247544 ptp4l[828.093]: port 1: delay timeout ptp4l[828.095]: delay filtered 246575 raw 462584 ptp4l[828.110]: master offset -1715 s2 freq +15554 path delay 246575 ptp4l[828.456]: port 1: delay timeout ptp4l[828.457]: delay filtered 246053 raw 239535 ptp4l[829.110]: master offset 1296 s2 freq +18051 path delay 246053 ptp4l[829.489]: port 1: delay timeout ptp4l[829.491]: delay filtered 246666 raw 250280 ptp4l[830.111]: master offset 595 s2 freq +17738 path delay 246666 ptp4l[830.467]: port 1: delay timeout ptp4l[830.469]: delay filtered 246666 raw 247352 ptp4l[831.111]: master offset -203 s2 freq +17119 path delay 246666 ptp4l[831.407]: port 1: delay timeout ptp4l[831.409]: delay filtered 247050 raw 247390 ptp4l[831.972]: port 0: announce timeout ptp4l[831.972]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[832.112]: master offset -497 s2 freq +16764 path delay 247050 ptp4l[833.112]: master offset -1329 s2 freq +15783 path delay 247050 ptp4l[833.379]: port 1: delay timeout ptp4l[833.381]: delay filtered 247050 raw 245222 ptp4l[833.817]: port 1: delay timeout ptp4l[833.819]: delay filtered 247050 raw 245619 ptp4l[834.112]: master offset 695 s2 freq +17408 path delay 247050 ptp4l[835.113]: master offset -469 s2 freq +16453 path delay 247050 ptp4l[835.258]: port 1: delay timeout ptp4l[835.260]: delay filtered 247220 raw 247089 ptp4l[836.113]: master offset 1857 s2 freq +18638 path delay 247220 ptp4l[836.775]: port 1: delay timeout ptp4l[836.777]: delay filtered 247220 raw 235676 ptp4l[836.997]: port 1: delay timeout ptp4l[836.999]: delay filtered 246354 raw 245402 ptp4l[837.114]: master offset 791 s2 freq +18129 path delay 246354 ptp4l[837.621]: port 1: delay timeout ptp4l[837.623]: delay filtered 246354 raw 247791 ptp4l[838.114]: master offset -575 s2 freq +17000 path delay 246354 ptp4l[838.531]: port 1: delay timeout ptp4l[838.533]: delay filtered 246354 raw 244940 ptp4l[838.886]: port 1: delay timeout ptp4l[838.889]: delay filtered 246354 raw 248736 ptp4l[838.921]: port 0: announce timeout ptp4l[838.921]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[839.114]: master offset -581 s2 freq +16822 path delay 246354 ptp4l[840.114]: master offset 413 s2 freq +17642 path delay 246354 ptp4l[840.842]: port 1: delay timeout ptp4l[840.844]: delay filtered 246269 raw 246920 ptp4l[841.115]: master offset -607 s2 freq +16746 path delay 246269 ptp4l[841.219]: port 1: delay timeout ptp4l[841.220]: delay filtered 245510 raw 72236 ptp4l[842.115]: master offset 1415 s2 freq +18585 path delay 245510 ptp4l[842.321]: port 1: delay timeout ptp4l[842.323]: delay filtered 246269 raw 250306 ptp4l[842.338]: port 1: delay timeout ptp4l[842.340]: delay filtered 246173 raw 245426 ptp4l[843.115]: master offset -469 s2 freq +17126 path delay 246173 ptp4l[843.599]: port 1: delay timeout ptp4l[843.601]: delay filtered 246173 raw 248747 ptp4l[844.115]: master offset -1057 s2 freq +16397 path delay 246173 ptp4l[845.115]: master offset 54 s2 freq +17191 path delay 246173 ptp4l[845.283]: port 1: delay timeout ptp4l[845.285]: delay filtered 247355 raw 248058 ptp4l[845.781]: port 0: announce timeout ptp4l[845.781]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[846.116]: master offset -697 s2 freq +16456 path delay 247355 ptp4l[846.392]: port 1: delay timeout ptp4l[846.394]: delay filtered 247355 raw 246056 ptp4l[847.116]: master offset -621 s2 freq +16323 path delay 247355 ptp4l[847.863]: port 1: delay timeout ptp4l[847.865]: delay filtered 246495 raw 246070 ptp4l[848.116]: master offset 1203 s2 freq +17961 path delay 246495 ptp4l[848.682]: port 1: delay timeout ptp4l[848.683]: delay filtered 247489 raw 248451 ptp4l[848.932]: port 1: delay timeout ptp4l[848.934]: delay filtered 247298 raw 247677 ptp4l[849.116]: master offset -134 s2 freq +16985 path delay 247298 ptp4l[850.116]: master offset 367 s2 freq +17446 path delay 247298 ptp4l[850.691]: port 1: delay timeout ptp4l[850.693]: delay filtered 247690 raw 247703 ptp4l[851.117]: master offset -133 s2 freq +17056 path delay 247690 ptp4l[851.890]: port 1: delay timeout ptp4l[851.893]: delay filtered 247880 raw 249920 ptp4l[852.117]: master offset -461 s2 freq +16688 path delay 247880
Client Clock Syncrhonization (On target)
root@imx7-var-som:~# phc2sys -s /dev/ptp0 -w -l 6 -q -m phc2sys[561.207]: Waiting for ptp4l... phc2sys[562.208]: phc offset 1464418821463523 s0 freq +0 delay 3000 phc2sys[563.208]: phc offset 1464419821714028 s1 freq +100000000 delay 2667 phc2sys[586.213]: phc offset 23005021015 s2 freq +100000000 delay 2400 phc2sys[587.214]: phc offset 24005243215 s2 freq +100000000 delay 2400 phc2sys[588.214]: phc offset 25005490315 s2 freq +100000000 delay 2400 phc2sys[589.214]: phc offset 26005730816 s2 freq +100000000 delay 2400 phc2sys[590.214]: phc offset 27005974016 s2 freq +100000000 delay 2400 phc2sys[591.214]: phc offset 28006201017 s2 freq +100000000 delay 2400 phc2sys[592.215]: phc offset 29006428317 s2 freq +100000000 delay 2400 phc2sys[593.215]: phc offset 30006676017 s2 freq +100000000 delay 2400 phc2sys[594.215]: phc offset 31006943218 s2 freq +100000000 delay 2400 phc2sys[595.215]: phc offset 32007195118 s2 freq +100000000 delay 2400 phc2sys[596.216]: phc offset 33007442819 s2 freq +100000000 delay 2400 phc2sys[597.216]: phc offset 34007662169 s2 freq +100000000 delay 2700 phc2sys[598.216]: phc offset 35007934919 s2 freq +100000000 delay 2400 phc2sys[599.216]: phc offset 36008207820 s2 freq +100000000 delay 2400 phc2sys[600.217]: phc offset 37008466620 s2 freq +100000000 delay 2400 phc2sys[601.217]: phc offset 38008680421 s2 freq +100000000 delay 2400 phc2sys[602.217]: phc offset 39008935621 s2 freq +100000000 delay 2400 phc2sys[603.217]: phc offset 40009183021 s2 freq +100000000 delay 2400 phc2sys[604.218]: phc offset 41009422622 s2 freq +100000000 delay 2400 phc2sys[605.218]: phc offset 42009670922 s2 freq +100000000 delay 2400 phc2sys[606.218]: phc offset 43009915323 s2 freq +100000000 delay 2400 phc2sys[607.218]: phc offset 44010150723 s2 freq +100000000 delay 2400 phc2sys[608.219]: phc offset 45010369773 s2 freq +100000000 delay 2700 phc2sys[609.219]: phc offset 46010583124 s2 freq +100000000 delay 2400 phc2sys[610.219]: phc offset 47010823024 s2 freq +100000000 delay 2400 phc2sys[611.219]: phc offset 48010995125 s2 freq +100000000 delay 2400 phc2sys[612.219]: phc offset 49011205925 s2 freq +100000000 delay 2400 phc2sys[613.220]: phc offset 50011483625 s2 freq +100000000 delay 2400 phc2sys[614.220]: phc offset 51011699826 s2 freq +100000000 delay 2400 phc2sys[615.220]: phc offset 52011934926 s2 freq +100000000 delay 2400 phc2sys[616.220]: phc offset 53012195227 s2 freq +100000000 delay 2400 phc2sys[617.221]: phc offset 54012428677 s2 freq +100000000 delay 2700 phc2sys[618.221]: phc offset 55012704577 s2 freq +100000000 delay 2700 root@var-som-mx6:~#
HW Events
After kernel up, run commands:
$ ptp4l -A -4 -H -m -i eth0 & $ echo 1 > /sys/class/ptp/ptp0/pps_enable