Skip to content

Instantly share code, notes, and snippets.

@jannegpriv
Last active January 6, 2022 15:08
Show Gist options
  • Save jannegpriv/3a3966ebb282e2853cba5b7fc5d897da to your computer and use it in GitHub Desktop.
Save jannegpriv/3a3966ebb282e2853cba5b7fc5d897da to your computer and use it in GitHub Desktop.

Boot Raspberry Pi 4 from USB device

  1. Use Raspberry PI Imager to flash latest Raspberry Pi OS Lite (32-bit) on a SD card
  2. Add ssh support and WiFi (if not using wired), follow this gist for instructions
  3. Plug the SD card in your Pi 4 and power it up and ssh to it
  4. Update your OS and firmware by issuing:
sudo apt update
sudo apt full-upgrade
sudo rpi-update
  1. Reboot the Pi 4
  2. Install the latest bootloader by issuing:

sudo rpi-eeprom-update -d -a

  1. Reboot the Pi 4
  2. Launch raspi-config

sudo raspi-config

  1. Select Boot Options (item 3) and press Enter
  2. Select Boot ROM Version and press Enter
  3. Select Latest and then Ok
  4. Select No to use the latest boot ROM
  5. Press Ok to close the next dialog
  6. Select Boot Options/Boot Order and press Enter
  7. Select USB Boot and click Ok
  8. Press Ok to close the next dialog
  9. Select Finish and when asked to reboot select No
  10. Unplug the power and the SD card
  11. Plug in your USB disc to your local computer
  12. Use Raspberry PI Imager or another flash tool, e.g. etcher to flash your desired OS image to the USB disc (e.g. OpenHabian image
  13. Add e.g. information on WiFi and ssh support, if using OpenHabian the enter WiFI config in /boot/openhabian.conf file)
  14. Eject the USB image from your local computer and insert into one of the 2 blue USB contacts on the Pi 4
  15. Remove the SD card
  16. Add power and watch the Pi 4 to boot from your USB disc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment