M.2 Setup

This page details the installation and troubleshooting procedures for the Linux kernel driver required for DeGirum Orca PCIe cards.

Linux Kernel Driver Installation

Hosts that have DeGirum Orca PCI Express card installed need a driver to enable its functionality. The driver is distributed as a source package via a DeGirum APT software repository. It can be built automatically after download. To download, build, and install the driver please perform the following steps:

1

Install prerequisites:

sudo apt install curl dkms mokutil
2

Download DeGirum public key:

  • Ubuntu 20.04:

wget -O - -q http://assets.degirum.com/apt-repo/DeGirum.gpg.key | sudo apt-key add -
  • Ubuntu 22.04 and Ubuntu 24.04:

curl -fsSL http://assets.degirum.com/apt-repo/DeGirum.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/degirum.gpg
3

Add DeGirum software repository to APT sources configuration file:

  • Ubuntu 20.04:

echo deb [arch=amd64,arm64] https://assets.degirum.com/apt-repo ORCA main | sudo tee -a /etc/apt/sources.list
  • Ubuntu 22.04:

echo deb [arch=amd64,arm64 signed-by=/usr/share/keyrings/degirum.gpg] https://assets.degirum.com/apt-repo ORCA main | sudo tee -a /etc/apt/sources.list
  • Ubuntu 24.04:

echo 'Types: deb
URIs: https://assets.degirum.com/apt-repo
Suites: ORCA
Components: main
Architectures: amd64 arm64
Signed-By: /usr/share/keyrings/degirum.gpg' | sudo tee /etc/apt/sources.list.d/degirum.sources
4

Update package information from configured sources:

sudo apt update
5

Download and build DeGirum Linux driver package:

sudo -E apt install cdapci-dkms
6

Either perform reboot or execute the following command to load the driver:

sudo modprobe cdapci
7

If secure boot is enabled, the installer prompts you to add the certificate used to sign the driver to MOK. Follow the on-screen instructions and continue with the target boot.

Linux Kernel Driver Troubleshooting

1

Verify that Orca PCIe device is recognized by the system. Run the following command:

sudo lspci | grep accelerators
2

If the PCIe device is not recognized, ensure it is securely connected and that the green LED is flashing. If the light is off, contact DeGirum support for assistance.

3

Verify that Orca Kernel Driver is installed. Run the following command:

sudo lsmod | grep cda
4

If the driver is not installed, reinstall it as described in the Linux Kernel Driver Installation section.

5

Verify permissions. Ensure a dg_orca group exists and the current user belongs to it:

cat /etc/group | grep dg_orca && groups | grep dg_orca

If the group exists but the user is not a member, add the user via:

sudo -E usermod -a -G dg_orca <username>
6

If you installed DeGirum AI Server then verify AI Server operation:

degirum sys-info --host <hostname or IP>

Check for the ORCA section in the output. If it is missing, reinstall the server following the AI Server Configuration guide.

7

Run the following command to combine the above checks:

sudo lspci | grep accelerators && sudo lsmod | grep cda && cat /etc/group | grep dg_orca && groups | grep dg_orca

Windows Kernel Driver Installation

Hosts that have DeGirum Orca PCI Express card installed need a driver to enable its functionality. The driver is distributed as a Zip archive.

1

Download the driver: Orca Windows Driver

2

Unpack the ORCA driver .zip file. This can be done with Windows explorer.

3

Start Device Manager. Open the Power User menu by right-clicking on the Start button (or by pressing Win+X), then click "Device Manager".

4

Find "PCI Device" under "Other devices".

5

Right-click on "PCI Device", then select "Update driver".

6

Choose "Browse my computer for drivers".

7

Click "Browse…", then navigate to the folder that contains the driver files unpacked in Step 1. Check "Include subfolders". Then, click "Next".

Kernel Driver Installation for Other Operating Systems

Kernel driver support for other operating systems is under development. This document will be updated when kernel drivers for other operating systems will be released.

Last updated

Was this helpful?