diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2017-11-29 12:24:28 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-12-04 10:15:10 +0100 |
commit | 1a2632e9b0f15f44790cc4c462da742c8cad8984 (patch) | |
tree | 81fa94599656b1dd66dd1a51f9ea4d044e3796d1 /projectroot | |
parent | 7e13ca66f7a3b72ee96195f2a4cf9b17aebfb27f (diff) | |
download | ptxdist-1a2632e9b0f15f44790cc4c462da742c8cad8984.tar.gz ptxdist-1a2632e9b0f15f44790cc4c462da742c8cad8984.tar.xz |
linuxptp: Update package and configs
Usualy we can not ensure only to use transparent clock switches.
Therefor we stick to the default E2E request-response mechanism.
The following options are highly depending on the usecase
so we remove them for the defaults.
path_trace_enabled
follow_up_info
tx_timestamp_timeout
With all other options being simple defaults the whole
config can be removed.
We also add some service files to start the ptp4l service on
dev eth0. In case the ptp4l daemon is configured
we add the option to install the phc2sys daemon to adjust the
system time by the ptp master.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot')
-rw-r--r-- | projectroot/etc/gPTP.conf | 28 | ||||
-rw-r--r-- | projectroot/usr/lib/systemd/system/phc2sys.service | 10 | ||||
-rw-r--r-- | projectroot/usr/lib/systemd/system/ptp4l.service | 12 |
3 files changed, 22 insertions, 28 deletions
diff --git a/projectroot/etc/gPTP.conf b/projectroot/etc/gPTP.conf deleted file mode 100644 index 5bbbaf288..000000000 --- a/projectroot/etc/gPTP.conf +++ /dev/null @@ -1,28 +0,0 @@ -[global] -# -# Run time options -# -assume_two_step 1 -logging_level 6 -path_trace_enabled 1 -follow_up_info 1 -tx_timestamp_timeout 40 -use_syslog 1 -verbose 0 -summary_interval 0 -# -# Transport options -# -transportSpecific 0x1 -ptp_dst_mac 01:80:C2:00:00:0E -p2p_dst_mac 01:80:C2:00:00:0E -uds_address /var/run/ptp4l -# -# Default interface options -# -network_transport L2 -delay_mechanism P2P -time_stamping hardware - -[eth0] - diff --git a/projectroot/usr/lib/systemd/system/phc2sys.service b/projectroot/usr/lib/systemd/system/phc2sys.service new file mode 100644 index 000000000..992a95484 --- /dev/null +++ b/projectroot/usr/lib/systemd/system/phc2sys.service @@ -0,0 +1,10 @@ +[Unit] +Description=Precision Time Protocol system clock synchronization +Wants=ptp4l@.service + +[Service] +ExecStart=/usr/sbin/phc2sys -a -r +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/projectroot/usr/lib/systemd/system/ptp4l.service b/projectroot/usr/lib/systemd/system/ptp4l.service new file mode 100644 index 000000000..93cc89519 --- /dev/null +++ b/projectroot/usr/lib/systemd/system/ptp4l.service @@ -0,0 +1,12 @@ +[Unit] +Description=Precision Time Protocol (PTP) service +BindsTo = sys-subsystem-net-devices-eth0.device +After = sys-subsystem-net-devices-eth0.device + +[Service] +Type=simple +ExecStart=/usr/sbin/ptp4l -i eth0 +Restart=always + +[Install] +WantedBy=multi-user.target |