[LinuxPPS] LinuxPPS with 'nano' support cookbook recipe
Udo van den Heuvel
udovdh at xs4all.nl
Sat Jul 26 11:13:36 CEST 2008
Remco den Besten wrote:
> 1. Apply everything necessary to implement microsupport (LinuxPPS), see this
> list ;-)
See the wiki:
http://wiki.enneenne.com/index.php/LinuxPPS_support#The_userland_tools
(still is true for the links etc; `ppstest and ppsctl` paragraph needs
ppsldisc mention)
> 2. Apply the patch from James to /usr/include/sys/timex.h
> 3. Create the symlink: ln -s /usr/include/sys/timex.h /usr/include/timex.h
> 4. re-../configure ntp (' ../configure <insert options> ') and make the ntp
> sources ('make')
Correct.
> 5. in ntp-source tree go to ntpd directory and strip ntpd (' strip ntpd ' )
> 6. stop currently running ntpd and start new ntpd (' sudo ./ntpd ')
start ppsldisc /dev/ttySx before starting ntpd...
> (optional: do a make install within the ntp source tree)
rpmbuild -bb SPECS/ntp.spec on my fedora box does the same.
rpm -Uvh RPMS/bla/ntp-etc...rpm for insatlling.
> To monitor the behaviour of the new ntpd, use the tools and commands from
> the freshly
> compiled ntp-source (see subdirs ntpq, ntpdc, etc. and utils) otherwise
> erroneous values
> will and/or may be reported.
ntptime will show nano support if all is well:
# ntptime
ntp_gettime() returns code 0 (OK)
time cc35689a.c1f383a8 Sat, Jul 26 2008 11:10:50.757, (.757622621),
maximum error 3338 us, estimated error 1 us
ntp_adjtime() returns code 0 (OK)
modes 0x0 (),
offset 352.967 us, frequency -70.965 ppm, interval 1 s,
maximum error 3338 us, estimated error 1 us,
status 0x2001 (PLL,NANO),
time constant 4, precision 0.001 us, tolerance 500 ppm,
Udo
More information about the LinuxPPS
mailing list