[LinuxPPS] Which patch to use?
Jordan Hayes
jmhayes at speakeasy.net
Sun May 11 18:06:17 CEST 2008
>> I am patching against 2.6.24.7
>
> 2.6.24.7 is OK for now.
> -ter applies OK on 2.6.25. No hurry to go to .25 yet.
> Keep us updated!
Ok, this morning the compile was finished, so I installed and rebooted.
Following http://wiki.enneenne.com/index.php/LinuxPPS_support
# tree /sys/class/pps
/sys/class/pps
|-- pps0
| |-- assert
| |-- clear
| |-- dev
| |-- echo
| |-- mode
| |-- name
| |-- path
| |-- power
| | `-- wakeup
| |-- subsystem -> ../../../class/pps
| `-- uevent
I don't see a "device" the way the wiki says.
Next I did
# ./ppsctl /dev/ttyS0 enable
# ./ppstest /dev/pps0
... and that gives me assert/clear pairs.
I applied the patch to ntp-4.2.2p4 ntpd/refclock_nmea.c, ran configure,
then make. I put this in my /etc/ntp.conf:
server 127.127.20.0 prefer minpoll 4
fudge 127.127.20.0 flag3 1 flag2 0 time1 0.0
I moved /usr/sbin/ntpd out of the way and put the new one in there, but
"/etc/init.d/ntp restart" didn't like the new binary (probably a
command-line issue, the default debian one has a very different output
of -v leading me to think it's something other than 4.2.4 ... If I run
it manually, I get this error message:
ntpd[22954]: refclock_open /dev/gps0: No such file or directory
ntpd[22954]: configuration of 127.127.20.0 failed
Is /dev/gps0 supposed to be a symlink or something?
Thanks,
/jordan
More information about the LinuxPPS
mailing list