Enable NPU on Board
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.
- Official image download:
Fogwise® AIRbox Q900Resource Downloads - Installation guide: Install System to Onboard UFS
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