Open main menu

Changes

NVMe SSD boot with the Raspberry Pi 5

2,555 bytes removed, 19 April
dtparam=pciex1_gen=3
<span class="tb_redtb_red_bold">WARNING:</span> <span class="tb_red">The Raspberry Pi 5 is not certified for Gen 3.0 speeds, and connections to PCIe devices at these speeds may be unstable.</span>
Then DON'T forgot to reboot
You also can refer to official documentatio:[https://www.raspberrypi.com/documentation/computers/raspberry-pi-5.html#enabling-pcie Enabling PCIe]
Use After reboot,use the lspci command to display your PCIe devices
sudo lspci
The output is as follows, note that the content of the third line depends on the NVME control you are using.
If a firmware update is available you will be prompted to install it and your Raspberry Pi will reboot. More information about updating the firmware on your Raspberry Pi is available in the [https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#bootloader_update_stable official documentation].
After updating the firmware and your SSD is still recognized, Please consider switching check [[#FAQ]] to a different brand or model know more detail and try again.
Then run the following command to check the BOOTLOADER version:
<pre>
pi@raspberrypi:~ $ vcgencmd bootloader_version
2024/0204/16 1518 09:2845:4100version 4c845bd37c8a7c7ff79173cdc50dd3facf63996f 86ccc427f35fdc604edc511881cdf579df945fb4 (release)timestamp 17080973211713429900update-time 17090851881713493735
capabilities 0x0000007f
</pre>
 '2024/0204/1618' is the firmware version;
==Flash OS onto NVME SSD==
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:
* Use tool '''raspi-config''' to set boot order sudo raspi-configThen select '''6 Advanced Opitions''' => '''A4 Boot Order''' => '''B2 NVMe/USB Boot''' answer '''Yes''', then <code>sudo reboot</code>* Run the following command to edit the EEPROM on the Raspberry Pi 5set boot order.
sudo rpi-eeprom-config --edit
Then change the BOOT_ORDER line to the following:
<references />
==FAQ==
<div class="toccolours mw{{X100x-collapsible mw-collapsed"><div style="font-weight:bold;line-height:1.0; color:red;">Q1: Can't boot/recognize from NVMe SSD?</div><div class="mw-collapsible-content">A: Here are a few steps to help you troubleshoot some issues:# Firstly, you can read [https://geekworm.com/community/forum/topic/120764/geekworm-x1001-for-raspberry-pi-5 this post] to get some help;# Make sure the SSD type you use is correct, only support <span class="tb_red">M.2 NVME (Sata) Key-M SSD '''</span>NOT support''' M.2 NGFF Key-B SSD. Refer to the following diagram (click it to zoom out): [[File:Supported-SSD-1.jpg|100px]]# Check if the FFC is fully inserted. Is the HAT tightly connected? We recommend you to send us the FFC connection schematic as well.# '''Only''' Raspberry Pi OS ('''Bookworm''') supports PCIe, Raspberry Pi OS bullseye is NOT supported, refer to https://www.raspberrypi.com/software/operating-systems/# Although you can also boot from a SD card, Pi OS is required for the NVMe SSD to boot, DON'T forget Flash OS onto NVMe SSD.# If you're flashing a fresh Pi OS into NVME SSD , DON'T forget to '''ENABLE PCIe''' to NVME SSD.# Run the '''lspci''' and'''lsblk''' command to check the NVMe SSD is recognized.# Add '''''PCIE_PROBE=1''''' to the eeprom, (Run '''sudo rpi-eeprom-config --edit''' command, then add this line, then press CTRL+O to write change to file, press CTRL+X to exit, then reboot)# <span class="tb_red">Update the bootloader firmware to the last verson, refer to [[How to update eeprom firmware]], this is very important!!!</span>And finally be sure to run the command ''vcgencmd bootloader_version'' to check if your upgrade was successful!# For [[X1003]], if an error occurs, replace the FFC cable to test.# If your SSD is old and has a '''DOS partition''', delete the DOS partition and repartition the SSD (feedback from buyer)# Contact us at email: support@geekworm.com</div></div> <div class="toccolours mw-collapsible mw-collapsed"><div style="font-weight:bold;line-height:1.0;">Q2: Don't recognize / boot from NVME SSD?</div><div class="mw-collapsible-content">A: If you have '''enabled pcie''' and find that you still cannot boot from NVME SSD, please perform the following actions 1. Follow the picture below to check the version of [[X1001]] or [[X1000]] [[File:X1001-V1.1-IMG-6871-old-new.jpg|600px]] 2. If it is an '''Old Version''', refer to [[How to update eeprom firmware]] to update the firmware with '''pieeprom-2023-10-30.bin file'''. 3. If it is an '''New Version''', refer to [[How to update eeprom firmware]] to update the firmware to '''lasted version'''. 4. '''If you still have not solved the problem, please refer to the next FAQ:Q1'''</div></div>}}
Return to [[X1000]] / [[X1001]] / [[X1002]] / [[X1003]]