[LinuxPPS] Re: Still having problems.

Rodolfo Giometti giometti at enneenne.com
Tue Sep 18 07:59:45 CEST 2007


On Sun, Sep 16, 2007 at 02:42:49PM -0600, clemens at dwf.com wrote:
> OK, I think I am back on track.
> The Diff ntp-pps-2.6.23-rc2.diff and the timepps.h included in
> its Doc directory are the 'real thing'.
> 
> In Documentation/pps, I tried compiling using ppstest.c
> I have restored timepps.h (in userland) to the one in Doc.
> The compile goes fine, but when running it I see:
> 
> [root at deneb pps]# ppstest serial0
> trying PPS source "serial0"
> unable to open device "serial0" (No such file or directory)
> 
> [root at deneb pps]# ppstest /dev/ttyS0
> trying PPS source "/dev/ttyS0"
> cannot create a PPS source from device "/dev/ttyS0" (Operation not supported)
> 
> /proc/interuupts/serial is incrementing just fine, as are
> /sys/class/pps/pps1/assert and /clear
> 
> I can apply the 'parse' diff and see if he is doing anything different,
> but it seems that this one should work.

You must use /dev/pps0, /dev/pps1, ... devices. Check into
/sys/class/pss/ which is the rigth one for you.

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