Raspberry Pi connector for PCIe

Raspberry Pi connector for PCIe
Figure 1. Raspberry Pi connector for PCIe

Raspberry Pi 5 has an FPC connector on the left side of the board. This connector breaks out a PCIe Gen 2.0 ×1 interface for fast peripherals.

To connect a PCIe HAT+ device, connect it to your Raspberry Pi. Your Raspberry Pi should automatically detect the device. To connect a non-HAT+ device, connect it to your Raspberry Pi, then manually enable PCIe.

For more information about the PCIe FPC connector pinout and other details needed to create third-party devices, accessories, and HATs, see the Raspberry Pi Connector for PCIe standards document. It should be read alongside the Raspberry Pi HAT+ Specification.

Only certain devices support enumeration of PCIe devices behind a switch.

Enable PCIe

By default, the PCIe connector is not enabled unless connected to a HAT+ device. To enable the connector, add the following line to /boot/firmware/config.txt:

dtparam=pciex1

Reboot with sudo reboot for the configuration changes to take effect.

You can also use the alias nvme.

Boot from PCIe

By default, Raspberry Pi devices do not boot from PCIe storage. To enable boot from PCIe, change the BOOT_ORDER in the bootloader configuration. Edit the EEPROM configuration with the following command:

$ sudo rpi-eeprom-config --edit

Replace the BOOT_ORDER line with the following line:

BOOT_ORDER=0xf416

To boot from a non-HAT+ device, also add the following line:

PCIE_PROBE=1

After saving your changes, reboot your Raspberry Pi with sudo reboot to update the EEPROM.

PCIe Gen 3.0

The Raspberry Pi 5 isn’t certified for Gen 3.0 speeds. PCIe Gen 3.0 connections might be unstable.

By default, Raspberry Pi 5 uses Gen 2.0 speeds (5 GT/s). Use one of the following approaches to enable Gen 3.0 (8 GT/s) speeds:

raspi-config

Run the following command to open the Raspberry Pi Configuration CLI:

$ sudo raspi-config

Complete the following steps to enable PCIe Gen 3.0 speeds:

  1. Select Advanced Options.

  2. Select PCIe Speed.

  3. Choose Yes to enable PCIe Gen 3 mode.

  4. Select Finish to exit.

  5. Reboot your Raspberry Pi with sudo reboot for your changes to take effect.

config.txt

To enable PCIe Gen 3.0 speeds, add the following line to /boot/firmware/config.txt:

dtparam=pciex1_gen=3

Reboot your Raspberry Pi with sudo reboot for these settings to take effect.