[LinuxPPS] Re: LinuxPPS 4.0.0 not working on x86_64

Rodolfo Giometti giometti at enneenne.com
Wed Aug 1 09:44:44 CEST 2007


On Wed, Aug 01, 2007 at 03:30:40AM -0400, linux at horizon.com wrote:
> Is there an x86_64 version of the 4.0.0 linuxpps patch?

Great! I never tested LinuxPPS on 64bits machine... :)

However the patch _should_ work even on 64bits.

> I'd like to test it, but my test machine with PPS inputs is
> running a 64-bit kernel.
> 
> Using a recent linuxpps patch
> 
> 0b95100f146f1976c38de80fd4533d5c1c37ae75
> LinuxPPS: all kernel messages managed by Linux standard functions.
> (yes, I know there's one more commit, but it's not important)
> 
> Gets the PPS source working fine:
> /sys/class/pps/00/assert:	1185840861.999880040#54306
> /sys/class/pps/00/clear:	1185840861.999874836#54245
> /sys/class/pps/00/echo:	0
> /sys/class/pps/00/mode:	1133
> /sys/class/pps/00/name:	serial0
> /sys/class/pps/00/path:	/dev/ttyS0
> 
> But ntpd is unable to see PPS events, even after linking all the includes
> /usr/include/sys/timepps.h -> /usr/src/linux/Documentation/pps/timepps.h
> /usr/include/linux -> /usr/src/linux/include/linux
> /usr/include/asm* -> /usr/src/linux/include/asm*
> and recompiling:
> 
>      remote           refid      st t when poll reach   delay   offset  jitter
> ==============================================================================
> +192.35.100.1    .PPS.            1 u    4   16  377    0.156   -0.011   0.177
> *127.127.29.0    .PALI.           0 l   13   16  377    0.000   -0.014   0.221
>  127.127.22.0    .PPS.            0 l    -    4    0    0.000    0.000   0.001

If LinuxPPS records the events it's doing its job! ;)

First of all, please, try ppstest (see Documentation/pps/ dir) on your
PPS source and report what its output.

Once we have tested LinuxPPS with ppstest we can go further in
understanding why NTPD doesn't see any PPS event.

Thanks a lot,

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