Skip to content

Commit

Permalink
Add chrony to support usb gps
Browse files Browse the repository at this point in the history
  • Loading branch information
F5OEO committed Feb 3, 2024
1 parent 2ee7228 commit 7b1ce1d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
10 changes: 10 additions & 0 deletions datv/board/pluto/overlay/etc/chrony.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
server ntp.metas.ch
server swisstime.ethz.ch
server chronos.cru.fr
server ntp.univ-lyon1.fr

# NTP via GPS
refclock SHM 0 refid NMEA offset 0.000 precision 1e-3 poll 3
makestep 1 -1


3 changes: 2 additions & 1 deletion datv/board/pluto/overlay/etc/init.d/S50gpsd
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ GPSD_OPTIONS="-G -n -r"
start() {
printf "Starting $NAME: "
start-stop-daemon -S -q -p $PIDFILE --exec $DAEMON -- -P $PIDFILE $DEVICES $GPSD_OPTIONS && echo "OK" || echo "Failed"
gpsctl --nmea $DEVICES
sleep 3
gpsctl --nmea
}
stop() {
printf "Stopping $NAME: "
Expand Down
10 changes: 5 additions & 5 deletions datv/configs/zynq_pluto_linux_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ CONFIG_SPI_CADENCE=y
CONFIG_SPI_XILINX=y
CONFIG_SPI_ZYNQ_QSPI=y
CONFIG_SPI_SPIDEV=y
#CONFIG_PPS=y
#CONFIG_NTP_PPS=y
#CONFIG_PPS_CLIENT_KTIMER=y
#CONFIG_PPS_CLIENT_LDISC=y
CONFIG_PPS=y
CONFIG_NTP_PPS=y
CONFIG_PPS_CLIENT_KTIMER=y
CONFIG_PPS_CLIENT_LDISC=y
CONFIG_GPIOLIB=y
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_ZYNQ=y
Expand Down Expand Up @@ -209,7 +209,7 @@ CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_OTG=y
CONFIG_USB_EHCI_HCD=y
# CONFIG_USB_EHCI_TT_NEWSCHED is not set
#CONFIG_USB_ACM=y
CONFIG_USB_ACM=y
CONFIG_USB_STORAGE=y
CONFIG_USB_CHIPIDEA=y
CONFIG_USB_CHIPIDEA_UDC=y
Expand Down
5 changes: 4 additions & 1 deletion datv/configs/zynq_plutodatv_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ BR2_PACKAGE_LINUX_FIRMWARE_RTL_81XX=y
BR2_PACKAGE_LINUX_FIRMWARE_RTL_87XX=y
BR2_PACKAGE_LINUX_FIRMWARE_RTL_88XX=y
BR2_PACKAGE_GPSD=y
BR2_PACKAGE_GPSD_PPS=y
BR2_PACKAGE_GPSD_UBX=y
BR2_PACKAGE_INPUT_EVENT_DAEMON=y
BR2_PACKAGE_UBOOT_TOOLS=y
Expand Down Expand Up @@ -106,4 +107,6 @@ BR2_PACKAGE_CIVETWEBWS=y
BR2_PACKAGE_CIVETWEBWS_LIB=y
#BR2_PACKAGE_SOAPYSDR_MASTER=y
BR2_PACKAGE_LIBGSE=y
BR2_PACKAGE_LIBUSB=y
BR2_PACKAGE_LIBUSB=y
BR2_PACKAGE_CHRONY=y
BR2_PACKAGE_NTP_NTP_SHM_CLK=y

0 comments on commit 7b1ce1d

Please sign in to comment.