diff options
author | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-10-25 15:27:08 +0300 |
---|---|---|
committer | Ilias Apalodimas <ilias.apalodimas@linaro.org> | 2018-10-25 15:41:00 +0300 |
commit | 3cd05c3a2d6802555218c99b02403433c84d2068 (patch) | |
tree | ee36469f38b6bef3e67e6b6734450ee975dfb931 | |
parent | 4d3efe22bbcf11ffbf991a338651b360600ad243 (diff) |
add phc2sys on ptp sync
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
-rwxr-xr-x | scripts/run-ptp.sh | 3 |
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 & |