Hi, I'm using a Dragon Board with pre-installed android and a Hexagon V5 dsp, with the SDK version 2.0, running on Windows 10.
I've discovered the following problems when trying to run the calculator example on the dsp processor, which worked fine locally. Here is the error message from the calculator:
WARNING: linker: ./data/calculator: unused DT entry: type 0x6ffffffe arg 0x610
WARNING: linker: ./data/calculator: unused DT entry: type 0x6fffffff arg 0x1
WARNING: linker: libcalculator.so: unused DT entry: type 0x6ffffffe arg 0x378
WARNING: linker: libcalculator.so: unused DT entry: type 0x6fffffff arg 0x1
- allocate 400 bytes from ION heap
- creating sequence of numbers from 0 to 99
- compute sum on the aDSP
Error: compute on aDSP failed
1st of all, I can't generate a test signature. I've tried to run the testsig.cmd script in tools\scripts but it kept failing. I've then decided to manually execute the script, command by command. After pushing tools\elfsigner\getserial via adb and running it, I get the following error message:
root@msm8916_64:/ # ./data/getserial
WARNING: linker: ./data/getserial: unused DT entry: type 0x6ffffffe arg 0x304
WARNING: linker: ./data/getserial: unused DT entry: type 0x6fffffff arg 0x1
Could not retrieve serial num
This causes testsig.cmd to fail.
In addition, something is off about fastrpc:
adb shell insmod /system/lib/modules/adsprpc.ko
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
error: device not found
Upon further inspection, it seems that the file /system/lib/modules/adsprpc.ko doesn't exist.
Here's the output from logcat -s adsprpc:
root@msm8916_64:/ # logcat -s adsprpc
--------- beginning of system
--------- beginning of crash
--------- beginning of main
E/adsprpc ( 8816): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:148::error: -1: dev >= 0
E/adsprpc ( 8816): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:125::error: -1: dev >= 0
E/adsprpc ( 8816): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:202:/dev/adsprpc-smd device initialization error: Operation not permitted
E/adsprpc ( 8816): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:256::error: -1: dev != -1
E/adsprpc ( 8816): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:305::error: -1: 0 == (nErr = remotectl_open(name, (int*)ph, dlerrstr, sizeof(dlerrstr), &dlerr))
E/adsprpc ( 8816): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:202:/dev/adsprpc-smd device initialization error: Operation not permitted
E/adsprpc ( 8816): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:256::error: -1: dev != -1
E/adsprpc ( 8817): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:148::error: -1: dev >= 0
E/adsprpc ( 8817): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:125::error: -1: dev >= 0
E/adsprpc ( 8817): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:202:/dev/adsprpc-smd device initialization error: Operation not permitted
E/adsprpc ( 8817): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:256::error: -1: dev != -1
E/adsprpc ( 8817): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:305::error: -1: 0 == (nErr = remotectl_open(name, (int*)ph, dlerrstr, sizeof(dlerrstr), &dlerr))
E/adsprpc ( 8817): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:202:/dev/adsprpc-smd device initialization error: Operation not permitted
E/adsprpc ( 8817): vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:256::error: -1: dev != -1
I suspect that the calculator won't run on the dsp because of the problems mentioned above.
Thanks in advance for any assitance :)
I'm in a similar situation on a handheld device - no kernel modules present and getserial failing.
From what I understand you have to load specific firmware (push_adsp.{sh,py} script) before you can access the DSP.
Were you ever able to make progress with your issue?