[LinuxPPS] 2.6.22.1 x86_64 + ntp-4.2.4p3 + gpsclock

Rodolfo Giometti giometti at enneenne.com
Sun Aug 5 13:01:28 CEST 2007


On Sat, Aug 04, 2007 at 12:49:57PM -0700, Nikos Mouat wrote:
>
> I did not.. I think I used the 'newapi' version off somewhere. When I use 
> the version from Documentation/pps I get duplicate symbol errors in 
> refclock_nmea and refclock_atom as they both include timepps.h which has 
> the functions in it.. if I change all the functions in that header to 
> 'static', it compiles, but the nmea clock doesn't load and the pps clock 
> fails..

Yes, this was a bug fixed in the recent patch version. Sorry fot this
problems but LinuxPPS is under hard developing right now. :)

Udo pointed me out this error and I just replaced the patch
file. Sorry. :(

> ntpd exiting on signal 15
> ntpd 4.2.4p3 at 1.1502 Sat Aug  4 19:13:56 UTC 2007 (6)
> precision = 1.000 usec
> Listening on interface #0 wildcard, 0.0.0.0#123 Disabled
> Listening on interface #1 eth0, [ip]#123 Enabled
> Listening on interface #2 lo, 127.0.0.1#123 Enabled
> Listening on interface #3 eth1, [ip]#123 Enabled
> kernel time sync status 0040
> refclock_nmea: cannot find PPS path "ttyS1" in the system
> configuration of 127.127.20.0 failed
> refclock: found PPS source #0 "/dev/ttyS1" on "serial1"
> refclock_atom: time_pps_kcbind failed: Operation not supported
> frequency initialized -148.468 PPM from /var/lib/ntp/drift
> synchronized to 131.107.1.10, stratum 1
> kernel time sync status change 0001
>
> if I remove --enable-ATOM from the configure script, it compiles fine with 
> the Documentation/pps timepps.h file, but I still get the error:
>
> refclock_nmea: cannot find PPS path "ttyS1" in the system
>
> adding the following after the time_pps_readlink appears to make it work:
>
>         if (!strncmp(path, "ttyS", 4)) {
>          char res[LENPPS];
>            snprintf(res, LENPPS, "/dev/%s", path);
>            strncpy(path, res, LENPPS);
>         }

Uh, this could be an error into ATOM refclock patch. Udo, can you
please fix it?

> it appears to now work.. I guess you can only enable a single pps clock 
> source with the timepps.h you mention??

No, if you use the last version of it.

Thanks a lot for your suggestions!

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