From: Gary E. M. <ge...@re...> - 2017-10-27 19:44:13
|
Yo All! About a year ago I was running tests feeding time from ptp4l to ntpd using a SHM. I just repeated the experiment after updating my linuxptp to git head, and now no luck. My version: # ptp4l -v 1.8-00063-g5ce04f9 I'm pretty much following the instructions here: http://www.catb.org/gpsd/gpsd-time-service-howto.html#_providing_local_ntp_service_using_ptp Here is my ptp.conf: ********************* [global] # only syslog every 1024 seconds summary_interval 10 # send to to chronyd/ntpd using SHM 2 clock_servo ntpshm ntpshm_segment 2 # set our priority high since we have PPS priority1 10 priority2 10 [eth1] ********************* I start the daemon this way: # ptp4l -s -f /etc/ptp-howto.conf I have several masters setup similarly. Serving local time. My logs show that ptp4l has found a master: Oct 27 12:22:02 spidey ptp4l[25614]: [3704655.074] tx_type 1 not 1 Oct 27 12:22:02 spidey ptp4l[25614]: [3704655.074] rx_filter 1 not 12 Oct 27 12:22:02 spidey ptp4l[25614]: [3704655.074] selected best master clock 0cc47a.fffe.72716b But no new shm in /dev/shm. My /dev/shm is world writeable, with the sticky bit: # ls -ld /dev/shm drwxrwxrwt 2 root root 40 Oct 27 12:26 /dev/shm And ntpshmmon shows my GPS and PPS SHMs, but nothing on SHM 2: # ntpshmmon ntpshmmon version 1 # Name Seen@ Clock Real L Prec sample NTP1 1509132165.355194143 1509132165.000085726 1509132165.000000000 0 -30 sample NTP0 1509132165.700599465 1509132165.699807167 1509132165.703999996 0 -20 sample NTP1 1509132166.000999683 1509132166.000049468 1509132166.000000000 0 -30 sample NTP0 1509132166.721725714 1509132166.721308687 1509132166.703999996 0 -20 I thought this worked last year, I had not touched the config or startup files. What stupid thing did I do to make this not work? RGDS GARY --------------------------------------------------------------------------- Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703 ge...@re... Tel:+1 541 382 8588 Veritas liberabit vos. -- Quid est veritas? "If you can’t measure it, you can’t improve it." - Lord Kelvin |