[LinuxPPS] compiling ntpd with pps enabled on Debian for ATOM device
Rodolfo Giometti
giometti at enneenne.com
Sun Jan 13 19:01:51 CET 2008
On Sun, Jan 13, 2008 at 06:07:10PM +0100, Folkert van Heusden wrote:
> # get the kernel sources into /usr/src/linux-2.6-2.6.22
> # e.g. apt-get source linux-image-2.6.22-3-amd64 or so
> # apply patch, compile & install
>
> # ntp:
> apt-get source ntp
>
> cd /usr/src/ntp-4.2.4p4+dfsg
>
> 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...
> CFLAGS="-I /usr/src/linux-2.6-2.6.22/include/ -I /usr/src/linux-2.6-2.6.22/Documentation/pps/" CPPFLAGS="-I /usr/src/linux-2.6-2.6.22/include/ -I /usr/src/linux-2.6-2.6.22/Documentation/pps/" fakeroot debian/rules binary
>
>
> There's one problem though:
> 13 Jan 17:44:49 ntpd[16226]: refclock_atom: time_pps_getcap failed: No such device
Did you pass the right device to the ATOM refclock? Where is connected
your PPS device?
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