Advertisement
Lion

Untitled

Aug 11th, 2021
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. NTP Server from scratch
  2.  
  3. raspi-config: Advanced > Serial = No
  4.  
  5. /boot/config.txt:
  6. # GPS PPS, Adafruit ultimate GPS hat PPS on pin 4
  7. dtoverlay=pps-gpio,gpiopin=4
  8. enable_uart="1"
  9.  
  10. Build gpsd from source with timeservice=yes
  11.  
  12. Edit /lib/systemd/system/gpsd.service, change "ExecStart" to /usr/local/sbin/gpsd
  13.  
  14. Create /etc/default/gpsd, add:
  15. DEVICES="/dev/ttyAMA0 /dev/pps0"
  16. GPSD_OPTIONS="-n" # Update clock even when no clients are active.
  17.  
  18. systemctl enable gpsd
  19. reboot
  20.  
  21. gps should be running, check with "gpsmon".
  22.  
  23. If PPS is functioning, "PPS offset" lines will appear.
  24.  
  25. Build chrony from source
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement