[LinuxPPS] 2.6.22.1 x86_64 + ntp-4.2.4p3 + gpsclock
Nikos Mouat
nikm at cyberflunk.com
Fri Aug 3 19:35:35 CEST 2007
Hi,
I'm trying to get LinuxPPS working under:
Linux rapture 2.6.22.1nikm #2 SMP Thu Aug 2 15:57:09 PDT 2007 x86_64 x86_64 x86_64 GNU/Linux
and ntpd version ntp-4.2.4p3.
I believe that the LinuxPPS part is working correctly:
[nikm at rapture ntp-4.2.4p3]# dmesg | grep -i pps
pps_core: LinuxPPS API ver. 2 registered
pps_core: Software ver. 4.0.0-rc4 - Copyright 2005-2007 Rodolfo Giometti <giometti at linux.it>
serial_core: PPS source #0 "/dev/ttyS1" added to the system
[nikm at rapture ntp-4.2.4p3]# /usr/src/linux/Documentation/pps/ppstest
found PPS source #0 "serial1" on "/dev/ttyS1"
ok, found 1 source(s), now start fetching data...
source 0 - assert 1186160423.988829939, sequence: 579 - clear 1186161732.483758486, sequence: 581
source 0 - assert 1186161732.983746594, sequence: 580 - clear 1186161732.483758486, sequence: 581
source 0 - assert 1186161732.983746594, sequence: 580 - clear 1186161733.483746714, sequence: 582
source 0 - assert 1186161733.983744040, sequence: 581 - clear 1186161733.483746714, sequence: 582
source 0 - assert 1186161733.983744040, sequence: 581 - clear 1186161734.483747233, sequence: 583
^C
[nikm at rapture ntp-4.2.4p3]#
however I'm not having much luck getting ntpd to 'see' the PPS signal.
Here's the log from ntpd:
ntpd[31018]: refclock_nmea: time_pps_create failed: Connection refused
ntpd[31018]: refclock_nmea: time_pps_getcap failed: Connection refused
ntpd[31018]: refclock: no available PPS source in the system
ntpd[31018]: configuration of 127.127.22.0 failed
I've installed both the NMEA and the ATOM patches from
http://ftp.enneenne.com/pub/misc/linuxpps/refclocks and my config has the
following:
peer 127.127.20.0 prefer # NMEA
fudge 127.127.20.0 stratum 0 # name it as a good clock
server 127.127.22.0 minpoll 4 maxpoll 4
fudge 127.127.22.0 flag3 1 flag2 0 time1 0.000
I'm not sure why the nmea code is trying to open the pps device and not
the atom code.. time_pps_create() is causing the failure, and it's being
passed a valid FD for /dev/gps0..
ls -l /dev/gps0 /dev/pps0
lrwxrwxrwx 1 root root 5 Aug 3 10:22 /dev/gps0 -> ttyS1
lrwxrwxrwx 1 root root 5 Aug 3 09:54 /dev/pps0 -> ttyS1
any tips would be appreciated.
Thanks.
-nm
Nikos Mouat
More information about the LinuxPPS
mailing list