- Use Raspberry PI Imager to flash latest Raspberry Pi OS Lite (32-bit) on a SD card
- Add ssh support and WiFi (if not using wired), follow this gist for instructions
- Plug the SD card in your Pi 4 and power it up and ssh to it
- Update your OS and firmware by issuing:
sudo apt update
sudo apt full-upgrade
sudo rpi-update
- Reboot the Pi 4
- Install the latest bootloader by issuing:
sudo rpi-eeprom-update -d -a
- Reboot the Pi 4
- Launch raspi-config
sudo raspi-config
- Select Boot Options (item 3) and press Enter
- Select Boot ROM Version and press Enter
- Select Latest and then Ok
- Select No to use the latest boot ROM
- Press Ok to close the next dialog
- Select Boot Options/Boot Order and press Enter
- Select USB Boot and click Ok
- Press Ok to close the next dialog
- Select Finish and when asked to reboot select No
- Unplug the power and the SD card
- Plug in your USB disc to your local computer
- 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
- Add e.g. information on WiFi and ssh support, if using OpenHabian the enter WiFI config in /boot/openhabian.conf file)
- Eject the USB image from your local computer and insert into one of the 2 blue USB contacts on the Pi 4
- Remove the SD card
- Add power and watch the Pi 4 to boot from your USB disc