NO reference clock support. I need Oncore ref clock support in ntp.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NTP |
Fix Released
|
Unknown
|
|||
ntp (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
It appears that ntp does not have reference clock support built in. As a result I can not run NTP with my Oncore reference clock. PPS support is built into the kernel and I was able to configure PPS support and the related sym links. But NTP fail whwn I try to start it with a message that it can't find the time server with the address of the reference clock.
The hardware has been tested and this same setup is working on the same machine running Gentoo.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: ntp 1:4.2.6.
ProcVersionSign
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Mon Jul 4 12:48:19 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
NtpStatus: No association ID's returned
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: ntp
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
Changed in ntp: | |
status: | Unknown → New |
Changed in ntp: | |
status: | New → Fix Released |
I tried to hand build ntp with pps and reference clock support. from the configure I see that it is looking for the following header files:
sys/pptime.sys
sys/ppsclock.h
timepps.h
Checking my Gentoo installation I see that only the last header is installed. I copied the timepps.h header to /usr/include/ and at that point the ntp build configuration will configure the build for the oncore ref clock. I now get teh following erros in the log:
can't open /var/log/ ntpstats/ clockstats: Permission denied
refclock_open /dev/serial.0: Permission denied
127.127.20.0 interface 127.0.0.1 -> none
So it is failing to create a clockstats file because of permissions. What do I need to do to get this working?
Also my udev rules for the PPS/GPS stuff looks like this:
KERNEL=="ttyS1", RUN+="/ bin/setserial -v /dev/%k low_latency", SYMLINK+ ="oncore. serial. 0"
KERNEL=="pps0", OWNER="root", GROUP="uucp", MODE="0660", SYMLINK+ ="oncore. pps.0", OPTIONS+ ="last_ rule"
What do I need to do in my udev rules to allow ntp to open the serial device?
Another issues that may be related to this. NTP will NOT build with NANOsecond support and this should be working on all kernels starting with 2.6.26. Not sure what is causing this but there is likely some type of issue with the kernel or glibc header files.