[LinuxPPS] compiling ntpd with pps enabled on Debian for ATOM device
Folkert van Heusden
folkert at vanheusden.com
Sun Jan 13 18:07:10 CET 2008
# 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;
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
Folkert van Heusden
--
To MultiTail einai ena polymorfiko ergaleio gia ta logfiles kai tin
eksodo twn entolwn. Prosferei: filtrarisma, xrwmatismo, sygxwneysi,
diaforetikes provoles. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
More information about the LinuxPPS
mailing list