Chrony und gpsd¶
Auf Basis von:
- https://gpsd.gitlab.io/gpsd/gpsd-time-service-howto.html
- https://wiki.alpinelinux.org/wiki/Chrony_and_GPSD
- https://learn.adafruit.com/adafruit-ultimate-gps-hat-for-raspberry-pi/use-gpsd
- https://forums.adafruit.com/viewtopic.php?f=50&t=70133&start=60#p359668
Versuch chrony mit gpsd und einem GPS Modul zu einem Stratum 1 Server zu bauen.
- Raspberry Pi 2
- Adafruit Ultimate GPS Hat
- u.FL auf SMA Adapter
- SMA GPS Antenne 5m Kabel
- Debian 11 for Raspberry von https://raspi.debian.net/
- chrony
- gpsd
Installation¶
Zeitzone setzen
timedatectl set-timezone Europe/Berlin
Serielle Console deaktivieren
systemctl mask serial-getty@ttyAMA0.service
Pakete Grundinstallation
apt install gpsd gpsd-clients python3-gps chrony pps-tools
Die serielle Schnittstelle muss konfiguriert werden. Habe noch nicht herausgefunden, wie ich das rebootfest einstelle:
stty -F /dev/ttyAMA0 raw 9600 cs8 clocal -cstopb
gpsd Konfiguration unter /etc/default/gpsd
Devices gpsd should collect to at boot time. # They need to be read/writeable, either by user gpsd or the group dialout. DEVICES="/dev/ttyAMA0" # Other options you want to pass to gpsd GPSD_OPTIONS="-n -D1 -s 9600" # Automatically hot add/remove USB GPS devices via gpsdctl USBAUTO="false"¶