Open main menu

Changes

NVMe SSD boot with the Raspberry Pi 5

252 bytes removed, 10:19, 24 December 2023
You also can refer to official documentatio:[https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html#enabling-pcie Enabling PCIe]
==Set NVMe early in the boot orderFlash OS onto NVME SSD==The PCIe connection should work after a reboot, but your Pi won't try booting off an To get the NVMe SSD yet. For that, you need to change the '''BOOT_ORDER''' in the Raspberry Pi's bootloader configuration: Run the following command to edit the EEPROM on the Raspberry Pi 5. sudo rpi-eeprom-config --editThen 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! '''Reboot''' your Raspberry Pi 5 , it needs to make the change take effect.  NVMe boot won't work unless you have the external PCI Express port enabled, and there's a working NVMe drive with a valid boot partition! If you don't have that (e.g. you used Raspberry Pi Imager with an external USB NVMe adapter to flash Pi OS to an NVMe drive from another computer), then follow so the steps in the next section to clone your existing Raspberry Pi OS install needs to an NVMe SSD.be flashed onto NVME SSDs, this is very important!
'''1. Use <span class="tb_red">SD Card Copier</span> tool to flash OS onto the NVME SSD On Raspberry Pi OS(recommended)'''
If you: ''re using a Raspberry Pi OS, This method works if you can just run the have an SD card copier tool to flash OS onto and have booted the NVME SSD.device successfully''
Cick '''Applications''' =>'''Accessories''' =>'''SD Card Copier''' on the main screen, run the '''SD Card Copier''' program, and copy the OS to the NVME ssd as shown in the figure below.
Click '''Start''' to run. Then shut down, unplug the SD card, and restart the device.
This is a visual operation and we highly recommend it!
'''2. Flash the SSD with Raspberry Pi Imager'''
To get You can also directly use the NVMe SSD to boot your Pi, it needs to have an OS. One option would be to clone an existing installation to it using ''rpi-clone'' or some other tool (see below), but my preferred option is to flash a fresh Pi OS install using [https://www.raspberrypi.com/software/ Raspberry Pi Imager]tool on a MAC computer or windows computer to flash a fresh Pi OS to NVME SSD, but you will need an additional USB to nvme adapter.
# Install Pi Imager and open it
# Plug your NVMe SSD into your computer using a USB to NVMe adapter
sudo dd if=/dev/zero of=/dev/nvme0n1 bs=1024 count=1
</pre>
 
==Set NVMe early in the boot order==
The PCIe connection should work after a reboot, but your Pi won't try booting off an NVMe SSD yet. For that, you need to change the '''BOOT_ORDER''' in the Raspberry Pi's bootloader configuration:
 
Run the following command to edit the EEPROM on the Raspberry Pi 5.
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!
 
'''Reboot''' your Raspberry Pi 5 to make the change take effect.
==Upgrade eeprom, solve NO wifi issue==