Your message dated Wed, 18 Jul 2018 16:59:34 +0200
with message-id <[email protected]>
and subject line GUDE problem
has caused the Debian Bug report #898639,
regarding ntp: FAILED TIMECODE with GUDE DCF77 clock (Hopf 6021) since stretch
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
898639: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898639
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ntp
Version: 1:4.2.8p11+dfsg-1imt1
Severity: normal
Tags: patch
Dear Maintainer,
we use two physical servers with a serial attached DCF 77 module
(EMC Professional 3001), connected to ttyS0. Both machines
worked fine with Debian jessie. Since the upgrade to Debian stretch
both machines fail to decode the time from the module:
root@isis:/var/log# ntpq -c clocklist
associd=0 status=0012 1 event, clk_bad_format,
device="HOPF 6021", timecode="\x02\x0c\x09140700140518\x0a\x0d\x03",
poll=11, noreply=0, badformat=1, baddata=0, fudgetime1=1.700, stratum=0,
refid=DCF, flags=0, refclock_time="<UNDEFINED>", refclock_status="",
refclock_format="hopf Funkuhr 6021",
refclock_states="NOMINAL: 00:00:54 (7.74%); *BAD FORMAT: 00:10:43 (92.25%);
running time: 00:11:37"
root@isis:~# tail /var/log/ntp.log | grep FAIL
14 May 15:56:59 ntpd[32050]: PARSE receiver #0: FAILED TIMECODE:
"\x02\x0c\x09135700140518\x0a\x0d" (check receiver configuration / wiring)
I also tried the newest Debian version from testing and unstable (just
backported it to stretch, hence the package version), but the problem
stays permanent.
The online GUDE documentation from
http://wiki.gude.info/Ntpd_Installation
contains an installation script for ntp which uses upstream source, but also
contains three patches. If I apply the last one (clk_hopf6021.diff) to the
stretch package the clock gets recognized again and works perfectly.
So please include this patch in the next stable (and testing) ntp package
to make GUDE clocks work again.
Thanks,
Christopher
-- System Information:
Debian Release: 9.4
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.9.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ntp depends on:
ii adduser 3.115
ii init-system-helpers 1.48
ii libc6 2.24-11+deb9u3
ii libcap2 1:2.25-1
ii libedit2 3.1-20160903-3
ii libopts25 1:5.18.12-3
ii libssl1.1 1.1.0f-3+deb9u2
ii lsb-base 9.20161125
ii netbase 5.4
ii tzdata 2018e-0+deb9u1
Versions of packages ntp recommends:
ii perl 5.24.1-3+deb9u3
pn sntp <none>
Versions of packages ntp suggests:
pn ntp-doc <none>
-- Configuration Files:
/etc/default/ntp changed:
NTPD_OPTS='-g -U 20'
/etc/ntp.conf changed:
server 127.127.8.0 prefer mode 12
fudge 127.127.8.0 time1 +0.0017
server ntp1.ptb.de
server ntp2.ptb.de
peer 131.234.137.64
logfile /var/log/ntp.log
logconfig =all
driftfile /var/lib/ntp/ntp.drift
disable monitor
-- no debconf information
Added patch from GUDE
--- a/libparse/clk_hopf6021.c
+++ b/libparse/clk_hopf6021.c
@@ -160,8 +160,8 @@
clock_time->usecond = 0;
clock_time->flags = 0;
- status = hexval(buffer[OFFS(O_FLAGS)]);
- weekday = hexval(buffer[OFFS(O_WDAY)]);
+ status = buffer[OFFS(O_FLAGS)];
+ weekday = buffer[OFFS(O_WDAY)];
if ((status == 0xFF) || (weekday == 0xFF))
{
--- End Message ---
--- Begin Message ---
Hi,
GUDE has admitted that their clocks included a buggy firmware that
prevents Debian stretch from working properly (I have no idea why it
worked before). GUDE provides new firmware (currently only on request)
for at least the EMC Professional 3001.
Cheers,
Christopher
--
======================================================
Dipl.-Ing. Christopher Odenbach
Zentrum fuer Informations- und Medientechnologien
Universitaet Paderborn
Raum N5.314
[email protected]
Tel.: +49 5251 60 5315
======================================================
signature.asc
Description: OpenPGP digital signature
--- End Message ---