Skip to main content

Enable NPU on Board

Prerequisites

The fastrpc package on this page is provided through the Radxa APT repository, so you should first flash and boot an official RadxaOS image. If the current system is not an official RadxaOS image, apt install fastrpc may fail because the package cannot be found or dependencies are not satisfied.

NPU Environment Configuration Checklist

  • fastrpc
  • /dev/fastrpc-adsp
  • /dev/fastrpc-cdsp
  • /dev/fastrpc-cdsp-secure
  • /usr/lib/dsp libraries

Install using radxa apt source

Prerequisite

These packages depend on the Radxa APT source included in the official RadxaOS images. Before following the steps below, make sure the device is running the official RadxaOS image for the target board. If you are using a third-party Ubuntu/Debian image or have replaced the package sources, fastrpc / fastrpc-test may not be available.

Device
sudo apt update
sudo apt install fastrpc libcdsprpc1

Verify fastrpc status

Device
sudo apt install fastrpc-test
fastrpc_test -a v75
rock@radxa-airbox-q900:~$ fastrpc_test -a v75

Allocate 4000 bytes from ION heap
Creating sequence of numbers from 0 to 999
Compute sum on domain 3

Call calculator_sum on the DSP
Sum = 499500

Call calculator_max on the DSP
Max value = 999
[PASS] libcalculator.so

Test PASSED
Please look at the mini-dm logs or the adb logcat logs for DSP output
[PASS] libmultithreading.so


Demonstrating FARF run-time logging

hap_example function PASSED
Please look at the mini-dm logs or the adb logcat logs for DSP output

Demonstrating HAP_mem.h APIs

hap_example function PASSED
Please look at the mini-dm logs or the adb logcat logs for DSP output

Demonstrating HAP_perf.h APIs

hap_example function PASSED
Please look at the mini-dm logs or the adb logcat logs for DSP output
[PASS] libhap_example.so


========================================
Test Summary:
Total tests run: 3
Passed: 3
Failed: 0
Skipped: 0
========================================

RESULT: All applicable tests PASSED

    You need to be logged into GitHub to post a comment. If you are already logged in, please ignore this message.

    Radxa-docs © 2026 by Radxa Computer (Shenzhen) Co.,Ltd. is licensed under CC BY 4.0