[LinuxPPS] Re: [PATCH 1/1] LinuxPPS: Pulse per Second support for Linux

Udo van den Heuvel udovdh at xs4all.nl
Sat May 12 15:06:39 CEST 2007


Rodolfo Giometti wrote:
>> Gives me a clean compile.
> 
> You can get a clean compile have using the _last_ kernel realease. The
> netlink_kernel_create() interface has been changed in the days.

Using this kernel (i.e. with the latest ntp-pps patch) I still get the
problems of the previous patch:

[root at epia ppsctl]# ./ppstest
no available PPS source in the system
[root at epia ppsctl]# ./ppstest 0
no available PPS source in the system
[root at epia ppsctl]# ./ppstest 1
no available PPS source in the system

# cat /sys/class/pps/01/name
ktimer
[root at epia ppsctl]# cat /sys/class/pps/00/name
serial0


Relevant dmesg stuff:

pps_core: netlink protocol 20 created
pps_core: LinuxPPS API ver. 2 registered
pps_core: Software ver. 3.2.0 - Copyright 2005-2007 Rodolfo Giometti
<giometti at linux.it>
serial_core: PPS source #0 "/dev/ttyS0" added to the system

Also:

8250: serial8250: PPS clear event at 249270 on source #0
pps_core: capture assert seq #75 for source 0
8250: serial8250: PPS assert event at 249470 on source #0
pps_core: capture clear seq #75 for source 0
8250: serial8250: PPS clear event at 249520 on source #0
pps_core: capture assert seq #76 for source 0
8250: serial8250: PPS assert event at 249720 on source #0
pps_core: capture clear seq #76 for source 0
8250: serial8250: PPS clear event at 249770 on source #0

Recompiled ntpd shows the sources but gets no pps.

So what is next?

ppstest recompile chokes on:
[root at epia ppsctl]# make
cc -Wall -O2 -D_GNU_SOURCE    ppstest.c   -o ppstest
In file included from ppstest.c:10:
/usr/include/timepps.h: In function âtime_pps_createâ:
/usr/include/timepps.h:136: error: âNETLINK_PPSAPIâ undeclared (first
use in this function)
/usr/include/timepps.h:136: error: (Each undeclared identifier is
reported only once
/usr/include/timepps.h:136: error: for each function it appears in.)
/usr/include/timepps.h: In function âtime_pps_findsourceâ:
/usr/include/timepps.h:299: error: âNETLINK_PPSAPIâ undeclared (first
use in this function)
/usr/include/timepps.h: In function âtime_pps_findpathâ:
/usr/include/timepps.h:357: error: âNETLINK_PPSAPIâ undeclared (first
use in this function)
make: *** [ppstest] Error 1

So what is wrong?
It looks like a userspace <-> kernel issue in my system?



More information about the LinuxPPS mailing list