Hi everyone.
I have managed to seamlessly set up my Debian machine as a PTP master using the
following command :
# ptp4l -f /etc/linuxptp/ptp4l.conf &
And here is /etc/linuxptp/ptp4l.conf (I used the default one, tweaked some
options and added my network interface in the end) :
[global]
#
# Default Data Set
#
twoStepFlag 1
slaveOnly 0
priority1 0
priority2 1
domainNumber 0
clockClass 0
clockAccuracy 0xFE
offsetScaledLogVariance 0xFFFF
free_running 0
freq_est_interval 1
dscp_event 46
dscp_general 34
#
# Port Data Set
#
logAnnounceInterval 1
logSyncInterval -3
logMinDelayReqInterval 0
logMinPdelayReqInterval 0
announceReceiptTimeout 3
syncReceiptTimeout 0
delayAsymmetry 0
fault_reset_interval 4
neighborPropDelayThresh 20000000
#
# Run time options
#
assume_two_step 0
logging_level 7
path_trace_enabled 0
follow_up_info 0
hybrid_e2e 0
tx_timestamp_timeout 1
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
#
network_transport UDPv4
delay_mechanism E2E
time_stamping software
tsproc_mode filter
delay_filter moving_median
delay_filter_length 10
egressLatency 0
ingressLatency 0
boundary_clock_jbod 0
#
# Clock description
#
productDescription GLenoBoby;;
revisionData ;;
manufacturerIdentity 00:00:00
userDescription GLenoBoby's Debian PTP master
timeSource 0xA0
[enp0s25]
There is no problem with it this way. Now I would like to start ptp4l as a
service using :
# service ptp4l start
It outputs nothing to stdout (as expected), and neither to /var/log/messages.
ps aux | grep ptp4l outputs nothing, and when I check journalctl I get the
following :
# journalctl -u ptp4l
Oct 19 13:13:27 GLenovo-Debian systemd[1]: Started Precision Time Protocol
(PTP) service.
Oct 19 13:13:27 GLenovo-Debian ptp4l[2934]: [1185.665] ioctl SIOCETHTOOL
failed: No such device
Oct 19 13:13:27 GLenovo-Debian ptp4l[2934]: [1185.666] config item
(null).assume_two_step is 0
Oct 19 13:13:27 GLenovo-Debian ptp4l[2934]: [1185.666] config item
(null).check_fup_sync is 0
Oct 19 13:13:27 GLenovo-Debian ptp4l[2934]: [1185.666] config item
(null).tx_timestamp_timeout is 1
Oct 19 13:13:27 GLenovo-Debian ptp4l[2934]: failed to create a clock
Oct 19 13:13:27 GLenovo-Debian systemd[1]: ptp4l.service: Main process exited,
code=exited, status=255/n/a
Oct 19 13:13:27 GLenovo-Debian systemd[1]: ptp4l.service: Unit entered failed
state.
Oct 19 13:13:27 GLenovo-Debian systemd[1]: ptp4l.service: Failed with result
'exit-code'.
Whatever the modification I tried in the config file, I could it never start as
a service, only through the ptp4l command.
Am I missing something ? Maybe I am not looking in the right log file ? I am
using the latest linuxptp package from the debian repository.
Here is some info about my system :
Hardware : Lenovo Thinkpad T410
# uname -a
Linux GLenovo-Debian 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08)
x86_64 GNU/Linux
# ethtool -T enp0s25
Time stamping parameters for enp0s25:
Capabilities:
software-transmit (SOF_TIMESTAMPING_TX_SOFTWARE)
software-receive (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none
Thanks in advance for your help !
_______________________________________________
Linuxptp-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-users