Open main menu

Changes

NVMe SSD boot with the Raspberry Pi 5

84 bytes added, 20 February
If you are flashing a fresh Pi OS to NVME ssd, you must [[#Enable PCIe]]; but if you are COPY or CLONE an old Pi OS from SD card to NVME ssd, and you have already enabled pcie in the old Pi OS in advance, then you don't need to do enable pcie again!
==Set Boot from PCIe (NVMe early in the boot orderSSD)==The PCIe connection should work after a rebootBy default, but your Raspberry Pi won't try booting off an NVMe SSD yetdevices do not boot from PCIe storage. For thatTo enable boot from PCIe, you need to change the '''BOOT_ORDER''' in the Raspberry Pi's bootloader configuration. Edit the EEPROM configuration with the following command: sudo rpi-eeprom-config --editThen change the BOOT_ORDER line to the following: BOOT_ORDER=0xf416To boot from a non-HAT+ device, also add the following line: PCIE_PROBE=1- Press '''Ctrl-O''', then enter, to write the change to the file.
- Press '''Ctrl-X''' to exit nano (the editor). * Use Or use tool '''raspi-config''' to set boot order
sudo raspi-config
Then select '''6 Advanced Opitions''' => '''A4 Boot Order''' => '''B2 NVMe/USB Boot''' answer '''Yes''', then <code>sudo reboot</code>
* Run the following command to set boot order.
sudo rpi-eeprom-config --edit
Then change the BOOT_ORDER line to the following:
BOOT_ORDER=0xf416
- Press '''Ctrl-O''', then enter, to write the change to the file.
- Press '''Ctrl-X''' to exit nano (the editor).
Read [https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_ORDER Raspberry Pi's documentation on BOOT_ORDER] for all the details. For now, the pertinent bit is the '''6''' at the end: that is what tells the Pi to attempt NVMe boot first!