[ntp:questions] Configuring FreeBSD 6.2 for use with Garmin GPS 18 LVC

Dennis Hilberg, Jr. timekeeper at dennishilberg.com.invalid
Mon Dec 17 16:41:04 UTC 2007


Speechless wrote:
> On Sun, 16 Dec 2007 23:34:48 -0800, "Dennis Hilberg, Jr."
> <timekeeper at dennishilberg.com.invalid> wrote:
> 
>> Thanks to everyone who replied to this thread.  The server is running 
>> successfully.  I had no problems recompiling and booting the kernel.  If 
>> only the Linux kernel recompile process was as easy!
>>
>> The only issue I have is the GPS is loosing satellite sync periodically, 
>> whereas it rarely lost sync when it was hooked to the Linux box.
> 
> Please post the output from command:  uname -a

apollo$ uname -a
FreeBSD apollo.dennishilberg.com 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Fri Dec 
14 22:33:38 PST 2007 
root at apollo.dennishilberg.com:/usr/obj/usr/src/sys/GENERIC-PPS  i386

>> Also, initially ntpd would stop using the GPS as the system peer shortly 
>> after startup, even though the GPS still had sync.  I rebooted the system, 
>> thinking perhaps the links weren't created correctly, and that seems to have 
>> fixed that issue for now.
> 
> Please post the contents of:  /etc/devfs.conf

apollo$ cat /etc/devfs.conf (comments ommitted)
own     cuad0           root:wheel
perm    cuad0           0660
own     cuad0.init      root:wheel
perm    cuad0.init      0660
own     cuad0.lock      root:wheel
perm    cuad0.lock      0660

link cuad0 gps0

>> I see a lot of this behavior in the ntp log:
>>
>> 16 Dec 12:06:21 ntpd[814]: synchronized to 164.67.62.194, stratum 1
>> 16 Dec 12:06:21 ntpd[814]: kernel time sync status change 2101
>> 16 Dec 12:07:04 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0
>> 16 Dec 12:07:04 ntpd[814]: kernel time sync status change 2107
>> 16 Dec 15:30:05 ntpd[814]: synchronized to 164.67.62.194, stratum 1
>> 16 Dec 15:34:26 ntpd[814]: kernel time sync error 2007
>> 16 Dec 15:43:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0
>> 16 Dec 15:43:16 ntpd[814]: kernel time sync status change 2101
>> 16 Dec 15:43:32 ntpd[814]: kernel time sync status change 2107
>> 16 Dec 17:54:38 ntpd[814]: synchronized to 164.67.62.194, stratum 1
>> 16 Dec 17:57:38 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0
>> 16 Dec 18:07:59 ntpd[814]: kernel time sync error 2307
>> 16 Dec 18:08:17 ntpd[814]: kernel time sync status change 2107
>> 16 Dec 21:13:28 ntpd[814]: synchronized to 164.67.62.194, stratum 1
>> 16 Dec 21:22:12 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0
>> 16 Dec 21:28:30 ntpd[814]: synchronized to 164.67.62.194, stratum 1
>> 16 Dec 21:32:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0
>> 16 Dec 21:33:54 ntpd[814]: synchronized to 164.67.62.194, stratum 1
>> 16 Dec 21:36:43 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0
>> 16 Dec 21:44:27 ntpd[814]: synchronized to 164.67.62.194, stratum 1
>> 16 Dec 21:51:25 ntpd[814]: synchronized to 64.125.78.85, stratum 1
>> 16 Dec 21:55:16 ntpd[814]: synchronized to GPS_NMEA(0), stratum 0
>> 16 Dec 23:15:18 ntpd[814]: kernel time sync error 2307
>> 16 Dec 23:15:33 ntpd[814]: kernel time sync status change 2107
>>
>> I don't know what 'kernel time sync error' and 'kernel time sync status 
>> change' mean, but I'm assuming that when ntpd switches from the GPS to one 
>> of the other internet servers that it's loosing sync.  Thoughts?
> 
> Please post the contents of:  /etc/ntp.conf

apollo$ cat /etc/ntp.conf (comments omitted)

restrict 127.0.0.1

server 127.127.20.0 minpoll 4 prefer
fudge  127.127.20.0 flag3 1

server tick.ucla.edu        iburst
server nist1-sj.WiTime.net  iburst
server time.xmission.com    iburst
server ntp.your.org         iburst

driftfile /var/lib/ntp.drift
logfile /var/log/ntp/ntp.log

statsdir /var/log/ntp/
statistics loopstats peerstats sysstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen sysstats file sysstats type day enable
filegen clockstats file clockstats type day enable

-- 
Dennis Hilberg, Jr.      timekeeper(at)dennishilberg(dot)com
NTP Server Information:  http://saturn.dennishilberg.com/ntp.php




More information about the questions mailing list