Pi5-PCIE-to-SSD-A教程

Step 1 Enabling PCIe】
By default the PCIe connector is not enabled. To enable it you should add the following option into /boot/firmware/config.txt and reboot:

# Enable the PCIe External connector.
dtparam=pciex1
A more memorable alias for pciex1 exists, so you can alternatively add dtparam=nvme to the /boot/firmware/config.txt file.

NOTE
Enumeration of PCIe devices behind a switch is not currently supported.

Step 2 PCIe Gen 3.0】
The connection is certified for Gen 2.0 speeds (5 GT/sec), but you can force it to Gen 3.0 (10 GT/sec) if you add the following lines to your /boot/firmware/config.txt.

# Enable the PCIe external connector
dtparam=pciex1

# Force Gen 3.0 speeds
dtparam=pciex1_gen=3
WARNING
The Raspberry Pi 5 is not certified for Gen 3.0 speeds, and connections to PCIe devices at these speeds may be unstable.
You should then reboot your Raspberry Pi for these settings to take effect.

Step 3 Booting from PCIe】
Once enabled, and after you reboot, an NVMe disk attached via the PCIe should be visible. However, your Raspberry Pi won’t try to boot off the NVMe drive. If you wish to enable boot support you will need to change the BOOT_ORDER in the bootloader configuration. Edit the EEPROM configuration by,

sudo rpi-eeprom-config --edit
and change the BOOT_ORDER line to be as below.

BOOT_ORDER=0xf416
after saving your changes, reboot your Raspberry Pi to update the EEPROM.

NOTE】
Your Raspberry Pi will not boot from an attached NVMe drive unless you have the external PCIe port enabledd, and there’s a NVMe drive with a valid boot partition attached to the PCIe bus.
TAG: 树莓派RP2040 LoRa LF 树莓派SIM7670G LTE-4G-Cat-1/GNSS/USB-HUB扩展板 树莓派CM5转Pi5扩展板IO底板BASE带USB音频解码 0.96寸1.3寸1.44寸1.8寸LCD显示屏TFT圆形SPI液晶屏ST7735 ESP32 C3显示屏 7.3寸电子墨水屏模块E彩色6色ePaper适用于Arduino树莓派STM32/Jetson 飞行时间激光雷达 RDK X3 MD Carrier Board 地平线官方原版RDK X3 Module专用核心板底板 扩展板 适用于RDK X3 MD所有版本 英伟达NVIDIA Jetson Orin Nano 4/8GB AI人工智能开发板 斑梨 Banana Pi 使用手册 桌搭氛围屏 5.79寸电子墨水屏模块G红黄黑白4色ePaper适用于Arduino树莓派STM32/Jetson GC9A01显示屏 JETSON NANO MINI Arduino查看自己库的路径 树莓派红外摄像头 RoArm-M2-S JSON command meaning ESP32-P4核心板PSRAM 32MB Flash 16MB开发板Core板载ESP32-C6