From 2a57b603df27e4c32bf8b5de79efa0ccea03669b Mon Sep 17 00:00:00 2001 From: Tim Gover Date: Thu, 14 Dec 2023 09:56:24 +0000 Subject: [PATCH] rpi-update: bootloader: Only remove pieeprom*.bin and recovery.bin When switching to an explicit branch only remove the pieeprom and recovery.bin files. On Pi4 this preserves the VL805 firmware binaries. It's unlikely that these will be updated so just preserve whatever was there instead of implementing an update mechanism for VL805 binaries. --- rpi-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpi-update b/rpi-update index 1a4247c..7ee267c 100755 --- a/rpi-update +++ b/rpi-update @@ -264,8 +264,8 @@ function download_bootloader_images { fi if [[ "${BOOTLOADER_REV_IN}" != "master" ]]; then echo "Non default bootloader revision specified (${BOOTLOADER_REV_IN}) deleting local bootloader binaries in ${fw_path}" - rm -rf "${fw_path}" - mkdir -p "${fw_path}" + rm -f "${fw_path}/recovery.bin" + rm -f "${fw_path}"/pieeprom*.bin fi if [[ ! -f "${fw_path}/${latest_eeprom}" ]]; then eeprom_temp="$(mktemp)"