mirror of
https://github.com/raspberrypi/rpi-update.git
synced 2026-01-21 14:53:35 +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 {
|
function update_bootloader {
|
||||||
if [[ ${SKIP_BOOTLOADER} -eq 0 ]]; then
|
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\"/"
|
sed /etc/default/rpi-eeprom-update -i -e "s/^FIRMWARE_RELEASE_STATUS.*/FIRMWARE_RELEASE_STATUS=\"latest\"/"
|
||||||
if [[ "${BOOTLOADER_REV_IN}" != "master" ]]; then
|
if [[ "${BOOTLOADER_REV_IN}" != "master" ]]; then
|
||||||
# Use latest according to rpi-eeprom git hash
|
# Use latest according to rpi-eeprom git hash
|
||||||
|
|||||||
Reference in New Issue
Block a user