Skip to main content

Bring up Voyager SDK in Orange Pi 6 Plus

Tested with Voyager SDK 1.9.0

This guide was written and tested with Voyager SDK 1.9.0 (driver 1.7.16). The install commands, script names and driver version may change in later SDK versions, so check the SDK install guide if a step no longer matches.

This guide covers installing Ubuntu 24.04 and the Voyager SDK on an Orange Pi 6 Plus (CIX P1 Arm) board fitted with an Axelera Embedded 113m card. Unlike the Orange Pi 5 Plus, the card enumerates without a device tree change. A default install on the Orange Pi Ubuntu image needs three fixes, each covered below: install the kernel headers, release the held GStreamer packages, and add the SDK to the GStreamer plugin path.

No M.2 HAT needed

The Orange Pi 6 Plus has three M.2 slots on the underside of the board. Two of them are M.2 M-Key (PCIe), so the card fits directly in either.

Power supply

Power the Orange Pi 6 Plus with the supply recommended in its official user manual, or with a reliable USB-C Power Delivery adapter rated for 100 W. Under sustained AI workloads the host draws more power, and an undersized adapter can cause brownouts: the Orange Pi 6 Plus may then freeze, reboot or lose the PCIe link to the card.

1. Install Ubuntu 24.04​

  1. Flash the official Orange Pi Ubuntu 24.04 (Noble) image for the Orange Pi 6 Plus, available from the Orange Pi 6 Plus service and support page. Follow the official user manual on that page for the first-boot steps. If the board does not boot from the SD card (selecting the SD card in the UEFI Boot Manager returns you to the same page), disable Secure Boot in the UEFI setup, then select the SD card again.

  2. Power the board off and install the card in one of the M.2 M-Key slots on the underside.

  3. Boot the board and check the kernel version:

    uname -r

    The Ubuntu 24.04 image reports a -cix kernel, for example 6.6.89-cix.

  4. Check that the card is visible on the PCIe bus:

    lspci -nn | grep -i 1f9d

    You should see one device with ID 1f9d:1100, for example:

    c1:00.0 Processing accelerators [1200]: Device [1f9d:1100]

2. Install the Linux headers​

The Metis driver is built with DKMS against the running kernel. The Orange Pi image ships the kernel headers as a .deb in /opt but does not install them. Without the headers, the SDK installer registers the driver but never builds it.

  1. Find the headers package and install it. The file name depends on the image version, for example linux-headers-next-cix_1.0.2_arm64.deb:

    ls /opt/*.deb
    sudo dpkg -i /opt/linux-headers-next-cix_1.0.2_arm64.deb
  2. Check that the build directory for your kernel now exists:

    ls -d /lib/modules/$(uname -r)/build

3. Release the held GStreamer packages​

The Orange Pi image holds some GStreamer packages at older versions. If ./quick-start.sh (step 4) fails with Unable to correct problems, you have held broken packages, release the holds on the GStreamer packages, upgrade only those, and run the script again. Skip this step if the SDK installs without errors.

  1. List the held packages:

    apt-mark showhold
  2. Release the holds on the GStreamer packages only. Leave the other held packages, such as libavcodec60 and xwayland, as they are:

    sudo apt-mark unhold gir1.2-gst-plugins-base-1.0 gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good gstreamer1.0-pulseaudio libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0
  3. Upgrade only those packages:

    sudo apt install --only-upgrade gir1.2-gst-plugins-base-1.0 gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-plugins-base gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good gstreamer1.0-pulseaudio libgstreamer-plugins-base1.0-0 libgstreamer-plugins-good1.0-0

    Before you confirm, check the list that apt proposes. It should not remove anything or change packages outside GStreamer.

4. Install the Voyager SDK​

Clone the Voyager SDK repository and run the installer:

git clone https://github.com/axelera-ai-hub/voyager-sdk.git
cd voyager-sdk
./quick-start.sh

Activate the virtual environment. The installer names it after the SDK version, venv_<version>. For SDK 1.9.0:

source venv_1.9.0/bin/activate

Download the sample media, which the inference run in step 7 uses:

axdownloadmedia @all-available

For other installation options, see the SDK install guide.

5. Check the driver​

  1. Check that the driver is loaded and that the device is detected:

    lsmod | grep metis
    axversion --driver
    axdevice

    axversion --driver should print the driver version, and axdevice should list your Metis device.

  2. If lsmod shows nothing and axversion --driver reports Device driver not loaded, the driver was not built. This happens when quick-start.sh runs before the headers are installed; the script then prints modprobe: FATAL: Module metis not found. Make sure the headers are installed (step 2), then check the driver version that DKMS registered:

    dkms status

    It should show metis/<version>: added, for example metis/1.7.16: added. Build, install and load the driver, using the version shown on your system:

    sudo dkms build metis/1.7.16
    sudo dkms install metis/1.7.16
    sudo modprobe metis
  3. Check again:

    dkms status
    lsmod | grep metis
    modinfo metis | grep ^version:
    sudo dmesg | grep -i -E "metis|axelera" | tail

    dkms status should now report installed instead of added, modinfo should print the driver version, and dmesg should end with Axelera AIPU PCIe Driver, version 1.7.16, init OK.

If the driver is loaded but axdevice does not list the device, reload the driver:

sudo modprobe -r metis
sudo modprobe metis

6. Add the SDK to the GStreamer plugin path​

The Orange Pi image sets the environment variable GST_PLUGIN_PATH_1_0:

echo $GST_PLUGIN_PATH_1_0

The result is similar to:

/usr/share/cix/lib/gstreamer-1.0:/usr/lib/aarch64-linux-gnu/gstreamer-1.0

When this variable is set, GStreamer ignores GST_PLUGIN_PATH, which inference.py uses to point GStreamer at the SDK plugins in operators/lib. The plugins are built correctly, but GStreamer never looks for them, and running a model fails with:

ERROR   : The following Axelera GStreamer elements are missing:
ERROR : axinferencenet
ERROR : axinplace
ERROR : axtransform
  1. Add the SDK operators/lib folder to the front of GST_PLUGIN_PATH_1_0, keeping the paths the image already sets. Change the path if you cloned the SDK somewhere other than your home folder:

    echo 'export GST_PLUGIN_PATH_1_0=$HOME/voyager-sdk/operators/lib:$GST_PLUGIN_PATH_1_0' >> ~/.bashrc
    source ~/.bashrc
  2. Check the variable:

    echo $GST_PLUGIN_PATH_1_0

    The SDK folder should be the first entry in the list.

7. Run inference​

With the virtual environment active, download a precompiled model and run it on a sample video from the voyager-sdk folder:

axdownloadmodel yolov5s-v7-coco
./inference.py yolov5s-v7-coco ./media/h264/traffic2_720p.mp4 --no-display

On a 16 GB Axelera Embedded 113m card, this model runs at 520 to 540 fps.

Power limit

With a power supply that meets the requirement above, the Orange Pi 6 Plus runs the Embedded 113m at its default power limit of 8.5 W. If the system freezes or reboots under sustained load, check the power supply first. Where a suitable supply is not available, lower the card's power limit, for example to 8 W:

axdevice --set-power-limit 8

Check the current setting with axdevice -v. For how the power limiter works, see Power management.