Hi, I was able to get linuxptp 2.0 working with Trimble GM200 Grand Master using generic 1588 profile but I really need to use the G.8275.2 profile and am having trouble getting anything to happen.
It first I was using linuxptp v1.8 and it doesn't look like that version supported the G.8275 profiles but v2.0 does. I have a NXP i.mx8 running a Yocto build of core-image-base with linuxptp and some other packages added in. I've looked at the sample configs, namely default and G.8275.2 and my config is basically default plus the settings from G.8275.2. Here is what I have so far: root@imx8mmevk:/etc# cat ptp4l.conf [global] # # Default Data Set # twoStepFlag 1 slaveOnly 0 priority1 128 priority2 128 domainNumber 0 #utc_offset 37 clockClass 248 clockAccuracy 0xFE offsetScaledLogVariance 0xFFFF free_running 0 freq_est_interval 1 dscp_event 0 dscp_general 0 #dataset_comparison ieee1588 #for G.8275.1 dataset_comparison G.8275.x G.8275.defaultDS.localPriority 128 # # Port Data Set # logAnnounceInterval 1 logSyncInterval 0 logMinDelayReqInterval 0 logMinPdelayReqInterval 0 announceReceiptTimeout 3 syncReceiptTimeout 0 delayAsymmetry 0 fault_reset_interval 4 neighborPropDelayThresh 20000000 masterOnly 0 G.8275.portDS.localPriority 128 # # Run time options # assume_two_step 0 logging_level 6 path_trace_enabled 0 follow_up_info 0 hybrid_e2e 0 inhibit_multicast_service 0 net_sync_monitor 0 tc_spanning_tree 0 tx_timestamp_timeout 1 unicast_listen 0 unicast_master_table 0 unicast_req_duration 3600 use_syslog 1 verbose 0 summary_interval 0 kernel_leap 1 check_fup_sync 0 # # Servo Options # pi_proportional_const 0.0 pi_integral_const 0.0 pi_proportional_scale 0.0 pi_proportional_exponent -0.3 pi_proportional_norm_max 0.7 pi_integral_scale 0.0 pi_integral_exponent 0.4 pi_integral_norm_max 0.3 step_threshold 0.0 first_step_threshold 0.00002 max_frequency 900000000 clock_servo pi sanity_freq_limit 200000000 ntpshm_segment 0 # # Transport options # transportSpecific 0x0 ptp_dst_mac 01:1B:19:00:00:00 p2p_dst_mac 01:80:C2:00:00:0E udp_ttl 1 udp6_scope 0x0E uds_address /var/run/ptp4l # # Default interface options # clock_type OC network_transport UDPv4 delay_mechanism E2E time_stamping hardware tsproc_mode filter delay_filter moving_median delay_filter_length 10 egressLatency 0 ingressLatency 0 boundary_clock_jbod 0 # # Clock description # productDescription ;; revisionData ;; manufacturerIdentity 00:00:00 userDescription ; timeSource 0xA0 I'm starting ptp4l with the following: ptp4l -p /dev/ptp0 -i eth0 -f /etc/ptp4l.conf -m -q -l 7 -H -s ptp4l[88375.278]: config item (null).assume_two_step is 0 ptp4l[88375.278]: config item (null).check_fup_sync is 0 ptp4l[88375.278]: config item (null).tx_timestamp_timeout is 1 ptp4l[88375.278]: config item (null).clock_servo is 0 ptp4l[88375.278]: config item (null).clock_type is 32768 ptp4l[88375.278]: config item (null).clock_servo is 0 ptp4l[88375.278]: config item (null).clockClass is 248 ptp4l[88375.279]: config item (null).clockAccuracy is 254 ptp4l[88375.279]: config item (null).offsetScaledLogVariance is 65535 ptp4l[88375.279]: config item (null).productDescription is ';;' ptp4l[88375.279]: config item (null).revisionData is ';;' ptp4l[88375.279]: config item (null).userDescription is ';' ptp4l[88375.279]: config item (null).manufacturerIdentity is '00:00:00' ptp4l[88375.279]: config item (null).domainNumber is 0 ptp4l[88375.279]: config item (null).slaveOnly is 1 ptp4l[88375.279]: config item (null).gmCapable is 1 ptp4l[88375.279]: config item (null).gmCapable is 1 ptp4l[88375.279]: config item (null).G.8275.defaultDS.localPriority is 128 ptp4l[88375.279]: config item (null).time_stamping is 1 ptp4l[88375.279]: config item (null).twoStepFlag is 1 ptp4l[88375.279]: config item (null).twoStepFlag is 1 ptp4l[88375.279]: config item (null).time_stamping is 1 ptp4l[88375.279]: config item (null).priority1 is 128 ptp4l[88375.279]: config item (null).priority2 is 128 ptp4l[88375.279]: interface index 2 is up ptp4l[88375.279]: config item (null).free_running is 0 ptp4l[88375.279]: selected /dev/ptp0 as PTP clock ptp4l[88375.279]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[88375.279]: section item /var/run/ptp4l.announceReceiptTimeout now 0 ptp4l[88375.279]: section item /var/run/ptp4l.delay_mechanism now 0 ptp4l[88375.279]: section item /var/run/ptp4l.network_transport now 0 ptp4l[88375.279]: section item /var/run/ptp4l.delay_filter_length now 1 ptp4l[88375.279]: config item (null).free_running is 0 ptp4l[88375.279]: config item (null).freq_est_interval is 1 ptp4l[88375.279]: config item (null).gmCapable is 1 ptp4l[88375.279]: config item (null).kernel_leap is 1 ptp4l[88375.279]: config item (null).utc_offset is 37 ptp4l[88375.279]: config item (null).timeSource is 160 ptp4l[88375.279]: config item (null).pi_proportional_const is 0.000000 ptp4l[88375.279]: config item (null).pi_integral_const is 0.000000 ptp4l[88375.279]: config item (null).pi_proportional_scale is 0.000000 ptp4l[88375.279]: config item (null).pi_proportional_exponent is -0.300000 ptp4l[88375.279]: config item (null).pi_proportional_norm_max is 0.700000 ptp4l[88375.279]: config item (null).pi_integral_scale is 0.000000 ptp4l[88375.279]: config item (null).pi_integral_exponent is 0.400000 ptp4l[88375.279]: config item (null).pi_integral_norm_max is 0.300000 ptp4l[88375.279]: config item (null).step_threshold is 0.000000 ptp4l[88375.279]: config item (null).first_step_threshold is 0.000020 ptp4l[88375.279]: config item (null).max_frequency is 900000000 ptp4l[88375.279]: config item (null).dataset_comparison is 1 ptp4l[88375.279]: config item (null).tsproc_mode is 0 ptp4l[88375.279]: config item (null).delay_filter is 1 ptp4l[88375.279]: config item (null).delay_filter_length is 10 ptp4l[88375.279]: config item (null).initial_delay is 0 ptp4l[88375.279]: config item (null).summary_interval is 0 ptp4l[88375.279]: config item (null).sanity_freq_limit is 200000000 ptp4l[88375.279]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000 ptp4l[88375.279]: config item /var/run/ptp4l.boundary_clock_jbod is 0 ptp4l[88375.280]: config item /var/run/ptp4l.network_transport is 0 ptp4l[88375.280]: config item /var/run/ptp4l.delayAsymmetry is 0 ptp4l[88375.280]: config item /var/run/ptp4l.follow_up_info is 0 ptp4l[88375.280]: config item /var/run/ptp4l.freq_est_interval is 1 ptp4l[88375.280]: config item /var/run/ptp4l.net_sync_monitor is 0 ptp4l[88375.280]: config item /var/run/ptp4l.path_trace_enabled is 0 ptp4l[88375.280]: config item /var/run/ptp4l.tc_spanning_tree is 0 ptp4l[88375.280]: config item /var/run/ptp4l.ingressLatency is 0 ptp4l[88375.619]: config item /var/run/ptp4l.egressLatency is 0 ptp4l[88375.619]: config item /var/run/ptp4l.delay_mechanism is 0 ptp4l[88375.619]: config item /var/run/ptp4l.hybrid_e2e is 0 ptp4l[88375.619]: config item /var/run/ptp4l.fault_badpeernet_interval is 16 ptp4l[88375.619]: config item /var/run/ptp4l.fault_reset_interval is 4 ptp4l[88375.619]: config item /var/run/ptp4l.tsproc_mode is 0 ptp4l[88375.619]: config item /var/run/ptp4l.delay_filter is 1 ptp4l[88375.619]: config item /var/run/ptp4l.delay_filter_length is 1 ptp4l[88375.619]: config item eth0.boundary_clock_jbod is 0 ptp4l[88375.619]: config item eth0.network_transport is 1 ptp4l[88375.619]: config item eth0.delayAsymmetry is 0 ptp4l[88375.619]: config item eth0.follow_up_info is 0 ptp4l[88375.619]: config item eth0.freq_est_interval is 1 ptp4l[88375.619]: config item eth0.net_sync_monitor is 0 ptp4l[88375.619]: config item eth0.path_trace_enabled is 0 ptp4l[88375.619]: config item eth0.tc_spanning_tree is 0 ptp4l[88375.619]: config item eth0.ingressLatency is 0 ptp4l[88375.619]: config item eth0.egressLatency is 0 ptp4l[88375.619]: config item eth0.delay_mechanism is 1 ptp4l[88375.619]: config item eth0.unicast_master_table is 0 ptp4l[88375.619]: config item eth0.unicast_listen is 0 ptp4l[88375.619]: config item eth0.hybrid_e2e is 0 ptp4l[88375.619]: config item eth0.fault_badpeernet_interval is 16 ptp4l[88375.619]: config item eth0.fault_reset_interval is 4 ptp4l[88375.619]: config item eth0.tsproc_mode is 0 ptp4l[88375.619]: config item eth0.delay_filter is 1 ptp4l[88375.619]: config item eth0.delay_filter_length is 10 ptp4l[88375.619]: config item eth0.logMinDelayReqInterval is 0 ptp4l[88375.619]: config item eth0.logAnnounceInterval is 1 ptp4l[88375.619]: config item eth0.announceReceiptTimeout is 3 ptp4l[88375.619]: config item eth0.syncReceiptTimeout is 0 ptp4l[88375.619]: config item eth0.transportSpecific is 0 ptp4l[88375.619]: config item eth0.ignore_transport_specific is 0 ptp4l[88375.619]: config item eth0.masterOnly is 0 ptp4l[88375.619]: config item eth0.G.8275.portDS.localPriority is 128 ptp4l[88375.620]: config item eth0.logSyncInterval is 0 ptp4l[88375.620]: config item eth0.logMinPdelayReqInterval is 0 ptp4l[88375.620]: config item eth0.neighborPropDelayThresh is 20000000 ptp4l[88375.620]: config item eth0.min_neighbor_prop_delay is -20000000 ptp4l[88375.620]: config item eth0.udp_ttl is 1 ptp4l[88375.620]: driver changed our HWTSTAMP options ptp4l[88375.620]: tx_type 1 not 1 ptp4l[88375.620]: rx_filter 1 not 12 ptp4l[88375.620]: config item (null).dscp_event is 0 ptp4l[88375.620]: config item (null).dscp_general is 0 ptp4l[88375.620]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[88375.620]: config item /var/run/ptp4l.logMinDelayReqInterval is 0 ptp4l[88375.620]: config item /var/run/ptp4l.logAnnounceInterval is 1 ptp4l[88375.620]: config item /var/run/ptp4l.announceReceiptTimeout is 0 ptp4l[88375.620]: config item /var/run/ptp4l.syncReceiptTimeout is 0 ptp4l[88375.620]: config item /var/run/ptp4l.transportSpecific is 0 ptp4l[88375.620]: config item /var/run/ptp4l.ignore_transport_specific is 0 ptp4l[88375.620]: config item /var/run/ptp4l.masterOnly is 0 ptp4l[88375.620]: config item /var/run/ptp4l.G.8275.portDS.localPriority is 128 ptp4l[88375.620]: config item /var/run/ptp4l.logSyncInterval is 0 ptp4l[88375.620]: config item /var/run/ptp4l.logMinPdelayReqInterval is 0 ptp4l[88375.620]: config item /var/run/ptp4l.neighborPropDelayThresh is 20000000 ptp4l[88375.620]: config item /var/run/ptp4l.min_neighbor_prop_delay is -20000000 ptp4l[88375.620]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[88375.620]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[88375.958]: port 1: received link status notification ptp4l[88375.958]: interface index 2 is up ptp4l[88382.969]: port 1: announce timeout ptp4l[88382.969]: config item eth0.udp_ttl is 1 ptp4l[88382.969]: driver changed our HWTSTAMP options ptp4l[88382.969]: tx_type 1 not 1 ptp4l[88382.969]: rx_filter 1 not 12 ptp4l[88382.969]: config item (null).dscp_event is 0 ptp4l[88382.969]: config item (null).dscp_general is 0 ptp4l[88382.969]: selected local clock 00049f.fffe.059fa2 as best master ptp4l[88389.055]: port 1: announce timeout ptp4l[88389.055]: config item eth0.udp_ttl is 1 ptp4l[88389.055]: driver changed our HWTSTAMP options ptp4l[88389.055]: tx_type 1 not 1 ptp4l[88389.055]: rx_filter 1 not 12 ptp4l[88389.055]: config item (null).dscp_event is 0 ptp4l[88389.055]: config item (null).dscp_general is 0 ptp4l[88389.055]: selected local clock 00049f.fffe.059fa2 as best master ptp4l[88396.625]: port 1: announce timeout ptp4l[88396.625]: config item eth0.udp_ttl is 1 ptp4l[88396.625]: driver changed our HWTSTAMP options ptp4l[88396.625]: tx_type 1 not 1 ptp4l[88396.625]: rx_filter 1 not 12 ptp4l[88396.625]: config item (null).dscp_event is 0 ptp4l[88396.625]: config item (null).dscp_general is 0 ptp4l[88396.625]: selected local clock 00049f.fffe.059fa2 as best master ptp4l[88403.588]: port 1: announce timeout ptp4l[88403.588]: config item eth0.udp_ttl is 1 ptp4l[88403.589]: driver changed our HWTSTAMP options ptp4l[88403.589]: tx_type 1 not 1 ptp4l[88403.589]: rx_filter 1 not 12 ptp4l[88403.589]: config item (null).dscp_event is 0 ptp4l[88403.589]: config item (null).dscp_general is 0 ptp4l[88403.589]: selected local clock 00049f.fffe.059fa2 as best master ... it basically just sits there repeating the last several "selected local clock ... as best master" blocks. I'm just trying to get my imx8 evm to sync with GM as a slave or really anything at this point. I've downloaded the ITU G.8275.2 spec and hope that maybe it sheds light on what I'm doing wrong. Tanks in advance for any hints or words of wisdom. Regards, Brian CONFIDENTIALITY NOTICE: This email and any attachments are for the sole use of the intended recipient and may contain material that is proprietary, confidential, privileged or otherwise legally protected or restricted under applicable government laws. Any review, disclosure, distributing or other use without expressed permission of the sender is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies without reading, printing, or saving.
_______________________________________________ Linuxptp-users mailing list Linuxptp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-users