As you are missing:
kernel: pps pps0: bound kernel consumer: edge=0x1
it means ntpsec is not using pps.
So, running ntpd --help
, the last 3 lines should show something similar to (you need PPS & GPSD):
This version was compiled with the following clock drivers:
LOCAL GENERIC NMEA PPS SHM
GPSD
if not, then you need to rebuild ntpsec.
If so, it could be the user running ntpd does not have permissions to open /dev/ppsX - check logs.
Read the man page on what stats are produced, create the stats directory with suitable permissions. You should be able to see in clockstats
what PPS signals it sees. This is my config without keys and restrict lines and the server line is a reference to gpsd:
logfile /var/log/ntpstats/ntp.log
logconfig =all
statsdir /var/log/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
filegen protostats file protostats type day enable
filegen rawstats file rawstats type day enable
filegen sysstats file sysstats type day enable
filegen usestats file usestats type day enable
refclock pps unit 0 minpoll 3 maxpoll 3 flag3 1 prefer
server 127.127.28.0 minpoll 4 maxpoll 4
In the ntpsec logs, when started, you should see similar lines to:
2023-04-10T10:46:48 ntpd[1160]: PROTO: 0.0.0.0 c01d 0d kern kernel time sync enabled
2023-04-10T10:46:48 ntpd[1160]: PROTO: 0.0.0.0 c012 02 freq_set kernel -15.644409 PPM
2023-04-10T10:46:48 ntpd[1160]: PROTO: 0.0.0.0 c016 06 restart
2023-04-10T10:47:06 ntpd[1160]: PROTO: 0.0.0.0 c41c 0c clock_step -0.171691 s
2023-04-10T10:47:05 ntpd[1160]: PROTO: 0.0.0.0 c415 05 clock_sync
2023-04-10T10:47:10 ntpd[1160]: PROTO: 0.0.0.0 c418 08 no_sys_peer
2023-04-10T10:47:26 ntpd[1160]: PROTO: 0.0.0.0 011d 0d kern PPS enabled status: 2001 -> 0007