Skip to content

Commit

Permalink
Add chrony ntp manager with stf/p1 ntp server addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
easmith5 committed May 7, 2022
1 parent 525f55a commit c7483de
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions recipes-core/images/core-image-gfex.bb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ IMAGE_INSTALL += "packagegroup-core-ssh-openssh"
IMAGE_INSTALL += "devmem2"
IMAGE_INSTALL += "git"
IMAGE_INSTALL += "zile"
IMAGE_INSTALL += "chrony"

IMAGE_INSTALL += "python3-ironman"
IMAGE_INSTALL += "python3-numpy"
Expand Down
10 changes: 10 additions & 0 deletions recipes-support/chrony/chrony_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += "file://chrony.conf"

do_install_append() {

install -m 644 ${WORKDIR}/chrony.conf ${D}${sysconfdir}

}

47 changes: 47 additions & 0 deletions recipes-support/chrony/files/chrony.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Use public NTP servers from the pool.ntp.org project.
# Please consider joining the pool project if possible by running your own
# server(s).
# If you are a vendor distributing a product using chrony, you *MUST*
# read and comply with http://www.pool.ntp.org/vendors.html
#pool 0.openembedded.pool.ntp.org iburst

# Use a local timeserver in preference to the pool, if it's reachable.
#server 192.168.22.22 iburst minpoll 2 prefer

server 137.138.16.69 iburst
server 137.138.17.69 iburst

# Sync to pulse-per-second from an onboard GPS.
#refclock PPS /dev/pps0 poll 0 prefer
# You'll want to enable CONFIG_PPS and CONFIG_PPS_CLIENT_GPIO in your kernel,
# and an entry something like this in your device tree:
# pps {
# compatible = "pps-gpio";
# gpios = <&ps7_gpio_0 56 0>;
# };

# In first three updates step the system clock instead of slew
# if the adjustment is larger than 1 second.
makestep 1.0 3

# Record the rate at which the system clock gains/loses time,
# improving accuracy after reboot
driftfile /var/lib/chrony/drift

# Enable kernel synchronization of the hardware real-time clock (RTC).
rtcsync

# Allow NTP client access from local network.
#allow 192.168/16

# Serve time even if not synchronized to any NTP server.
#local stratum 10

# Specify file containing keys for NTP authentication.
#keyfile /etc/chrony.keys

# Specify directory for log files.
logdir /var/log/chrony

# Select which information is logged.
#log measurements statistics tracking

0 comments on commit c7483de

Please sign in to comment.