[LinuxPPS] Fwd: Attaching PPS to kernel

Dave Hart hart at ntp.org
Fri Apr 1 22:41:31 CEST 2011


On Fri, Apr 1, 2011 at 19:13 PM, Alvarez, Ralph
<ralph.alvarez at windriver.com> wrote:
> Hey Guys,
>
> Thanks for the assistance. I think I have my setup working now. Here's a summary of what I did:
>
> I probably should of mentioned that I'm using an older kernel (2.6.27) with the PPS patch applied. I tried NTP DEV version ntp-4.2.7p7xx but quickly reverted back to the most stable version (ntp-4.2.6p3) after Igor's comments that ntp-4.2.7p7xx wasn't stable with PPS.
>
> My NTP GPS/PPS setup is for an embedded system that has 8 networked hosts. One of the hosts acts as the NTP server while the others act as clients. Here's what I did to get things going:
>
> 1. Applied PPS patch (ntp-pps-2.6.27-rc3-bis-diff) to 2.6.27 kernel.
> 2. Built latest stable NTP (ntp-4.2.6p3) as follows:
>     a. ./configure --without-ntpsnmpd --disable-all-clocks --disable-parse-clocks --enable-ATOM --enable-NMEA --enable-LOCAL-CLOCK
>     b. Modified config.h.in to include these macros: HAVE_PPSAPI, HAVE_TIMEPPS_Hand CLOCK_ATOM.
>     c. Copied over timepps.h file to ntp/include folder (from pps-tools tarball).

Please re-read this excerpt of Igor's email:

On Fri, Apr 1, 2011 at 08:27 UTC, Igor Plyatov <plyatov at gmail.com> wrote:
> Hello!
>
> For the NMEA reference clock driver with PPS support, you need:
>
> 0) Linux kernel with PPS support enabled. I use Linux-2.6.36.
>
> 1) timepps.h file from pps-tools installed into /usr/include/
>
> 2) right NTP version compiled AFTER timepps.h installation. I use
> ntp-4.2.6p3, because ntp-4.2.4p7 does not work correctly with PPS.

Note he reports 4.2._4_p7 does not work correctly with PPS.  Not 4.2._7_.

Further note he empasizes rebuilding NTP after installing timepps.h.
This is so configure can detect it and you will not need to hack on
config.h.in afterward.

Good luck,
Dave Hart



More information about the LinuxPPS mailing list