Re: Configuring FreeBSD 6.2 for use with Garmin GPS 18 LVC



From: "Dennis Hilberg, Jr." <timekeeper@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 14 Dec 2007 11:12:00 -0800
Sender: questions-bounces+oberman=es.net@xxxxxxxxxxxxx


Hello,

As the subject line suggests, I would like to set up FreeBSD 6.2 to use my
Garmin GPS 18 LVC as a refclock.

I've been following advice from David Taylor's web page on this subject
http://www.david-taylor.myby.co.uk/ntp/FreeBSD-GPS-PPS.htm , although he
used FreeBSD 5.4.

I have a few questions regarding the configuration. I understand that
'options PPS_SYNC' needs to be added to the kernel config file, and that the
kernel then needs to be recompiled. However, he includes a comment from
Harlan Stenn stating that 'include GENERIC', 'ident PPS-GENERIC', and
'options PPS_SYNC' need to be added to the file /usr/src/sys/i386/conf/PPS .
This file doesn't exist on my system. Do I need to create the file from
scratch with those items in it, or is it something that is created after the
kernel recompile?

I emailed David Taylor with these questions regarding the configuration, and
he replied that he can't quite remember exactly how he configured his
system, and if that PPS file needed to be created from scratch or not. So
he directed me to the newsgroup.

If someone could give me a complete list of steps that need to be taken to
configure FreeBSD to use the GPS 18 LVC, or point me to some documentation
on the matter, I would greatly appreciate it. I'm new to FreeBSD and don't
know my way around.

The idea David Taylor is putting forth is to create a very short kernel
config file named PPS containing only the lines:
include GENERIC
ident PPS-GENERIC
options PPS_SYNC

That way, if you upgrade, any changes in GENERIC will automagically be
folded in. I would change one thing. I would change the nake of the
config file to match the IDENT. It makes it easier to keep track of
things.

Once that is created:
cd /usr/src
make kernel KERNCONF=PPS (or whatever you name the PPS enabled config file)

and reboot the system. If there is a problem with the new kernel, you
can boot the old kernel (kernel.old) to recover.
--
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@xxxxxx Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751
.



Relevant Pages

  • Re: Configuring FreeBSD 6.2 for use with Garmin GPS 18 LVC
    ... I would like to set up FreeBSD 6.2 to use my ... Garmin GPS 18 LVC as a refclock. ... kernel then needs to be recompiled. ... you create a kernel configuration file: ...
    (comp.protocols.time.ntp)
  • Re: Xen/FreeBSD-current issues
    ... The kernel unfortunately panics on startup when the network interface ... in the Xen config file. ... # xm console freebsd ... real memory = 268435456 ...
    (freebsd-current)
  • Question about sound in 5.3-?
    ... I had sound working under FreeBSD 5.2.1 by using device pcm in my kernel ... config file and now under 5.3 I cannot get it to work. ...
    (freebsd-questions)
  • RE: kernel compile problem
    ... Subject: kernel compile problem ... I want to use FreeBSD 7.2 as a simple firewall and VPN at home. ... Before anyone reads your config file, are you sure the sources are ...
    (freebsd-questions)
  • Re: Changing hw.snd.pcm0.buffersize in 4.10.
    ... >> the kernel build operation. ... >config file and any attempt to set it gives an error when config is ... FreeBSD Audio Driver ... that loader reads so I tried adding it there as ...
    (freebsd-questions)