[LinuxPPS] compiling ntpd with pps enabled on Debian for ATOM device

Rodolfo Giometti giometti at enneenne.com
Mon Jan 14 17:35:29 CET 2008


On Sun, Jan 13, 2008 at 07:13:54PM +0100, Folkert van Heusden wrote:
> > > change ntpd/refclock_atom.c line 287 from:
> > >         up->pps_params.api_version = PPS_API_VERS_1;
> > > to:
> > >         up->pps_params.api_version = PPS_API_VERS;
> > Why? In pps.h you have both definitions...
> 
> Not in ntp-pps-2.6.22-quater.diff it seems.

In such file I see:

+/*
+ * 3.2 New data structures
+ */
+
+#ifndef __KERNEL__
+#include <linux/types.h>
+#include <sys/time.h>
+#include <sys/ioctl.h>
+#else
+#include <linux/time.h>
+#endif
+
+#define PPS_API_VERS_1		1
+#define PPS_API_VERS		PPS_API_VERS_1	/* we use API version 1 */

> Please also check my mail with the patch in it: I got to the point where
> it seems everything is setup fine but not getting any data.

Where is connected your PPS source? To a serial line? Did you verify
that the serial port is opened and the interrupts are arriving to the
serial port?

Ciao,

Rodolfo

-- 

GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at gnudd.com
Embedded Systems                     		giometti at linux.it
UNIX programming                     phone:     +39 349 2432127



More information about the LinuxPPS mailing list