Enable NPU on Board
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
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.
- QCS6490
- SC8280XP
- QCS9075
sudo apt update
sudo apt install fastrpc libcdsprpc1
sudo apt update
sudo apt install fastrpc libcdsprpc1
sudo apt update
sudo apt install fastrpc libcdsprpc1
Verify fastrpc status
- QCS6490
- SC8280XP
- QCS9075
sudo apt install fastrpc-test
fastrpc_test -a v68
rock@radxa-dragon-q6a:~$ fastrpc_test -a v68
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
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 Summary:
Total tests run: 3
Passed: 3
Failed: 0
Skipped: 0
========================================
RESULT: All applicable tests PASSED
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
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