A simple, zero-input script to automate updating the EEPROM of Raspberry Pi CM4 and CM5. Built specifically for the uConsole community.
You must have git installed and the uConsole must be connected to the internet.
Run the following commands to download and execute the script:
wget https://raw.githubusercontent.com/NeilInnes/uconsole_eeprom_updater/refs/heads/master/uconsole_eeprom_updater.sh && bash uconsole_eeprom_updater.shAfter a reboot the devices EEPROM will be updated. You can confirm by running:
sudo rpi-eeprom-update- Detects your compute module type (Pi 4 or Pi 5).
- Clones the official raspberrypi/rpi-eeprom repository to
/tmp/. - Copies the latest firmware binaries to your local bootloader path without overwriting any existing files unnecessarily.
- On CM4: Triggers a standard update via
sudo rpi-eeprom-update -a. - On CM5: Backs up your current EEPROM config and applies the CM5-specific boot config to address SD card and power-off quirks.
- Cleans up any temporary files the script created.
Rex for the continuous, awesome work on the uConsole and the CM5 Lite boot config.
RonR for the rpi-eeprom-mgr script which provided the inspiration for this tool.
This script modifies the EEPROM firmware and requires sudo privileges. While tested, you use this script entirely at your own risk.
Please review the code to understand what it does before running it. I am not responsible for any bricked devices, data loss, or other breakages.