Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaced NTPSec with chrony #121

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tp2bmc/board/tp2bmc/overlay/etc/chrony.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pool pool.ntp.org iburst
makestep 0.1 5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why limit is 5? I am not very well-versed in terminology, but all examples suggest 3.

Same for driftfile -- all examples listed it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • driftfile: I want to limit file writes to eMMC, As a consequence this means that there is a potential for the clock to drift during startup. This is mitigated by rtcsync option, were we put more emphasis on making the RTC ticks leading.
  • makestep: since we don't write a drift file i want to instruct chrony to be a bit more aggressive with syncing the time by allowing more steps to sync to the correct time

rtcsync

2 changes: 1 addition & 1 deletion tp2bmc/configs/tp2bmc_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ BR2_PACKAGE_MTD_UBIFS_UTILS=y
BR2_PACKAGE_MTD=y
BR2_PACKAGE_NANO=y
BR2_PACKAGE_NSS_MDNS=y
BR2_PACKAGE_NTPSEC=y
BR2_PACKAGE_CHRONY=y
BR2_PACKAGE_OPENSSH=y
BR2_PACKAGE_PICOCOM=y
BR2_PACKAGE_START_STOP_DAEMON=y
Expand Down
Loading