From 20942706cae74466a9e58d0e30563b823723e003 Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Tue, 20 Feb 2024 14:24:55 +0000 Subject: [PATCH] bootloader: Use flashrom for bootloader updates on BCM2712 --- rpi-update | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rpi-update b/rpi-update index b4443fb..f94c71b 100755 --- a/rpi-update +++ b/rpi-update @@ -313,6 +313,11 @@ function download_bootloader { function update_bootloader { if [[ ${SKIP_BOOTLOADER} -eq 0 ]]; then + if grep -q "bcm2712" /proc/device-tree/compatible; then + # Prefer flashrom on BCM2712. rpi-eeprom-update will failover to recovery.bin + # if flashrom is not installed. + export RPI_EEPROM_USE_FLASHROM=${RPI_EEPROM_USE_FLASHROM:-1} + fi sed /etc/default/rpi-eeprom-update -i -e "s/^FIRMWARE_RELEASE_STATUS.*/FIRMWARE_RELEASE_STATUS=\"latest\"/" if [[ "${BOOTLOADER_REV_IN}" != "master" ]]; then # Use latest according to rpi-eeprom git hash