[LinuxPPS] ntpd

Rodolfo Giometti giometti at linux.it
Thu Aug 3 11:24:18 CEST 2006


On Thu, Aug 03, 2006 at 11:14:43AM +0200, Folkert van Heusden wrote:
> 
> Oh hold on: there's a bug in the patch. After some hacking I do get
> output:
> 
> Aug  3 11:11:36 keetweej ntpd[15870]: refclock: found PPS source #0 "/dev/ttyS0" on "pps_8250_0"
> Aug  3 11:11:36 keetweej ntpd[15870]: refclock_nmea: time_pps_kcbind failed: Operation not supported
> 
> BUT: the output is INCORRECT. My GPS is connected to /dev/ttyS1(!).
> also the test/ppstest 1 doesn't emit anything at all (apart of the
> banners of course).

Try replacing the line:

   fd = time_pps_findsource(-1, path, 40, id, 40);

with the line:

   fd = time_pps_findsource(1, path, 40, id, 40);

This because the NTPD driver is not using the time_pps_findpath()
function. :)

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://ml.enneenne.com/pipermail/linuxpps/attachments/20060803/03bffed7/attachment.pgp


More information about the LinuxPPS mailing list