From 7e125104133fa2fddf2d81f6d987ba92c2d6369b Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 6 Apr 2022 17:18:14 -0500 Subject: [PATCH] Enable RTC on the CM4 I/O board Include the kernel modules in the initramfs to set the clock as early as possible. --- config.txt | 3 +++ mkinitramfs.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.txt b/config.txt index 87146f0..8be466b 100644 --- a/config.txt +++ b/config.txt @@ -55,3 +55,6 @@ upstream_kernel=1 # https://fedoraproject.org/w/index.php?title=Architectures/ARM/Raspberry_Pi/HATs dtoverlay=disable-bt + +# Enable the i2c RTC on the CM4 I/O board +dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi diff --git a/mkinitramfs.sh b/mkinitramfs.sh index d5b79b9..1daaedf 100644 --- a/mkinitramfs.sh +++ b/mkinitramfs.sh @@ -24,7 +24,7 @@ chroot "${destdir}" dracut \ --no-hostonly \ --modules 'nbd udev-rules dracut-systemd shutdown' \ --drivers 'genet nbd squashfs' \ - --force-drivers 'bcm2835_wdt' \ + --force-drivers 'bcm2835_wdt i2c_bcm2835 i2c_mux_pinctrl rtc_pcf85063' \ --force \ /boot/initramfs.img \ "${kver}"