Skip to content

Instantly share code, notes, and snippets.

@weshouman
Last active June 30, 2020 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save weshouman/f39e63512fd563ea295502a876a4a1cf to your computer and use it in GitHub Desktop.
Save weshouman/f39e63512fd563ea295502a876a4a1cf to your computer and use it in GitHub Desktop.
Update RPI 4 Bootloader

How I update RPIs bootloader

Prerequisits

  • Get an extra sd-card for flashing updates

Setup

  • Flash Raspberry OS (used the minimal version) into the sd-card using balena-etcher
  • Using sudo run touch /mnt/.../boot/ssh to enable ssh login to the rpi
  • Move the sd-card to the RPi
  • Debug hint: from now on use the following to get the different versions /opt/vc/bin/vcgencmd version or vcgencmd bootloader_version or event vgencmd bootloader_config.
  • Run sudo apt update then sudo apt full-upgrade then sudo reboot based on the Updating bootloader section here
  • Note: At this point one should have the rpi-eeprom package installed.
  • Extra info: to know more about the different options for the bootloader check the following bootloader config guide.
  • Run the following to update the EEPROM
# Use the branch of interest [beta, stable or critical] & version of interest
cp /lib/firmware/raspberrypi/bootloader/stable/pieeprom-2020-06-15.bin ./pieeprom.bin
rpi-eeprom-config pieeprom.bin > bootconf.txt
# If needed one could modify the configurations here
# vi bootconf.txt
rpi-eeprom-config --out pieeprom-new.bin --config bootconf.txt pieeprom.bin
sudo rpi-eeprom-update -d -f ./pieeprom-new.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment