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

Udo van den Heuvel udovdh at xs4all.nl
Sun Aug 5 13:19:44 CEST 2007


Rodolfo Giometti wrote:
>> 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?

This is a link that requires attention.
Over here it is:

# ls -l /dev/*ps*
lrwxrwxrwx 1 root root 10 2007-07-29 20:07 /dev/gps0 -> /dev/ttyS0
lrwxrwxrwx 1 root root 10 2007-07-29 20:07 /dev/pps0 -> /dev/ttyS0


So in /dev is link called gps0 pointing to /dev/ttyS0 (and *not* just
ttyS0.) Same for pps0.
If you check your links you can fix this easily.





More information about the LinuxPPS mailing list