Current state of hardware RTC support

Hi

What’s the current state of balenaOS regarding hardware RTCs?
I’m trying to use a DS1307 based RTC on my RaspberryPi.

I found an old thread here: Disabling access to RTC
There it is mentioned that chronyd is managing the system time.
But in the general documentation, it is mentioned that one can enable the RTC with the given dtoverlay configuration: https://www.balena.io/docs/reference/OS/advanced/#setting-device-tree-overlays-dtoverlay-and-parameters-dtparam

Since the RaspberryPi always connects to balenaCloud (and I assume it syncs the time with the server), it is quite difficult to know if the time is taken from the RTC or from NTP.

At least hwclock on the host OS is giving me this error (which lets me assume it is not enabled):

root@<id>:~# hwclock -r
hwclock: can't open '/dev/misc/rtc': No such file or directory

/UncleSam

1 Like