You are not logged in.

#1 2015-10-14 08:07:16

ua4000
Member
Registered: 2015-10-14
Posts: 421

[Solved] ntpd + DCF clock at /dev/ttyUSB0

Hi,

I'm new to Arch, but I have used Ubuntu so far.

My Task: setup arch with ntpd and a DCF clock at /dev/ttyUSB0 as stratum 0 input.

Problem: ntpd does not recognize the hardware specific format in /etc/ntp.conf

# Expert mouseCLOCK USB II
server 127.127.8.0 mode 19
fudge 127.127.8.0 refid DCF

It seems in ubuntu ntpd is compiled with --enable-parse-clocks, but the binary packets from arch are not ?

a) How can I verify this? Which options are used to compile the binary arch ntpd package?

b) What is the preferred solution in arch? Download ntpd from source? From ntp.org? From arch package sever? Compile it manually?

Thanks very much

ua4000

Last edited by ua4000 (2015-10-15 07:36:07)

Offline

#2 2015-10-14 08:12:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] ntpd + DCF clock at /dev/ttyUSB0

a) You can read the PKGBUILD for any package: https://projects.archlinux.org/svntogit … es/ntp#n32

b) Build it with that option enabled: https://wiki.archlinux.org/index.php/Abs


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-10-14 08:13:51

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [Solved] ntpd + DCF clock at /dev/ttyUSB0

I have no idea about your ntp problem. But you can retrieve the source of a package with the ABS. You can also install yaourt from the AUR and simply say: yaourt -G ntp

You end up in a directory where you say makepkg. If you want to modify the build options just edit the PKGBUID. It is mostly a standard shell script. It is much easier to understand than .deb or .rpm packages; the only things you have to know is bash scripting.

Last edited by olive (2015-10-14 08:16:41)

Offline

#4 2015-10-14 08:51:54

ua4000
Member
Registered: 2015-10-14
Posts: 421

Re: [Solved] ntpd + DCF clock at /dev/ttyUSB0

Hi, thanks for both answers!

PKGBUILD confirms my problem with ntp package: many important configure options are missing --enable-NMEA --enable-GPSD --enable-SHM --enable-LOCAL-CLOCK --enable-parse-clocks
Abs sound nice - I will do some reading and testing.

Thanks very much!
ua4000

Offline

#5 2015-10-14 17:24:18

ua4000
Member
Registered: 2015-10-14
Posts: 421

Re: [Solved] ntpd + DCF clock at /dev/ttyUSB0

clock_sync :-)

14 Oct 19:14:00 ntpd[15905]: 0.0.0.0 c214 04 freq_mode
14 Oct 19:19:00 ntpd[15905]: 0.0.0.0 0212 02 freq_set kernel -11.409 PPM
14 Oct 19:19:00 ntpd[15905]: 0.0.0.0 0215 05 clock_sync

associd=0 status=0020 2 events, clk_unspec,
device="RAW DCF77 CODE (Expert mouseCLOCK USB v2.0)",
timecode="------#--####----D--S1--81--P1--81-P--4-1-12-----11-4-1---p",
poll=8, noreply=0, badformat=1, baddata=0, fudgetime1=425.000, stratum=0,
refid=DCFg, flags=0,
refclock_time="d9c90d0c.00000000  Wed, Oct 14 2015 17:19:08.000",
refclock_status="DST; TIME CODE; (LEAP INDICATION; CALLBIT)",
refclock_format="RAW DCF77 Timecode",
refclock_states="*NOMINAL: 00:05:09 (67.32%); BAD FORMAT: 00:02:30 (32.67%); running time: 00:07:39"
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 LOCAL(0)        .LOCL.          10 l  331   64  340    0.000    0.000   0.002
*GENERIC(0)      .DCFg.           0 l    9   64   77    0.000   -3.423   2.499

I manged to follow the fine wiki guide for abs.

Thanks very much!

P.S. Thanks for the great wiki!

Offline

#6 2015-10-14 17:45:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] ntpd + DCF clock at /dev/ttyUSB0

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-10-15 07:37:54

ua4000
Member
Registered: 2015-10-14
Posts: 421

Re: [Solved] ntpd + DCF clock at /dev/ttyUSB0

done :-)

I searched for a " [Solved]" bbs button like I was used in a ubuntu forum...

Offline

Board footer

Powered by FluxBB