Hi,

So I think I have ptp4l running ok:


ethtool -T eth0

Time stamping parameters for eth0:
Capabilities:
        hardware-transmit     (SOF_TIMESTAMPING_TX_HARDWARE)
        software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
        hardware-receive      (SOF_TIMESTAMPING_RX_HARDWARE)
        software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
        software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
        hardware-raw-clock    (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
        off                   (HWTSTAMP_TX_OFF)
        on                    (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
        none                  (HWTSTAMP_FILTER_NONE)
        all                   (HWTSTAMP_FILTER_ALL)



And when I run ptp4l from command line I get:

# ptp4l -i eth0 -f /etc/linuxptp/ptp4l.conf -m -q -l 7 -s
ptp4l[3314.894]: config item (null).assume_two_step is 0
ptp4l[3314.894]: config item (null).check_fup_sync is 0
ptp4l[3314.894]: config item (null).tx_timestamp_timeout is 200
ptp4l[3314.894]: config item (null).clock_servo is 0
ptp4l[3314.894]: config item (null).clock_type is 32768
ptp4l[3314.894]: config item (null).clock_servo is 0
ptp4l[3314.894]: config item (null).clockClass is 248
ptp4l[3314.894]: config item (null).clockAccuracy is 254
ptp4l[3314.894]: config item (null).offsetScaledLogVariance is 65535
ptp4l[3314.894]: config item (null).productDescription is ';;'
ptp4l[3314.894]: config item (null).revisionData is ';;'
ptp4l[3314.894]: config item (null).userDescription is ';'
ptp4l[3314.894]: config item (null).manufacturerIdentity is '00:00:00'
ptp4l[3314.894]: config item (null).domainNumber is 44
ptp4l[3314.894]: config item (null).slaveOnly is 1
ptp4l[3314.894]: config item (null).gmCapable is 1
ptp4l[3314.894]: config item (null).gmCapable is 1
ptp4l[3314.894]: config item (null).G.8275.defaultDS.localPriority is 128
ptp4l[3314.894]: config item (null).time_stamping is 1
ptp4l[3314.894]: config item (null).twoStepFlag is 1
ptp4l[3314.894]: config item (null).twoStepFlag is 1
ptp4l[3314.894]: config item (null).time_stamping is 1
ptp4l[3314.894]: config item (null).priority1 is 128
ptp4l[3314.894]: config item (null).priority2 is 128
ptp4l[3314.895]: interface index 2 is up
ptp4l[3314.895]: config item (null).free_running is 0
ptp4l[3314.895]: selected /dev/ptp0 as PTP clock
ptp4l[3314.895]: config item (null).uds_address is '/var/run/ptp4l'
ptp4l[3314.895]: section item /var/run/ptp4l.announceReceiptTimeout now 0
ptp4l[3314.895]: section item /var/run/ptp4l.delay_mechanism now 0
ptp4l[3314.895]: section item /var/run/ptp4l.network_transport now 0
ptp4l[3314.895]: section item /var/run/ptp4l.delay_filter_length now 1
ptp4l[3314.895]: config item (null).free_running is 0
ptp4l[3314.895]: config item (null).freq_est_interval is 1
ptp4l[3314.895]: config item (null).gmCapable is 1
ptp4l[3314.895]: config item (null).kernel_leap is 1
ptp4l[3314.895]: config item (null).utc_offset is 37
ptp4l[3314.895]: config item (null).timeSource is 160
ptp4l[3314.895]: config item (null).pi_proportional_const is 0.000000
ptp4l[3314.895]: config item (null).pi_integral_const is 0.000000
ptp4l[3314.895]: config item (null).pi_proportional_scale is 0.000000
ptp4l[3314.895]: config item (null).pi_proportional_exponent is -0.300000
ptp4l[3314.895]: config item (null).pi_proportional_norm_max is 0.700000
ptp4l[3314.895]: config item (null).pi_integral_scale is 0.000000
ptp4l[3314.895]: config item (null).pi_integral_exponent is 0.400000
ptp4l[3314.895]: config item (null).pi_integral_norm_max is 0.300000
ptp4l[3314.895]: config item (null).step_threshold is 0.000000
ptp4l[3314.895]: config item (null).first_step_threshold is 0.000020
ptp4l[3314.895]: config item (null).max_frequency is 900000000
ptp4l[3314.895]: config item (null).dataset_comparison is 1
ptp4l[3314.895]: config item (null).tsproc_mode is 0
ptp4l[3314.895]: config item (null).delay_filter is 1
ptp4l[3314.895]: config item (null).delay_filter_length is 10
ptp4l[3314.895]: config item (null).initial_delay is 0
ptp4l[3314.895]: config item (null).summary_interval is 4
ptp4l[3314.895]: config item (null).sanity_freq_limit is 200000000
ptp4l[3314.895]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000
ptp4l[3314.895]: config item /var/run/ptp4l.boundary_clock_jbod is 0
ptp4l[3314.895]: config item /var/run/ptp4l.network_transport is 0
ptp4l[3314.895]: config item /var/run/ptp4l.delayAsymmetry is 0
ptp4l[3314.895]: config item /var/run/ptp4l.follow_up_info is 0
ptp4l[3314.895]: config item /var/run/ptp4l.freq_est_interval is 1
ptp4l[3314.895]: config item /var/run/ptp4l.net_sync_monitor is 0
ptp4l[3314.895]: config item /var/run/ptp4l.path_trace_enabled is 0
ptp4l[3314.895]: config item /var/run/ptp4l.tc_spanning_tree is 0
ptp4l[3314.895]: config item /var/run/ptp4l.ingressLatency is 0
ptp4l[3314.895]: config item /var/run/ptp4l.egressLatency is 0
ptp4l[3314.895]: config item /var/run/ptp4l.delay_mechanism is 0
ptp4l[3314.895]: config item /var/run/ptp4l.hybrid_e2e is 1
ptp4l[3314.895]: port 0: hybrid_e2e only works with E2E
ptp4l[3314.895]: config item /var/run/ptp4l.fault_badpeernet_interval is 16
ptp4l[3314.895]: config item /var/run/ptp4l.fault_reset_interval is 4
ptp4l[3314.895]: config item /var/run/ptp4l.tsproc_mode is 0
ptp4l[3314.895]: config item /var/run/ptp4l.delay_filter is 1
ptp4l[3314.895]: config item /var/run/ptp4l.delay_filter_length is 1
ptp4l[3314.895]: config item eth0.boundary_clock_jbod is 0
ptp4l[3314.895]: config item eth0.network_transport is 1
ptp4l[3314.895]: config item eth0.delayAsymmetry is 0
ptp4l[3314.895]: config item eth0.follow_up_info is 0
ptp4l[3314.895]: config item eth0.freq_est_interval is 1
ptp4l[3314.895]: config item eth0.net_sync_monitor is 0
ptp4l[3314.895]: config item eth0.path_trace_enabled is 0
ptp4l[3314.895]: config item eth0.tc_spanning_tree is 0
ptp4l[3314.895]: config item eth0.ingressLatency is 0
ptp4l[3314.895]: config item eth0.egressLatency is 0
ptp4l[3314.896]: config item eth0.delay_mechanism is 1
ptp4l[3314.896]: config item eth0.unicast_master_table is 1
ptp4l[3314.896]: config item eth0.unicast_req_duration is 60
ptp4l[3314.896]: section item eth0.hybrid_e2e now 1
ptp4l[3314.896]: config item eth0.unicast_listen is 1
ptp4l[3314.896]: section item eth0.hybrid_e2e now 1
ptp4l[3314.896]: config item eth0.inhibit_multicast_service is 1
ptp4l[3314.896]: config item eth0.hybrid_e2e is 1
ptp4l[3314.896]: config item eth0.fault_badpeernet_interval is 16
ptp4l[3314.896]: config item eth0.fault_reset_interval is 4
ptp4l[3314.896]: config item eth0.tsproc_mode is 0
ptp4l[3314.896]: config item eth0.delay_filter is 1
ptp4l[3314.896]: config item eth0.delay_filter_length is 10
ptp4l[3314.896]: config item eth0.logMinDelayReqInterval is 0
ptp4l[3314.896]: config item eth0.logAnnounceInterval is 1
ptp4l[3314.896]: config item eth0.announceReceiptTimeout is 3
ptp4l[3314.896]: config item eth0.syncReceiptTimeout is 0
ptp4l[3314.896]: config item eth0.transportSpecific is 0
ptp4l[3314.896]: config item eth0.ignore_transport_specific is 0
ptp4l[3314.896]: config item eth0.masterOnly is 0
ptp4l[3314.896]: config item eth0.G.8275.portDS.localPriority is 128
ptp4l[3314.896]: config item eth0.logSyncInterval is 0
ptp4l[3314.896]: config item eth0.logMinPdelayReqInterval is 0
ptp4l[3314.896]: config item eth0.neighborPropDelayThresh is 20000000
ptp4l[3314.896]: config item eth0.min_neighbor_prop_delay is -20000000
ptp4l[3314.896]: config item eth0.udp_ttl is 1
ptp4l[3314.896]: driver changed our HWTSTAMP options
ptp4l[3314.896]: tx_type   1 not 1
ptp4l[3314.896]: rx_filter 1 not 12
ptp4l[3314.896]: config item (null).dscp_event is 0
ptp4l[3314.896]: config item (null).dscp_general is 0
ptp4l[3314.896]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[3314.897]: config item /var/run/ptp4l.logMinDelayReqInterval is 0
ptp4l[3314.897]: config item /var/run/ptp4l.logAnnounceInterval is 1
ptp4l[3314.897]: config item /var/run/ptp4l.announceReceiptTimeout is 0
ptp4l[3314.897]: config item /var/run/ptp4l.syncReceiptTimeout is 0
ptp4l[3314.897]: config item /var/run/ptp4l.transportSpecific is 0
ptp4l[3314.897]: config item /var/run/ptp4l.ignore_transport_specific is 0
ptp4l[3314.897]: config item /var/run/ptp4l.masterOnly is 0
ptp4l[3314.897]: config item /var/run/ptp4l.G.8275.portDS.localPriority is 128
ptp4l[3314.897]: config item /var/run/ptp4l.logSyncInterval is 0
ptp4l[3314.897]: config item /var/run/ptp4l.logMinPdelayReqInterval is 0
ptp4l[3314.897]: config item /var/run/ptp4l.neighborPropDelayThresh is 20000000
ptp4l[3314.897]: config item /var/run/ptp4l.min_neighbor_prop_delay is -20000000
ptp4l[3314.897]: config item (null).uds_address is '/var/run/ptp4l'
ptp4l[3314.897]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[3314.897]: port 1: received link status notification
ptp4l[3314.897]: interface index 2 is up
ptp4l[3318.896]: port 1: unicast request timeout
ptp4l[3318.899]: port 1: setting asCapable
ptp4l[3318.899]: port 1: unicast ANNOUNCE granted for 60 sec
ptp4l[3318.899]: port 1: renewal timeout at 3363
ptp4l[3319.031]: port 1: new foreign master 001747.fffe.700d6b-1
ptp4l[3322.462]: port 1: announce timeout
ptp4l[3322.462]: config item eth0.udp_ttl is 1
ptp4l[3322.462]: driver changed our HWTSTAMP options
ptp4l[3322.462]: tx_type   1 not 1
ptp4l[3322.462]: rx_filter 1 not 12
ptp4l[3322.462]: config item (null).dscp_event is 0
ptp4l[3322.462]: config item (null).dscp_general is 0
ptp4l[3322.462]: selected local clock 00049f.fffe.059fa2 as best master
ptp4l[3322.897]: port 1: unicast request timeout
ptp4l[3323.039]: selected best master clock 001747.fffe.700d6b
ptp4l[3323.039]: updating UTC offset to 37
ptp4l[3323.039]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
ptp4l[3324.217]: port 1: delay timeout
ptp4l[3325.248]: port 1: delay timeout
ptp4l[3326.022]: port 1: delay timeout
ptp4l[3326.897]: port 1: unicast request timeout
ptp4l[3326.898]: port 1: unicast SYNC granted for 60 sec
ptp4l[3326.898]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000
ptp4l[3326.898]: port 1: unicast DELAY_RESP granted for 60 sec
ptp4l[3327.866]: port 1: delay timeout
ptp4l[3327.869]: delay   filtered       2550   raw       2550
ptp4l[3329.163]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[3329.494]: port 1: delay timeout
ptp4l[3329.496]: delay   filtered       2547   raw       2545
ptp4l[3329.862]: port 1: delay timeout
ptp4l[3329.864]: delay   filtered       2545   raw       2489
ptp4l[3330.897]: port 1: unicast request timeout
ptp4l[3331.225]: port 1: delay timeout
ptp4l[3331.227]: delay   filtered       2517   raw       2467
ptp4l[3331.660]: port 1: delay timeout
ptp4l[3331.662]: delay   filtered       2489   raw       2015
ptp4l[3333.552]: port 1: delay timeout
ptp4l[3333.554]: delay   filtered       2517   raw       2687
ptp4l[3334.897]: port 1: unicast request timeout
ptp4l[3335.001]: port 1: delay timeout
ptp4l[3335.003]: delay   filtered       2545   raw       2729
ptp4l[3336.245]: port 1: delay timeout
ptp4l[3336.247]: delay   filtered       2541   raw       2537
ptp4l[3336.947]: port 1: delay timeout
ptp4l[3336.949]: delay   filtered       2545   raw       2684
ptp4l[3337.486]: port 1: delay timeout
ptp4l[3337.488]: delay   filtered       2541   raw       2491
ptp4l[3338.184]: port 1: delay timeout
ptp4l[3338.185]: delay   filtered       2541   raw       2560
ptp4l[3338.897]: port 1: unicast request timeout
ptp4l[3339.068]: port 1: delay timeout
ptp4l[3339.070]: delay   filtered       2548   raw       2649
ptp4l[3340.734]: port 1: delay timeout
ptp4l[3340.735]: delay   filtered       2548   raw       2451
ptp4l[3341.182]: port 1: delay timeout
ptp4l[3341.185]: delay   filtered       2548   raw       2436
ptp4l[3341.651]: port 1: delay timeout
ptp4l[3341.652]: delay   filtered       2570   raw       2581
ptp4l[3341.962]: port 1: delay timeout
ptp4l[3341.964]: delay   filtered       2561   raw       2563
ptp4l[3342.897]: port 1: unicast request timeout
ptp4l[3343.216]: rms 3268 max 7308 freq -23478 +/- 1865 delay  2541 +/-  18
ptp4l[3343.896]: port 1: delay timeout
ptp4l[3343.897]: delay   filtered       2558   raw       2557
ptp4l[3345.236]: port 1: delay timeout
ptp4l[3345.239]: delay   filtered       2558   raw       2527
ptp4l[3345.657]: port 1: delay timeout
ptp4l[3345.659]: delay   filtered       2547   raw       2538
ptp4l[3346.841]: port 1: delay timeout



... but when I try to run phc2sys with the -m option all I get is "Waiting for 
ptp4l..."

I've tried phc2sys -a -r -m, phc2sys -s eth0 -c CLOCK_REALTIME -w -m and a 
bunch of other combinations with same result.

So I'm not understanding something or doing something right.  I'm not even 100% 
if I even need to be running phc2sys.

Also, I tried to make ptp4l start as a service with systemd.  When I do a 'ps' 
I see it's started at bootup but can't see if it's synced properly.  I'm 
basically using NXP's Yocto build for the IMX8 Mini and have busybox versions 
of syslog etc.  When I look at /var/log/messages I don't see any ptp4l related 
messages and when I try to run any of the pmc commands nothing comes back at 
all.

I've tried:

pmc -u -b 0 'GET TIME_STATUS_NP'
pmc -u -b 0 'GET CURRENT_DATA_SET'

... and get nothing.

Any ideas how I can tell if the ptp4l service is synced up properly???

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

Reply via email to