nxp-archive / openil_linuxptp

PTP IEEE 1588 stack for Linux
GNU General Public License v2.0
136 stars 60 forks source link

Intell x550 and ptp4l #41

Open gustavosalge opened 1 year ago

gustavosalge commented 1 year ago

I am trying to sync my NIC (Intel x550) connected to Ruggedcom switch (RSG2288) which is the master clock using the software ptp4l, but i can not achieve sync and it is always showing the same 'delay timeout' message.

Below is the command and the log generated from ptp4l.

ptp4l -2 -i enp1s0f1 -m -A -l 7 -H

ptp4l[35843.709]: config item (null).assume_two_step is 0 ptp4l[35843.709]: config item (null).check_fup_sync is 0 ptp4l[35843.709]: config item (null).tx_timestamp_timeout is 10 ptp4l[35843.709]: config item (null).hwts_filter is 0 ptp4l[35843.709]: config item (null).clock_servo is 0 ptp4l[35843.709]: config item (null).clock_type is 32768 ptp4l[35843.709]: config item (null).clock_servo is 0 ptp4l[35843.709]: config item (null).clockClass is 248 ptp4l[35843.709]: config item (null).clockAccuracy is 254 ptp4l[35843.709]: config item (null).offsetScaledLogVariance is 65535 ptp4l[35843.709]: config item (null).productDescription is ';;' ptp4l[35843.709]: config item (null).revisionData is ';;' ptp4l[35843.709]: config item (null).userDescription is '' ptp4l[35843.709]: config item (null).manufacturerIdentity is '00:00:00' ptp4l[35843.709]: config item (null).domainNumber is 0 ptp4l[35843.709]: config item (null).clientOnly is 0 ptp4l[35843.709]: config item (null).gmCapable is 1 ptp4l[35843.709]: config item (null).gmCapable is 1 ptp4l[35843.709]: config item (null).G.8275.defaultDS.localPriority is 128 ptp4l[35843.709]: config item (null).maxStepsRemoved is 255 ptp4l[35843.709]: config item (null).clock_class_threshold is 248 ptp4l[35843.709]: config item (null).time_stamping is 1 ptp4l[35843.709]: config item (null).twoStepFlag is 1 ptp4l[35843.710]: config item (null).twoStepFlag is 1 ptp4l[35843.710]: config item (null).time_stamping is 1 ptp4l[35843.710]: config item (null).priority1 is 128 ptp4l[35843.710]: config item (null).priority2 is 128 ptp4l[35843.710]: interface index 3 is up ptp4l[35843.710]: config item enp1s0f1.phc_index is -1 ptp4l[35843.710]: config item (null).free_running is 0 ptp4l[35843.710]: selected /dev/ptp1 as PTP clock ptp4l[35843.710]: config item (null).clockIdentity is '000000.0000.000000' ptp4l[35843.710]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[35843.710]: section item /var/run/ptp4l.announceReceiptTimeout now 0 ptp4l[35843.710]: section item /var/run/ptp4l.delay_mechanism now 0 ptp4l[35843.710]: section item /var/run/ptp4l.network_transport now 0 ptp4l[35843.710]: section item /var/run/ptp4l.delay_filter_length now 1 ptp4l[35843.710]: config item (null).uds_ro_address is '/var/run/ptp4lro' ptp4l[35843.710]: section item /var/run/ptp4lro.announceReceiptTimeout now 0 ptp4l[35843.710]: section item /var/run/ptp4lro.delay_mechanism now 0 ptp4l[35843.710]: section item /var/run/ptp4lro.network_transport now 0 ptp4l[35843.710]: section item /var/run/ptp4lro.delay_filter_length now 1 ptp4l[35843.710]: config item (null).free_running is 0 ptp4l[35843.710]: config item (null).freq_est_interval is 1 ptp4l[35843.710]: config item (null).write_phase_mode is 0 ptp4l[35843.710]: config item (null).gmCapable is 1 ptp4l[35843.710]: config item (null).kernel_leap is 1 ptp4l[35843.710]: config item (null).utc_offset is 37 ptp4l[35843.710]: config item (null).timeSource is 160 ptp4l[35843.710]: config item (null).step_window is 0 ptp4l[35843.710]: config item (null).pi_proportional_const is 0.000000 ptp4l[35843.710]: config item (null).pi_integral_const is 0.000000 ptp4l[35843.710]: config item (null).pi_proportional_scale is 0.000000 ptp4l[35843.710]: config item (null).pi_proportional_exponent is -0.300000 ptp4l[35843.710]: config item (null).pi_proportional_norm_max is 0.700000 ptp4l[35843.710]: config item (null).pi_integral_scale is 0.000000 ptp4l[35843.710]: config item (null).pi_integral_exponent is 0.400000 ptp4l[35843.710]: config item (null).pi_integral_norm_max is 0.300000 ptp4l[35843.710]: config item (null).step_threshold is 0.000000 ptp4l[35843.710]: config item (null).first_step_threshold is 0.000020 ptp4l[35843.710]: config item (null).max_frequency is 900000000 ptp4l[35843.710]: config item (null).servo_offset_threshold is 0 ptp4l[35843.710]: config item (null).servo_num_offset_values is 10 ptp4l[35843.710]: config item (null).dataset_comparison is 0 ptp4l[35843.710]: config item (null).delay_filter_length is 10 ptp4l[35843.710]: config item (null).delay_filter is 1 ptp4l[35843.711]: config item (null).tsproc_mode is 0 ptp4l[35843.711]: config item (null).initial_delay is 0 ptp4l[35843.711]: config item (null).summary_interval is 0 ptp4l[35843.711]: config item (null).sanity_freq_limit is 200000000 ptp4l[35843.711]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000 ptp4l[35843.711]: config item /var/run/ptp4l.phc_index is -1 ptp4l[35843.711]: config item /var/run/ptp4l.boundary_clock_jbod is 0 ptp4l[35843.711]: config item /var/run/ptp4l.serverOnly is 0 ptp4l[35843.711]: config item /var/run/ptp4l.BMCA is 0 ptp4l[35843.711]: config item /var/run/ptp4l.network_transport is 0 ptp4l[35843.711]: config item /var/run/ptp4l.delayAsymmetry is 0 ptp4l[35843.711]: config item /var/run/ptp4l.follow_up_info is 0 ptp4l[35843.711]: config item /var/run/ptp4l.freq_est_interval is 1 ptp4l[35843.711]: config item /var/run/ptp4l.msg_interval_request is 0 ptp4l[35843.711]: config item /var/run/ptp4l.net_sync_monitor is 0 ptp4l[35843.711]: config item /var/run/ptp4l.path_trace_enabled is 0 ptp4l[35843.711]: config item /var/run/ptp4l.tc_spanning_tree is 0 ptp4l[35843.711]: config item /var/run/ptp4l.ingressLatency is 0 ptp4l[35843.711]: config item /var/run/ptp4l.egressLatency is 0 ptp4l[35843.711]: config item /var/run/ptp4l.delay_mechanism is 0 ptp4l[35843.711]: config item /var/run/ptp4l.hybrid_e2e is 0 ptp4l[35843.711]: config item /var/run/ptp4l.fault_badpeernet_interval is 16 ptp4l[35843.711]: config item /var/run/ptp4l.fault_reset_interval is 4 ptp4l[35843.711]: config item /var/run/ptp4l.delay_filter_length is 1 ptp4l[35843.711]: config item /var/run/ptp4l.delay_filter is 1 ptp4l[35843.711]: config item /var/run/ptp4l.tsproc_mode is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.phc_index is -1 ptp4l[35843.711]: config item /var/run/ptp4lro.boundary_clock_jbod is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.serverOnly is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.BMCA is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.network_transport is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.delayAsymmetry is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.follow_up_info is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.freq_est_interval is 1 ptp4l[35843.711]: config item /var/run/ptp4lro.msg_interval_request is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.net_sync_monitor is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.path_trace_enabled is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.tc_spanning_tree is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.ingressLatency is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.egressLatency is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.delay_mechanism is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.hybrid_e2e is 0 ptp4l[35843.711]: config item /var/run/ptp4lro.fault_badpeernet_interval is 16 ptp4l[35843.711]: config item /var/run/ptp4lro.fault_reset_interval is 4 ptp4l[35843.711]: config item /var/run/ptp4lro.delay_filter_length is 1 ptp4l[35843.711]: config item /var/run/ptp4lro.delay_filter is 1 ptp4l[35843.711]: config item /var/run/ptp4lro.tsproc_mode is 0 ptp4l[35843.711]: config item (null).slave_event_monitor is '' ptp4l[35843.711]: config item enp1s0f1.phc_index is -1 ptp4l[35843.711]: config item enp1s0f1.boundary_clock_jbod is 0 ptp4l[35843.711]: config item enp1s0f1.serverOnly is 0 ptp4l[35843.711]: config item enp1s0f1.BMCA is 0 ptp4l[35843.711]: config item enp1s0f1.network_transport is 3 ptp4l[35843.711]: config item enp1s0f1.delayAsymmetry is 0 ptp4l[35843.711]: config item enp1s0f1.follow_up_info is 0 ptp4l[35843.711]: config item enp1s0f1.freq_est_interval is 1 ptp4l[35843.711]: config item enp1s0f1.msg_interval_request is 0 ptp4l[35843.712]: config item enp1s0f1.net_sync_monitor is 0 ptp4l[35843.712]: config item enp1s0f1.path_trace_enabled is 0 ptp4l[35843.712]: config item enp1s0f1.tc_spanning_tree is 0 ptp4l[35843.712]: config item enp1s0f1.ingressLatency is 0 ptp4l[35843.712]: config item enp1s0f1.egressLatency is 0 ptp4l[35843.712]: config item enp1s0f1.delay_mechanism is 0 ptp4l[35843.712]: config item enp1s0f1.unicast_master_table is 0 ptp4l[35843.712]: config item enp1s0f1.unicast_listen is 0 ptp4l[35843.712]: config item enp1s0f1.hybrid_e2e is 0 ptp4l[35843.712]: config item enp1s0f1.fault_badpeernet_interval is 16 ptp4l[35843.712]: config item enp1s0f1.fault_reset_interval is 4 ptp4l[35843.712]: config item enp1s0f1.delay_filter_length is 10 ptp4l[35843.712]: config item enp1s0f1.delay_filter is 1 ptp4l[35843.712]: config item enp1s0f1.tsproc_mode is 0 ptp4l[35843.712]: config item enp1s0f1.logMinDelayReqInterval is 0 ptp4l[35843.712]: config item enp1s0f1.logAnnounceInterval is 1 ptp4l[35843.712]: config item enp1s0f1.inhibit_announce is 0 ptp4l[35843.712]: config item enp1s0f1.ignore_source_id is 0 ptp4l[35843.712]: config item enp1s0f1.announceReceiptTimeout is 3 ptp4l[35843.712]: config item enp1s0f1.syncReceiptTimeout is 0 ptp4l[35843.712]: config item enp1s0f1.transportSpecific is 0 ptp4l[35843.712]: config item enp1s0f1.ignore_transport_specific is 0 ptp4l[35843.712]: config item enp1s0f1.G.8275.portDS.localPriority is 128 ptp4l[35843.712]: config item enp1s0f1.logSyncInterval is 0 ptp4l[35843.712]: config item enp1s0f1.operLogSyncInterval is 0 ptp4l[35843.712]: config item enp1s0f1.logMinPdelayReqInterval is 0 ptp4l[35843.712]: config item enp1s0f1.operLogPdelayReqInterval is 0 ptp4l[35843.712]: config item enp1s0f1.neighborPropDelayThresh is 20000000 ptp4l[35843.712]: config item enp1s0f1.min_neighbor_prop_delay is -20000000 ptp4l[35843.712]: config item enp1s0f1.delay_response_timeout is 0 ptp4l[35843.712]: config item enp1s0f1.asCapable is 1 ptp4l[35843.712]: config item enp1s0f1.inhibit_delay_req is 0 ptp4l[35843.712]: config item enp1s0f1.ptp_dst_mac is '01:1B:19:00:00:00' ptp4l[35843.712]: config item enp1s0f1.p2p_dst_mac is '01:80:C2:00:00:0E' ptp4l[35843.712]: config item global.socket_priority is 0 ptp4l[35843.760]: port 1 (enp1s0f1): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[35843.760]: config item /var/run/ptp4l.logMinDelayReqInterval is 0 ptp4l[35843.760]: config item /var/run/ptp4l.logAnnounceInterval is 1 ptp4l[35843.760]: config item /var/run/ptp4l.inhibit_announce is 0 ptp4l[35843.761]: config item /var/run/ptp4l.ignore_source_id is 0 ptp4l[35843.761]: config item /var/run/ptp4l.announceReceiptTimeout is 0 ptp4l[35843.761]: config item /var/run/ptp4l.syncReceiptTimeout is 0 ptp4l[35843.761]: config item /var/run/ptp4l.transportSpecific is 0 ptp4l[35843.761]: config item /var/run/ptp4l.ignore_transport_specific is 0 ptp4l[35843.761]: config item /var/run/ptp4l.G.8275.portDS.localPriority is 128 ptp4l[35843.761]: config item /var/run/ptp4l.logSyncInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4l.operLogSyncInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4l.logMinPdelayReqInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4l.operLogPdelayReqInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4l.neighborPropDelayThresh is 20000000 ptp4l[35843.761]: config item /var/run/ptp4l.min_neighbor_prop_delay is -20000000 ptp4l[35843.761]: config item /var/run/ptp4l.delay_response_timeout is 0 ptp4l[35843.761]: config item /var/run/ptp4l.asCapable is 1 ptp4l[35843.761]: config item /var/run/ptp4l.inhibit_delay_req is 0 ptp4l[35843.761]: config item (null).uds_ro_address is '/var/run/ptp4lro' ptp4l[35843.761]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[35843.761]: config item /var/run/ptp4l.uds_file_mode is 432 ptp4l[35843.761]: port 0 (/var/run/ptp4l): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[35843.761]: config item /var/run/ptp4lro.logMinDelayReqInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.logAnnounceInterval is 1 ptp4l[35843.761]: config item /var/run/ptp4lro.inhibit_announce is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.ignore_source_id is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.announceReceiptTimeout is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.syncReceiptTimeout is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.transportSpecific is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.ignore_transport_specific is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.G.8275.portDS.localPriority is 128 ptp4l[35843.761]: config item /var/run/ptp4lro.logSyncInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.operLogSyncInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.logMinPdelayReqInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.operLogPdelayReqInterval is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.neighborPropDelayThresh is 20000000 ptp4l[35843.761]: config item /var/run/ptp4lro.min_neighbor_prop_delay is -20000000 ptp4l[35843.761]: config item /var/run/ptp4lro.delay_response_timeout is 0 ptp4l[35843.761]: config item /var/run/ptp4lro.asCapable is 1 ptp4l[35843.761]: config item /var/run/ptp4lro.inhibit_delay_req is 0 ptp4l[35843.761]: config item (null).uds_ro_address is '/var/run/ptp4lro' ptp4l[35843.761]: config item (null).uds_address is '/var/run/ptp4l' ptp4l[35843.761]: config item /var/run/ptp4lro.uds_ro_file_mode is 438 ptp4l[35843.761]: port 0 (/var/run/ptp4lro): INITIALIZING to LISTENING on INIT_COMPLETE ptp4l[35843.761]: port 1 (enp1s0f1): received link status notification ptp4l[35843.761]: interface index 3 is up ptp4l[35844.223]: port 1 (enp1s0f1): setting asCapable ptp4l[35844.223]: port 1 (enp1s0f1): peer detected, switch to P2P ptp4l[35844.223]: port 1 (enp1s0f1): peer port id set to 000adc.fffe.580b00-3 ptp4l[35844.707]: port 1 (enp1s0f1): new foreign master 000adc.fffe.580b00-1 ptp4l[35845.223]: port 1 (enp1s0f1): delay timeout ptp4l[35846.224]: port 1 (enp1s0f1): delay timeout ptp4l[35846.713]: selected best master clock 000adc.fffe.580b00 ptp4l[35846.713]: running in a temporal vortex ptp4l[35846.713]: updating UTC offset to 36 ptp4l[35846.713]: port 1 (enp1s0f1): LISTENING to UNCALIBRATED on RS_SLAVE ptp4l[35847.224]: port 1 (enp1s0f1): delay timeout ptp4l[35848.224]: port 1 (enp1s0f1): delay timeout ptp4l[35849.224]: port 1 (enp1s0f1): delay timeout ptp4l[35850.224]: port 1 (enp1s0f1): delay timeout ptp4l[35851.224]: port 1 (enp1s0f1): delay timeout ptp4l[35852.224]: port 1 (enp1s0f1): delay timeout ptp4l[35853.225]: port 1 (enp1s0f1): delay timeout ptp4l[35854.225]: port 1 (enp1s0f1): delay timeout ptp4l[35855.225]: port 1 (enp1s0f1): delay timeout ptp4l[35856.225]: port 1 (enp1s0f1): delay timeout ptp4l[35857.225]: port 1 (enp1s0f1): delay timeout ptp4l[35858.226]: port 1 (enp1s0f1): delay timeout ptp4l[35859.226]: port 1 (enp1s0f1): delay timeout ptp4l[35860.226]: port 1 (enp1s0f1): delay timeout ptp4l[35861.226]: port 1 (enp1s0f1): delay timeout ptp4l[35862.226]: port 1 (enp1s0f1): delay timeout ptp4l[35863.227]: port 1 (enp1s0f1): delay timeout ptp4l[35864.227]: port 1 (enp1s0f1): delay timeout ptp4l[35865.227]: port 1 (enp1s0f1): delay timeout ptp4l[35866.227]: port 1 (enp1s0f1): delay timeout ptp4l[35867.227]: port 1 (enp1s0f1): delay timeout ptp4l[35868.228]: port 1 (enp1s0f1): delay timeout ptp4l[35869.228]: port 1 (enp1s0f1): delay timeout ptp4l[35870.046]: port 1 (enp1s0f1): received link status notification ptp4l[35870.046]: interface index 3 is up ptp4l[35870.102]: port 1 (enp1s0f1): received link status notification ptp4l[35870.102]: interface index 3 is up ptp4l[35870.228]: port 1 (enp1s0f1): delay timeout ptp4l[35871.228]: port 1 (enp1s0f1): delay timeout ptp4l[35872.228]: port 1 (enp1s0f1): delay timeout ptp4l[35873.228]: port 1 (enp1s0f1): delay timeout ptp4l[35874.229]: port 1 (enp1s0f1): delay timeout ptp4l[35875.229]: port 1 (enp1s0f1): delay timeout ptp4l[35876.229]: port 1 (enp1s0f1): delay timeout