summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlias Apalodimas <ilias.apalodimas@linaro.org>2018-10-25 15:27:08 +0300
committerIlias Apalodimas <ilias.apalodimas@linaro.org>2018-10-25 15:41:00 +0300
commit3cd05c3a2d6802555218c99b02403433c84d2068 (patch)
treeee36469f38b6bef3e67e6b6734450ee975dfb931
parent4d3efe22bbcf11ffbf991a338651b360600ad243 (diff)
add phc2sys on ptp sync
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rwxr-xr-xscripts/run-ptp.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/run-ptp.sh b/scripts/run-ptp.sh
index 54c9693..07c4457 100755
--- a/scripts/run-ptp.sh
+++ b/scripts/run-ptp.sh
@@ -12,3 +12,6 @@ echo "#" >> testptp.cfg
echo "transportSpecific 1" >> testptp.cfg
# Run all as masters and let them select
ptp4l -f testptp.cfg -i "$iface" &
+# Sync PTP hardware clock to the system clock
+# system clock is our master
+phc2sys -c "$iface" -s CLOCK_REALTIME -w &