Skip to content

Commit

Permalink
Skip bootloader updates if rpi-eeprom package is too old
Browse files Browse the repository at this point in the history
Skip the bootloader updates without stopping rpi-update of the firmware

See: #28
  • Loading branch information
timg236 committed Jan 3, 2024
1 parent e85c4b6 commit 226b4ca
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rpi-update
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ function download_bootloader_images {

function download_bootloader {
if [[ ${SKIP_BOOTLOADER} -eq 0 ]]; then

echo "Downloading bootloader tools"
download_bootloader_tools

Expand Down Expand Up @@ -773,6 +774,15 @@ if [[ "${FW_REV}" == "" ]]; then
exit 1
fi

if [ ! -d "/lib/firmware/raspberrypi/bootloader-2711/latest" ]; then
if [[ "${SKIP_BOOTLOADER}" != 1 ]]; then
# The chip specific firmware directory structure is required for rpi-eeprom updates
# RPi OS Bookworm or newer required.
SKIP_BOOTLOADER=1
echo "rpi-eeprom firmware package appears to be too old. Skipping bootloader updates"
fi
fi

if [[ ! -f "${FW_REVFILE}" ]]; then
LOCAL_HASH=0
echo " *** We're running for the first time"
Expand Down

0 comments on commit 226b4ca

Please sign in to comment.