Configure Hardware
This section configures the I2C bus and real-time clock (RTC) on the device. The RTC steps below differ between the two variants — pick the tab that matches your device when you reach them:
Adds an RTC overlay for the external PCF85063A real-time clock chip.
Skips the RTC overlay entirely — the Raspberry Pi 5 has a built-in RTC, so this step and its verification look different.
-
Install the I2C tools package for I2C bus diagnostics:
sudo apt install -y i2c-tools -
Configure the
i2c-devkernel module to load automatically at boot:echo 'i2c-dev' | sudo tee -a /etc/modules-load.d/i2c.conf > /dev/null -
Add hardware configuration to the boot configuration file:
- FIBER (CM4)
- FIBER Lite (Pi 5)
cat << EOF | sudo tee -a /boot/firmware/config.txt > /dev/nulldtparam=i2c_arm=ondtparam=i2c_vc=ondisable_poe_fan=1force_eeprom_read=0camera_auto_detect=0dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsiEOFtipThis enables I2C interfaces, disables the PoE fan control, and configures the RTC overlay for the external PCF85063A RTC chip.
cat << EOF | sudo tee -a /boot/firmware/config.txt > /dev/nulldtparam=i2c_arm=ondtparam=i2c_vc=ondisable_poe_fan=1force_eeprom_read=0camera_auto_detect=0EOFdangerDo not add an external RTC overlay. FIBER (CM4) adds
dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsifor an external PCF85063A real-time clock chip. Do not add this on FIBER Lite. The Raspberry Pi 5 has a native built-in RTC that registers automatically asrtc0— the external overlay has no chip to talk to and only produces a harmless-but-noisyerror -EREMOTEIOin the kernel log (see Troubleshooting in the sidebar if you hit this). -
Reboot the system to apply the hardware configuration:
sudo reboot -
- FIBER (CM4)
- FIBER Lite (Pi 5)
Verify the I2C bus is accessible by scanning for devices:
sudo i2cdetect -y 10tipYou should see the RTC device listed on the I2C bus.
There's no external RTC to scan for — the Pi 5's built-in RTC needs no verification step here.
-
Install additional utilities for hardware clock access:
sudo apt install util-linux-extra -
Verify the hardware clock is accessible:
sudo hwclock -v