Booting from NVMe

logo

There are a few simple steps you need to make in order to boot from NVMe on your Raspberry Pi 5. This quide assumes that you are running Raspbian from an SD Card and you have correctly installed your HatDrive! together with a compatible drive.

  1. Ensure your system is up to date. This is crucial since old firmware revisions do not support booting from NVMe. Execute those commands in your terminal: sudo apt-get update, sudo apt-get upgrade
  2. Reboot your Pi with: sudo reboot
  3. Edit the EEPROM on the Raspberry Pi 5. sudo rpi-eeprom-config --edit
  4. Change the BOOT_ORDER line to the following: BOOT_ORDER=0xf416
  5. Add PCIE_PROBE to enumerate over the PCIe bus: PCIE_PROBE=1
  6. Press Ctrl-O, then enter, to write the change to the file.
  7. Press Ctrl-X to exit nano (the editor).
  8. Reboot your Pi with: sudo reboot
  9. If you have your NVMe drive connected you can use Raspberry Pi Imager to install a fresh copy of the os. After doing so you can power off your board and remove the SD Card. Your Pi will now boot from the NVMe drive.

NOTE

We’ve seen constant firmware changes on the Pi 5 that affect the NVMe boot functionality. This guide will be updated if the configuration changes. Please report NVMe boot related issues to the official EEPROM repository.

NVMe compatibility list HatDrive! 3D Models

Want to improve the content of this page? Submit a pull request or join the discussion on X