Get started with Edge AI Expansion Board

Assemble the Edge AI Expansion Board under a Raspberry Pi 5, enable PCIe Gen 3, install the DEEPX runtime, check the NPU, and run a YOLOv5 detection demo.

Works with

Before you begin

Required

Hardware

  • Raspberry Pi 54 GB, 8 GB, or 16 GB. See Compatibility.
  • USB-C PD power supply, 27 W or moreThe official Raspberry Pi 27 W supply is the minimum; use 45 W with the NPU, SSD, and modem all fitted. A smaller supply causes under-voltage warnings, SSD disconnects, and reboots.
  • DEEPX DX-M1 M.2 AI ModuleIncluded in Variant 2.
  • Display, micro HDMI to HDMI cable, USB keyboard and mouseFor the Raspberry Pi desktop, where the first inference opens its window. VNC works instead.
  • Raspberry Pi Active CoolerOptionalRecommended. Keeps the Raspberry Pi 5 CPU from throttling under sustained load.
  • NVMe SSDOptionalM.2 M-Key NVMe, 2230 to 2280; M.2 SATA SSDs are not supported. Tested with the Raspberry Pi 256 GB and 512 GB SSDs.
  • LTE/5G modemOptionalM.2 Key-B, with a nano SIM (eUICC supported) and antennas for its connector type.
  • USB or CSI cameraOptionalThe demo also runs on a video file.

Software

  • microSD card with Raspberry Pi OS (Bookworm or Trixie, 64-bit)Internet access is needed during the runtime install. Debian Bookworm or Trixie on ARM can work, but Raspberry Pi OS is recommended.
In the box10 parts
  • 1×Edge AI Expansion BoardThree M.2 slots, USB-C PD input, and pogo pins on the top side.
  • 1×USB 3.0 BridgeCarries the board’s USB hub (NVMe and cellular data) to the Raspberry Pi 5 USB 3.0 ports.
  • 1×PCIe FFC cable, 40 mmShielded. Ends marked RPi5 and EDGE AI.
  • 4×M2.5 × 5 mm spacersMale to female, plastic. Between the board and the Raspberry Pi 5.
  • 6×M2.5 × 15 mm spacersFemale to female, plastic. Standoffs under the board.
  • 6×M2.5 screwsFour fasten the Raspberry Pi 5, two fasten the board to the standoffs.
  • 3×M2 flat-head screwsOne per M.2 module.
  • 3×M.2 module spacersOne per M.2 module.
  • 1×USB-C capCovers the Raspberry Pi 5’s own USB-C port.
  • 1×DEEPX DX-M1 M.2 AI ModuleVariant 2 only. Comes with a passive heatsink.
Not includedRaspberry Pi 5, power supply, microSD card, display, micro HDMI cable, keyboard and mouse, Active Cooler, NVMe SSD, LTE/5G modem, SIM, antennas, camera; with Variant 1, the DX-M1 module.

Assemble hardware

Power off Raspberry Pi 5

The Expansion Board is not hot-pluggable. Disconnect the USB-C supply before installing or removing the board or any M.2 module; mounting under power can damage the DEEPX module or the Raspberry Pi 5.

M.2 slots

Each slot is labelled on the board. The DX-M1 goes in M.2-PCIe only.

DEEPX DX-M1 M.2 AI Module

M.2-PCIe: the only slot on the dedicated PCIe x1 link.

Key
M-Key
Form factor
2280
Insert angle
30°
Fixing
M.2 module spacer, M2 screw

NVMe SSD

M.2-SSD: behind the Realtek RTL9210B-CG bridge; the SSD appears as /dev/sda.

Key
M-Key
Form factors
2230, 2242, 2260, 2280
Insert angle
30°
Fixing
M.2 module spacer, M2 screw

LTE/5G modem

CELLULAR LTE/5G: on the USB 3.0 hub. Connect the antennas to the modem before seating it.

Key
Key-B
Insert angle
30°
Fixing
M2 screw
SIM
1 × nano SIM, eUICC supported

Assembly

  1. Fit spacers

    Screw the six M2.5 × 15 mm female-female spacers into the bottom side of the board as standoffs. On the top side (the side with the M.2 slots), fit the four M2.5 × 5 mm male-female spacers, one in each corner hole, and two M2.5 screws.

    • 6× M2.5 × 15 mm spacer, female-female
    • 4× M2.5 × 5 mm spacer, male-female
    • 2× M2.5 screw
  2. Connect PCIe cable to board

    Lift the latch on the board’s PCIe FFC connector, insert the cable with the EDGE AI label facing up and Pin 1 aligned, and press the latch down. Do this before mounting the Raspberry Pi 5: afterwards the connector is hard to reach.

    • 1× PCIe FFC cable, 40 mm
  3. Mount Raspberry Pi 5

    Flash Raspberry Pi OS to the microSD card and insert it into the Raspberry Pi 5 first: once the PCIe cable is connected, the card cannot come out without disconnecting the cable.

    Lower the Raspberry Pi 5 onto the four 5 mm spacers so the pogo pins on the board meet the pads under its GPIO header (two 5 V, two GND). Fasten it with four M2.5 screws.

    • 1× Raspberry Pi 5, microSD card inserted
    • 4× M2.5 screw
  4. Install DX-M1 module

    Insert the module into the M.2-PCIe slot at 30° and seat the contacts fully. Put an M.2 module spacer under the far mounting hole, press the module flat, and fasten it with an M2 flat-head screw.

    • 1× DEEPX DX-M1 M.2 AI Module
    • 1× M.2 module spacer
    • 1× M2 flat-head screw
  5. Fit heatsink (recommended)

    Peel the film off the thermal pad, place the passive heatsink that comes with the DX-M1 on the NPU as shown, and press evenly so the pad makes full contact. It keeps the NPU cooler under sustained inference.

    • 1× Heatsink
  6. Connect cable to Raspberry Pi 5

    Pull up the latch on the Raspberry Pi 5 PCIe connector. Bring the cable round the edge of the board, insert the RPi5 end fully into the connector from above, and press the latch down.

  7. Connect USB Bridge

    Push the USB Bridge onto the board’s USB connector and into the lower blue USB 3.0 port of the Raspberry Pi 5, with the Sixfab logo facing out. It carries the NVMe and cellular data to the Raspberry Pi 5.

    • 1× USB 3.0 Bridge
  8. Install LTE/5G modem (optional)

    Turn the stack over. Connect the antennas to the modem first. Insert the modem into the CELLULAR LTE/5G slot at 30° and seat the contacts fully, press it flat, and fasten it with an M2 flat-head screw.

    • 1× LTE/5G modem, antennas connected
    • 1× M2 flat-head screw
  9. Install NVMe SSD (optional)

    Insert the SSD into the M.2-SSD slot at 30° and seat the contacts fully. Put an M.2 module spacer under its mounting hole, press the SSD flat, and fasten it with an M2 flat-head screw.

    • 1× NVMe SSD
    • 1× M.2 module spacer
    • 1× M2 flat-head screw
  10. Insert nano SIM

    With a modem fitted, push the nano SIM into the SIM slot.

    • 1× Nano SIM
  11. Connect display, keyboard and mouse

    Turn the stack back over. Connect a display to HDMI0, the micro HDMI port next to the Raspberry Pi 5 USB-C port, with a micro HDMI to HDMI cable. Connect a USB keyboard and mouse, or their wireless receiver, to the free USB ports.

    • 1× Display with a micro HDMI to HDMI cable
    • 1× USB keyboard
    • 1× USB mouse
  12. Connect power

    Fit the cap on the Raspberry Pi 5’s own USB-C port, so the supply is never plugged in there. Connect the USB-C PD supply to the USB-C port on the Expansion Board, directly below it: it powers the stack and back-powers the Raspberry Pi 5 through the pogo pins.

    The red PWR LED lights when the input is valid. See LED indicators.

    • 1× USB-C cap
    • 1× USB-C PD power supply, 27 W or more

Spacers and cable

Tighten spacers and screws by hand. Loose spacers give intermittent pogo-pin contact (power glitches, reboots under load); over-tightening strips the spacer threads, which cannot be repaired.

The RPi5 end goes to the Raspberry Pi 5, the EDGE AI end to the board; match the Pin 1 arrows. A reversed or partly inserted cable gives no PCIe link, and the DX-M1 does not appear in lspci. Use only the included 40 × 8.5 mm cable.

Enable PCIe Gen 3

The Sixfab package does not edit config.txt. Add these settings before installing the runtime, so the DX-M1 comes up at Gen 3 on the first reboot.

Power on, let the Raspberry Pi 5 boot, and open a terminal. Open the boot configuration file:

sudo nano /boot/firmware/config.txt

Add these lines to the end of the file:

dtparam=pciex1
dtparam=pciex1_gen=3
  • dtparam=pciex1 enables the Raspberry Pi 5 external PCIe x1 lane, which the cable carries to the DX-M1.
  • dtparam=pciex1_gen=3 raises the link from Gen 2, the Raspberry Pi OS default, to Gen 3: 800 to 900 MB/s instead of 400 to 450 MB/s.

Booting from the NVMe SSD? Also add usb_max_current_enable=1. Without it, the Raspberry Pi 5 stops at boot and asks you to press its button to allow more than 1.6 A of USB current. Not needed when booting from the microSD card.

Save the file and reboot:

sudo reboot

Install runtime

Add the Sixfab APT repository and install sixfab-dx:

sudo apt update
sudo apt install apt-repo-sixfab
sudo apt update && sudo apt install sixfab-dx

Answer Y at the prompt. The package installs the kernel driver (built with DKMS), the DEEPX runtime, and the tools dxrt-cli, dxtop, and run_hello_world. The driver build needs kernel headers that match the running kernel. The first install takes 5 to 10 minutes.

Internet access is needed during the install. Afterwards the board runs offline.

After Raspberry Pi OS update

DKMS rebuilds the driver when the kernel changes. If the NPU disappears after a major update and lsmod | grep -i dx shows no dx_dma, run sudo apt install --reinstall dxrt-driver-dkms.

Verify installation

Check that the DX-M1 is on the PCIe bus:

lspci | grep -i deepx
01:00.0 Processing accelerators: DEEPX Co., Ltd. DX-M1 AI Accelerator (rev 01)

Then print its status:

dxrt-cli -s
DXRT v3.5.0
=======================================================
 * Device 0: M1, Accelerator type
---------------------   Version   ---------------------
 * RT Driver version   : v2.7.0
 * PCIe Driver version : v2.7.0
-------------------------------------------------------
 * FW version          : v2.7.6
--------------------- Device Info ---------------------
 * Memory : LPDDR5 5600 Mbps, 3.92GiB
 * Board  : M.2, Rev 1.0
 * Chip Offset : 0
 * PCIe   : Gen3 X1 [01:00:00]
NPU 0: voltage 750 mV, clock 1000 MHz, temperature 45'C
NPU 1: voltage 750 mV, clock 1000 MHz, temperature 45'C
NPU 2: voltage 750 mV, clock 1000 MHz, temperature 45'C
=======================================================

dxrt-cli -s prints the runtime, driver, and firmware versions, the PCIe link speed, and the state of each NPU core. The PCIe line should read Gen3 X1. For continuous monitoring, see System monitoring.

Fitted an NVMe SSD or a modem? Set them up on NVMe storage and Cellular connectivity; the modem has no data connection yet.

Run first inference

sixfab-dx includes a pre-compiled YOLOv5 detection demo. It opens a window, so run it on the Raspberry Pi desktop (monitor or VNC), not over SSH:

run_hello_world

The window shows the camera feed or a stored video with a box and label on each detected object. The model runs on the NPU, not on the CPU.

The demo does not write to the NVMe SSD, and nothing leaves the device unless your application sends it.

To see NPU load, voltage, clock, and temperature, run dxtop in a second terminal; press q to quit. The DX-M1 starts to throttle at about 90 °C.

dxtop

Troubleshooting

Power off and check the PCIe cable: the RPi5 end goes to the Raspberry Pi 5, the EDGE AI end to the board, labels facing out, both latches closed. Tighten the four M2.5 spacers by hand: loose spacers leave the pogo pins without contact. See NPU not detected.

The DEEPX kernel module is not loaded. Reboot once after the install; if lsmod | grep -i dx still prints nothing, reinstall dxrt-driver-dkms. See Driver installed but no device found.

Check the two dtparam lines of Enable PCIe Gen 3 in /boot/firmware/config.txt and reboot. See PCIe link errors.

Next steps