mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-20 21:13:38 +08:00
bootloader: Use flashrom for bootloader updates on BCM2712
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user