From 9246433eb9ac96dcfc7e7e48abcf419beb5622d0 Mon Sep 17 00:00:00 2001 From: Jan Luebbe Date: Sun, 19 Jul 2015 20:40:02 +0200 Subject: [PATCH] ntp: update the configuration to use GPS and PPS The NTPd/GPSd SHM interface does not seem to work. Instead use the native GPSd refclock (46) and configure it with the measured offset. Signed-off-by: Jan Luebbe --- recipes-bsp/ntp/files/sysmocom-odu/ntp.conf | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/recipes-bsp/ntp/files/sysmocom-odu/ntp.conf b/recipes-bsp/ntp/files/sysmocom-odu/ntp.conf index 4b75931..8bcfb7d 100644 --- a/recipes-bsp/ntp/files/sysmocom-odu/ntp.conf +++ b/recipes-bsp/ntp/files/sysmocom-odu/ntp.conf @@ -3,6 +3,10 @@ # machine - it records the machine specific clock error driftfile /etc/ntp.drift +# allow a larger distance between serial and PPS +# mindist is in seconds +tos mindist 0.250 + # This obtains a random server which will be close # (in IP terms) to the machine. Add other servers # as required, or change this. @@ -14,11 +18,11 @@ server 127.127.1.0 fudge 127.127.1.0 stratum 14 # GPSD interface for NMEA based time -server 127.127.28.0 -fudge 127.127.28.0 refid GPS +server 127.127.46.0 minpoll 4 prefer +fudge 127.127.46.0 refid GPS stratum 1 time2 0.720 # PPS interface to kernel -server 127.127.22.0 +server 127.127.22.0 minpoll 4 fudge 127.127.22.0 refid PPS # Defining a default security setting, allowing queries but declining