Re: FreeBSD refclock error
In article <44FF015A.6060600@networktest.com>,
David Newman <dnewman@networktest.com> wrote:
[color=blue]
> refclock_newpeer: clock type 26 invalid
>
>This is with the stock install of FreeBSD; I didn't install ntp from
>ports, and I have not recompiled the kernel. (If I do need to recompile
>the kernel, please let me know what option(s) to use.)[/color]
You need to recompile ntpd. FreeBSD ships ntpd by default without
refclock drivers.
-GAWollman
--
Garrett A. Wollman | As the Constitution endures, persons in every
[email]wollman@csail.mit.edu[/email] | generation can invoke its principles in their own
Opinions not those | search for greater freedom.
of MIT or CSAIL. | - A. Kennedy, Lawrence v. Texas, 539 U.S. 558 (2003)
Re: FreeBSD refclock error
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Garrett Wollman wrote:[color=blue]
> In article <44FF015A.6060600@networktest.com>,
> David Newman <dnewman@networktest.com> wrote:
>[color=green]
>> refclock_newpeer: clock type 26 invalid
>>
>> This is with the stock install of FreeBSD; I didn't install ntp from
>> ports, and I have not recompiled the kernel. (If I do need to recompile
>> the kernel, please let me know what option(s) to use.)[/color]
>
> You need to recompile ntpd. FreeBSD ships ntpd by default without
> refclock drivers.[/color]
- From ports? From source? Either way, where do I spec compile-time
option(s), and which option(s) do I need for the 58503A?
thanks again
dn
obvious newbie
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFE/5t6yPxGVjntI4IRAkh/AKDxXMQwmjXlZmoa0jCp6kmhuonqfACg9zpa
T6qWILSP3mCv6JvOQ/ELoB8=
=5dT5
-----END PGP SIGNATURE-----
_______________________________________________
questions mailing list
[email]questions@lists.ntp.isc.org[/email]
[url]https://lists.ntp.isc.org/mailman/listinfo/questions[/url]
Re: FreeBSD refclock error
David Newman wrote:[color=blue]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Garrett Wollman wrote:[color=green]
>> In article <44FF015A.6060600@networktest.com>,
>> David Newman <dnewman@networktest.com> wrote:
>>[color=darkred]
>>> refclock_newpeer: clock type 26 invalid
>>>
>>> This is with the stock install of FreeBSD; I didn't install ntp from
>>> ports, and I have not recompiled the kernel. (If I do need to recompile
>>> the kernel, please let me know what option(s) to use.)[/color]
>> You need to recompile ntpd. FreeBSD ships ntpd by default without
>> refclock drivers.[/color]
>
> - From ports? From source? Either way, where do I spec compile-time
> option(s), and which option(s) do I need for the 58503A?[/color]
'Use the Source, Luke!'
I.e. by all means grab the official distribution from
[url]http://www.ntp.org/[/url] ! FreeBSD is pretty much _the_ preferred platform
for the reference installation.
Terje
--
- <Terje.Mathisen@hda.hydro.com>
"almost all programming can be viewed as an exercise in caching"
Re: FreeBSD refclock error
By my grep, you want the hpgps refclock.
When you get the source, run 'configure --help' and I believe you'll see
that the refclock you want is built by default.'
H
Re: FreeBSD refclock error
David Newman wrote:
[color=blue]
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Greetings. I have a FreeBSD 6.1 x86_64 system and an HP 58503A GPS
> receiver I'd like to use as a time source. The HP receiver displays time
> via tip or minicom, but when loading ntpd, FreeBSD returns this error:
>
> refclock_newpeer: clock type 26 invalid
>
> This is with the stock install of FreeBSD; I didn't install ntp from
> ports, and I have not recompiled the kernel. (If I do need to recompile
> the kernel, please let me know what option(s) to use.)
>
> Here is the relevant part of /etc/ntp.conf:
>
> server 127.127.26.0 prefer
> server us.pool.ntp.org
> server us.pool.ntp.org
> server us.pool.ntp.org
> server us.pool.ntp.org
>
> ntpq sees only the four pool servers (duh).
>
> Also, I symlinked the serial port to /dev/hpgps0:
>
> lrwxr-xr-x 1 root wheel 10 Sep 6 00:25 /dev/hpgps0 -> /dev/cuad1
>
> I'm new to ntp. What's missing here?
>[/color]
Probably the ntpd driver for your HP 58503A (driver 26). Build a copy
of the reference distribution from source! By default, all drivers are
built and linked. Don't know what the BSD distribution does by default
but it looks as if it doesn't build all the refclock drivers.
mlockall() issue (was: FreeBSD refclock error)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Terje Mathisen wrote:
[color=blue]
> 'Use the Source, Luke!'
>
> I.e. by all means grab the official distribution from
> [url]http://www.ntp.org/[/url] ! FreeBSD is pretty much _the_ preferred platform
> for the reference installation.[/color]
Maybe so, but I'm getting an mlockall() error when loading 4.2.2p3.
Debug output and ntp.conf below.
This is on FBSD 6.1 amd64.
I searched and found some mlockall() bug reports, but no workarounds.
Any ideas how to get this running?
thanks
dn
lance# netstat -an | grep 123
lance# /usr/local/bin/ntpd -D2 -g -p /var/run/ntpd.pid
Debug1: 2 -> 2 = 2
ntpd 4.2.2p3@1.1577-o Thu Sep 7 14:16:21 UTC 2006 (3)
Debug1: 2 -> 2 = 2
addto_syslog: mlockall(): Resource temporarily unavailable
ntp.conf:
server 127.127.26.0 prefer
#server us.pool.ntp.org
#server us.pool.ntp.org
##
## Undisciplined Local Clock. This is a fake driver intended for backup
## and when no outside source of synchronized time is available.
##
server 127.127.1.0 # local clock (LCL)
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
##
## Miscellaneous stuff
##
driftfile /var/db/ntp.drift
logfile /var/log/ntp.log # alternate log file
# logconfig=syncall +clockall
# logconfig =syncstatus + sysevents + clockall
# logconfig =all
<some restrict stuff omitted>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iD8DBQFFAGhMyPxGVjntI4IRAlNEAJ4x0+YnL9Nkd17MPGWCdQPEBc3NuwCgyIAs
4fK0Bvk5siA1SVPaDO8Dq5Q=
=JsdT
-----END PGP SIGNATURE-----
_______________________________________________
questions mailing list
[email]questions@lists.ntp.isc.org[/email]
[url]https://lists.ntp.isc.org/mailman/listinfo/questions[/url]
Re: FreeBSD refclock error
In article <44FF9B7A.8070203@networktest.com>,
David Newman <dnewman@networktest.com> wrote:[color=blue][color=green]
>> [I wrote:]
>> You need to recompile ntpd. FreeBSD ships ntpd by default without
>> refclock drivers.[/color]
>
>- From ports? From source? Either way, where do I spec compile-time
>option(s), and which option(s) do I need for the 58503A?[/color]
/usr/src/usr.sbin/ntp/Makefile.inc if you want to use the version we
ship. Define CLOCKDEFS with the clock drivers you want.
-GAWollman
--
Garrett A. Wollman | As the Constitution endures, persons in every
[email]wollman@csail.mit.edu[/email] | generation can invoke its principles in their own
Opinions not those | search for greater freedom.
of MIT or CSAIL. | - A. Kennedy, Lawrence v. Texas, 539 U.S. 558 (2003)