Hi,
I am trying the calculator example on Snapdragon 888+ using Hexagon SDK 4.4.0.1. Android NDK version is r19c with python 3.10.
I have successfully set up the SDK environment and run the workthrough python file. It worked well in the simulator part. At the target part, it showed the Calculator Example on cDSP Signed PD is failed on domain 3 with ERROR 0x80000406, while it worked on cDSP unSigned PD. But I found there was no error in the signing part, so it is the problem, and I wish your help.
---- Run Calculator Example on cDSP Unsigned PD ----
adb -s 7783e1a8 wait-for-device shell export LD_LIBRARY_PATH=/vendor/lib64/:$LD_LIBRARY_PATH DSP_LIBRARY_PATH="/vendor/lib/rfsa/dsp/sdk;" /vendor/bin//calculator -r 0 -d 3 -n 1000
Starting calculator test
Attempting to run on unsigned PD on domain 3
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
Success
---- Run Calculator Example on cDSP Signed PD----
adb -s 7783e1a8 wait-for-device shell export LD_LIBRARY_PATH=/vendor/lib64/:$LD_LIBRARY_PATH DSP_LIBRARY_PATH="/vendor/lib/rfsa/dsp/sdk;" /vendor/bin//calculator -r 0 -d 3 -n 1000 -U 0
Starting calculator test
Attempting to run on signed PD on domain 3
Allocate 4000 bytes from ION heap
Creating sequence of numbers from 0 to 999
Compute sum on domain 3
Retry attempt unsuccessful. Timing out....
ERROR 0x80000406: Failed to compute sum on domain 3
ERROR 0x80000406: Failed to find max on domain 3
ERROR 0x80000406: Calculator test failed
ERROR 0x80000406: Calculator example failed
========= Logcat output P1===============
10-18 17:24:57.558 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2532: Successfully opened /vendor/dsp/cdsp/fastrpc_shell_33
10-18 17:24:57.558 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:200: Reading configuration file: calculator.debugconfig
10-18 17:24:57.559 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:68: fastrpc_read_config_file_from_path: Couldn't find file: /vendor/lib/rfsa/adsp/calculator.debugconfig
10-18 17:24:57.559 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:148: Error 45: failed for /vendor/lib/rfsa/adsp/calculator.debugconfig with errno(No such file or directory)
10-18 17:24:57.559 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:68: fastrpc_read_config_file_from_path: Couldn't find file: /vendor/lib/rfsa/dsp/calculator.debugconfig
10-18 17:24:57.559 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:148: Error 45: failed for /vendor/lib/rfsa/dsp/calculator.debugconfig with errno(No such file or directory)
10-18 17:24:57.559 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:68: fastrpc_read_config_file_from_path: Couldn't find file: /vendor/dsp/cdsp/calculator.debugconfig
10-18 17:24:57.559 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:148: Error 45: failed for /vendor/dsp/cdsp/calculator.debugconfig with errno(No such file or directory)
10-18 17:24:57.559 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:68: fastrpc_read_config_file_from_path: Couldn't find file: /vendor/dsp/calculator.debugconfig
10-18 17:24:57.559 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:148: Error 45: failed for /vendor/dsp/calculator.debugconfig with errno(No such file or directory)
10-18 17:24:57.577 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2739: Created user PD on domain 3 (attrs 0x0, debug_trace 0x0)
10-18 17:24:57.580 6905 6906 I calculator: vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
10-18 17:24:57.581 6905 6905 I calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_perf.c:273: fastrpc_perf_init: enabled systrace 0x0 and RPC traces (kernel 0, dsp 0) with frequency 1000
10-18 17:24:57.581 6905 6907 I calculator: vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 3
10-18 17:24:57.581 6905 6907 E calculator: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/calculator.farf. (No such file or directory)
10-18 17:24:57.581 6905 6907 E calculator: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/dsp/calculator.farf. (No such file or directory)
10-18 17:24:57.581 6905 6907 E calculator: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/cdsp/calculator.farf. (No such file or directory)
10-18 17:24:57.581 6905 6907 E calculator: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/dsp/calculator.farf. (No such file or directory)
10-18 17:24:57.582 6905 6906 I calculator: vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_std opened with handle 0x9951c9d0 (idx 0)
10-18 17:24:57.582 6905 6906 I calculator: vendor/qcom/proprietary/adsprpc/src/mod_table.c:464: is_reverse_handle_opened: reverse module apps_std already found with handle 0x9951c9d0 (idx 0)
10-18 17:24:57.583 6905 6906 I calculator: vendor/qcom/proprietary/adsprpc/src/mod_table.c:687: open_mod_table_open_from_static: reverse module apps_std opened with handle 0x9951c9d0 (idx 0)
10-18 17:24:57.583 6905 6906 E calculator: vendor/qcom/proprietary/adsprpc/src/listener_android.c:64::error: 512: AEE_SUCCESS == (nErr = mod_table_close(handle, errStr, errStrLen, dlErr))
10-18 17:24:57.587 6905 6906 I calculator: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:870: Successfully opened file /vendor/lib/rfsa/adsp/libcalculator_skel.so
10-18 17:24:57.589 6905 6906 I calculator: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:870: Successfully opened file /vendor/lib/rfsa/adsp/testsig-0x1d660a43.so
10-18 17:24:57.590 6905 6906 I calculator: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:870: Successfully opened file /vendor/lib/rfsa/adsp/testsig-0x1d660a43.so
10-18 17:24:57.606 6905 6905 E calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1297: Error 0x80000406: remote_handle_open_domain: dynamic loading failed for file:///libcalculator_skel.so?calculator_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3 (dlerror _rtld_map_object_ex: cannot open oemconfig.so, errno 2 (no such file or director
10-18 17:24:57.607 6905 6905 E calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1347: Error 0x80000406: remote_handle64_open failed for file:///libcalculator_skel.so?calculator_skel_handle_invoke&_modver=1.0&_dom=cdsp (errno Success)
10-18 17:24:57.608 6905 6906 I calculator: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:870: Successfully opened file /vendor/lib/rfsa/adsp/libcalculator_skel.so
10-18 17:24:57.610 6905 6905 E calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1297: Error 0x80000406: remote_handle_open_domain: dynamic loading failed for file:///libcalculator_skel.so?calculator_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3 (dlerror signature verify start failed for libcalculator_skel.so) (errno Success)
10-18 17:24:57.610 6905 6905 E calculator: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1347: Error 0x80000406: remote_handle64_open failed for file:///libcalculator_skel.so?calculator_skel_handle_invoke&_modver=1.0&_dom=cdsp (errno Success)
10-18 17:24:57.610 6905 6905 D calculator: src/rpcmem_android.c:42:dummy call to rpcmem_deinit, rpcmem APIs will be used from libxdsprpc
========= Logcat output P2 ===============
10-18 19:45:15.028 6246 6249 V adsprpc : CDSP:rtld.c:862:0x568:261: Error: dlopen_ex failed for libcalculator_skel.so (flags 258)
10-18 19:45:15.028 6246 6249 V adsprpc : CDSP:mod_table.c:610:0x568:261: Error 0x80000406: open_mod_table_open_dynamic failed for file:///libcalculator_skel.so?calculator_skel_handle_invoke&_modver=1.0&_dom=cdsp
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:sigverify.c:591:0x96c:261: OEM ID -----------------------> 0x73
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:sigverify.c:592:0x96c:261: Debug Fuse Enabled -----------> No
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:sigverify.c:593:0x96c:261: Testsig Enabled --------------> No
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:sigverify.c:594:0x96c:261: Testsig file found -----------> Yes
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:sigverify.c:596:0x96c:261: Testsig file valid -----------> No
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:sigverify.c:599:0x96c:261: module: Module is signed -----> No
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:sigverify.c:604:0x96c:261: module: Static hash found ----> No
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:map_object.c:740:0x96b:261: signature verify start failed for libcalculator_skel.so
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:rtld.c:862:0x568:261: Error: dlopen_ex failed for libcalculator_skel.so (flags 258)
10-18 19:45:15.031 6246 6249 V adsprpc : CDSP:mod_table.c:610:0x568:261: Error 0x80000406: open_mod_table_open_dynamic failed for file:///libcalculator_skel.so?calculator_skel_handle_invoke&_modver=1.0&_dom=cdsp
Did you ever figure out why this was occuring? I was having the same error pop up for me both when I ran the walk through script and when I tried to run the calculator exe through the command line. Please let me know!