FreeBSD refclock error - NTP

This is a discussion on FreeBSD refclock error - NTP ; -----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 ...

+ Reply to Thread
Results 1 to 10 of 10

Thread: FreeBSD refclock error

  1. FreeBSD refclock error

    -----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?

    thanks

    dn
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.3 (Darwin)

    iD8DBQFE/wFayPxGVjntI4IRAlEZAKCfW9u9fSx6luyNSTICohMGuQFdogC ggmeb
    1i2x5/K6NbLBEAmgYDJJMEs=
    =Z5vu
    -----END PGP SIGNATURE-----
    _______________________________________________
    questions mailing list
    questions@lists.ntp.isc.org
    https://lists.ntp.isc.org/mailman/listinfo/questions


  2. Re: FreeBSD refclock error

    In article <44FF015A.6060600@networktest.com>,
    David Newman wrote:

    > 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.)


    You need to recompile ntpd. FreeBSD ships ntpd by default without
    refclock drivers.

    -GAWollman

    --
    Garrett A. Wollman | As the Constitution endures, persons in every
    wollman@csail.mit.edu | 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)

  3. Re: FreeBSD refclock error

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Garrett Wollman wrote:
    > In article <44FF015A.6060600@networktest.com>,
    > David Newman wrote:
    >
    >> 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.)

    >
    > You need to recompile ntpd. FreeBSD ships ntpd by default without
    > refclock drivers.


    - 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
    questions@lists.ntp.isc.org
    https://lists.ntp.isc.org/mailman/listinfo/questions


  4. Re: FreeBSD refclock error

    David Newman wrote:
    > -----BEGIN PGP SIGNED MESSAGE-----
    > Hash: SHA1
    >
    > Garrett Wollman wrote:
    >> In article <44FF015A.6060600@networktest.com>,
    >> David Newman wrote:
    >>
    >>> 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.)

    >> You need to recompile ntpd. FreeBSD ships ntpd by default without
    >> refclock drivers.

    >
    > - From ports? From source? Either way, where do I spec compile-time
    > option(s), and which option(s) do I need for the 58503A?


    'Use the Source, Luke!'

    I.e. by all means grab the official distribution from
    http://www.ntp.org/ ! FreeBSD is pretty much _the_ preferred platform
    for the reference installation.

    Terje

    --
    -
    "almost all programming can be viewed as an exercise in caching"

  5. 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

  6. Re: FreeBSD refclock error

    David Newman wrote:

    > -----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?
    >


    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.

  7. mlockall() issue (was: FreeBSD refclock error)

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Terje Mathisen wrote:

    > 'Use the Source, Luke!'
    >
    > I.e. by all means grab the official distribution from
    > http://www.ntp.org/ ! FreeBSD is pretty much _the_ preferred platform
    > for the reference installation.


    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



    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.3 (Darwin)

    iD8DBQFFAGhMyPxGVjntI4IRAlNEAJ4x0+YnL9Nkd17MPGWCdQ PEBc3NuwCgyIAs
    4fK0Bvk5siA1SVPaDO8Dq5Q=
    =JsdT
    -----END PGP SIGNATURE-----
    _______________________________________________
    questions mailing list
    questions@lists.ntp.isc.org
    https://lists.ntp.isc.org/mailman/listinfo/questions


  8. Re: mlockall() issue

    David,

    This looks liks http://ntp.isc.org/bugs/show_bug.cgi?id=387

    I'll see what I can do about getting additional debug information in there
    so we can find/fix this problem.

    H

  9. Re: FreeBSD refclock error

    In article <44FF9B7A.8070203@networktest.com>,
    David Newman wrote:
    >> [I wrote:]
    >> You need to recompile ntpd. FreeBSD ships ntpd by default without
    >> refclock drivers.

    >
    >- From ports? From source? Either way, where do I spec compile-time
    >option(s), and which option(s) do I need for the 58503A?


    /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
    wollman@csail.mit.edu | 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)

  10. Re: mlockall() issue

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Harlan Stenn wrote:
    > David,
    >
    > This looks liks http://ntp.isc.org/bugs/show_bug.cgi?id=387
    >
    > I'll see what I can do about getting additional debug information in there
    > so we can find/fix this problem.
    >


    Thanks. FWIW I symlink'd the system's serial port to the HP 58503A device:

    ln -s /dev/cuad0 /dev/hpgps0

    so it shows up like this:

    lrwxr-xr-x 1 root wheel 10 Sep 7 08:58 /dev/hpgps0 -> /dev/cuad0

    Please let me know if you need any other info.

    dn
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.3 (Darwin)

    iD8DBQFFAJ4ZyPxGVjntI4IRAmgnAJ44y7kzLWrjU0reSjox/L6sOlNpxgCdF9gv
    ZgTNJi1nzWytPbnLAnp+IkQ=
    =VODF
    -----END PGP SIGNATURE-----
    _______________________________________________
    questions mailing list
    questions@lists.ntp.isc.org
    https://lists.ntp.isc.org/mailman/listinfo/questions


+ Reply to Thread