Setting the Hardware clock

Booting in to Fedora I see the following appear on the console:

[ 22.930570] cloud-init[842]: Cloud-init v. 24.1.4 running ‘init-local’ at Sat, 30 Nov 2024 00:00:16 +0000. Up 22.84 seconds.

This is before network is brought up, and so before chrony can synchronise.

So it looks as if the hwclock is off. How do I correct this? The hwclock command seems to be unable to find the clock.

Found it out myself. Need to load the rtc_rx8025 module.

So is there a list somewhere of modules I ought to load in order to have all hardware supported?

Due to some quirks with how I2C devices are probed, some devices like the RTC don’t always get loaded automatically.

These ones are often affected:

rtc_rx8025 # RTC
gpio_pca953x # GPIO expander for SFP, some lights and buttons (e.g ADMIN light/button) 
i2c_mux_pca954x # I2C mux for SFP slots

There is also our out of tree sensor package, of which emc2301 is the most useful (for the fan speed controller).
(There is now a different emc2301 in the Linux kernel which has some issues. Beware!)

That one provides:

emc2301
emc181x
pac1934
emc17xx

rtc-rx8025 won’t be automatically loaded unless the device is listed in the Device Tree, in my experience (the I2C busses aren’t probed/scanned for devices to try to find matching modules, that would be… difficult).