Skip to main content

Enable NPU on Board

tip

When using system image version R2 or higher, the NPU runtime environment is pre-installed and no additional installation is required.

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 v68
rock@radxa-dragon-q8b:~$ fastrpc_test -a v68

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


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 PASSED
Please look at the mini-dm logs or the adb logcat logs for DSP output
[PASS] libmultithreading.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