---
title: "Get started with Edge AI Expansion Board"
description: "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."
url: "https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/quickstart/"
last_updated: "2026-11-26"
---

# 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:** [Edge AI Expansion Board](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/) on Raspberry Pi 5

## Before you begin

**Required**

**Hardware**

- **Raspberry Pi 5**: 4 GB, 8 GB, or 16 GB. See [Compatibility](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/#compatibility).
- **USB-C PD power supply, 27 W or more**: The 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 Module**: Included in Variant 2.
- **Display, micro HDMI to HDMI cable, USB keyboard and mouse**: For the Raspberry Pi desktop, where the first inference opens its window. VNC works instead.
- **Raspberry Pi Active Cooler(Optional)**: Recommended. Keeps the Raspberry Pi 5 CPU from throttling under sustained load.
- **NVMe SSD(Optional)**: M.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 modem(Optional)**: M.2 Key-B, with a nano SIM (eUICC supported) and antennas for its connector type.
- **USB or CSI camera(Optional)**: The 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.

*The kit laid out: the Edge AI Expansion Board, the USB 3.0 Bridge, the 40 mm PCIe FFC cable, six 15 mm and four 5 mm spacers, six M2.5 screws, three M2 flat-head screws, three M.2 module spacers, the USB-C cap, and with Variant 2 the DX-M1 module and its heatsink.*

**In the box** (10 parts)

- 1× **Edge AI Expansion Board**: Three M.2 slots, USB-C PD input, and pogo pins on the top side.
- 1× **USB 3.0 Bridge**: Carries the board’s USB hub (NVMe and cellular data) to the Raspberry Pi 5 USB 3.0 ports.
- 1× **PCIe FFC cable, 40 mm**: Shielded. Ends marked `RPi5` and `EDGE AI`.
- 4× **M2.5 × 5 mm spacers**: Male to female, plastic. Between the board and the Raspberry Pi 5.
- 6× **M2.5 × 15 mm spacers**: Female to female, plastic. Standoffs under the board.
- 6× **M2.5 screws**: Four fasten the Raspberry Pi 5, two fasten the board to the standoffs.
- 3× **M2 flat-head screws**: One per M.2 module.
- 3× **M.2 module spacers**: One per M.2 module.
- 1× **USB-C cap**: Covers the Raspberry Pi 5’s own USB-C port.
- 1× **DEEPX DX-M1 M.2 AI Module**: Variant 2 only. Comes with a passive heatsink.

**Not included:** Raspberry 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

> [!WARNING]
> **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

   *Six 15 mm standoffs come up under the board while four 5 mm spacers go down into the four holes for the Raspberry Pi 5 and two screws go down into the front corners.*

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

   *The latch of the board's FFC connector by the right edge is lifted, the EDGE AI end of the PCIe cable slides in under it, label up, and the latch is pressed down.*

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

   *The Raspberry Pi 5 moves down onto the four 5 mm spacers, its GPIO header over the pogo pins, and four screws go down through its mounting holes into the spacers.*

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

   *The DX-M1 module goes into the M.2-PCIe slot at 30°, then folds down flat onto an M.2 module spacer under its far end, and an M2 flat-head screw goes down into the spacer.*

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

   *The protective film peels off the heatsink's thermal pad, then the heatsink moves down onto the DX-M1 module's NPU and is pressed evenly.*

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.

   *The Raspberry Pi 5 PCIe connector's latch is pulled up; the PCIe cable curls up over the right edge of the board and over the end of the Raspberry Pi 5, and its RPi5 end goes down into the connector from above; then the latch is pressed down. A close-up shows the latch and the cable's end.*

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

   *The USB Bridge moves in from the left: its upper plug goes into the lower blue USB 3.0 port of the Raspberry Pi 5 and its lower plug into the board's USB connector under it, its Sixfab logo facing out.*

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

   *With the stack turned over, the modem with its antennas connected goes into the CELLULAR LTE/5G slot at 30°, folds down flat, and an M2 flat-head screw fastens its far end.*

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

   *The NVMe SSD goes into the M.2-SSD slot at 30°, folds down flat onto an M.2 module spacer under its far end, and an M2 flat-head screw goes down into the spacer.*

10. **Insert nano SIM**

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

    - 1× Nano SIM

    *The nano SIM slides into the SIM slot by the left edge of the turned-over board.*

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

    *Seen from the back, the display's micro HDMI cable goes into the micro HDMI port next to the Raspberry Pi 5 USB-C port, and the USB cables of the keyboard and the mouse go into the free USB ports at the end of the Raspberry Pi 5.*

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](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/hardware-reference/specifications/#led).

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

    *Seen from the back, the cap goes onto the Raspberry Pi 5 USB-C port, and the USB-C supply cable goes into the board's USB-C port directly below it.*

> [!WARNING]
> **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:

```bash
sudo nano /boot/firmware/config.txt
```

Add these lines to the end of the file:

```text filename="/boot/firmware/config.txt"
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.

> [!NOTE]
> 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:

```bash
sudo reboot
```

## Install runtime

Add the Sixfab APT repository and install `sixfab-dx`:

```bash
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.

> [!NOTE]
> **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:

```bash
lspci | grep -i deepx
```

```text
01:00.0 Processing accelerators: DEEPX Co., Ltd. DX-M1 AI Accelerator (rev 01)
```

Then print its status:

```bash
dxrt-cli -s
```

```text
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](https://docs.sixfab.com/edge-ai/ai-model-deployment/system-monitoring/).

Fitted an NVMe SSD or a modem? Set them up on [NVMe storage](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/connectivity-storage/nvme-storage/) and [Cellular connectivity](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/connectivity-storage/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:

```bash
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.

![YOLOv5 detection output window on Raspberry Pi with car, traffic light and person boxes on a street video](https://docs.sixfab.com/wp-content/uploads/sixfab-docs/run-hello-world.jpg)

*YOLOv5 detection running on the NPU.*

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.

```bash
dxtop
```

## Troubleshooting

### `lspci` lists no DEEPX device

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](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/troubleshooting/#issue-npu-not-detected).

### `dxrt-cli -s` reports “no device found”

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](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/troubleshooting/#issue-no-device-found).

### `dxrt-cli -s` reports Gen 2

Check the two `dtparam` lines of [Enable PCIe Gen 3](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/quickstart/#enable-pcie-gen-3) in `/boot/firmware/config.txt` and reboot. See [PCIe link errors](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/troubleshooting/#issue-pcie-ffc).

## Next steps

- [Sixfab Model Zoo](https://docs.sixfab.com/edge-ai/ai-model-deployment/sixfab-model-zoo/): Pre-compiled DXNN models for detection, classification, segmentation, and pose.
- [Deployment workflow](https://docs.sixfab.com/edge-ai/ai-model-deployment/custom-models-dxnn-sdk/workflow/): Compile your own model from ONNX to DXNN.
- [System monitoring](https://docs.sixfab.com/edge-ai/ai-model-deployment/system-monitoring/): NPU load, temperature, voltage, clock, and memory with `dxrt-cli` and `dxtop`.
- [NVMe storage](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/connectivity-storage/nvme-storage/): Partition, format, and mount the SSD; boot from it.
- [Cellular connectivity](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/connectivity-storage/cellular-connectivity/): Modem, SIM, APN, antennas, and signal quality.
- [Troubleshooting](https://docs.sixfab.com/edge-ai/edge-ai-expansion-board/troubleshooting/): NPU not detected, SSD not mounting, modem not registering, under-voltage.
