I’m trying to run some tests on my cellphone by following the tutorial. But I got an error when opening FastRPC channel.
Can anyone please help me with this,thanks!
I’m trying to run some tests on my cellphone by following the tutorial. But I got an error when opening FastRPC channel.
Can anyone please help me with this,thanks!
Could you run mini-dm
and point it to your device, then run the launcher again? Mini-dm will dump diagnostic messages from Hexagon, there will usually be a good indicator of what went wrong.
Thanks a lot for your reply and I’m sorry for the late reply.I try to use mini-dm,but It looks like it can’t connect to my device.
Is there something wrong? Thank you for your help.I use adb logcat to show the error messages.Could you help me find out what went wrong? @kparzysz
Thank you!
09-08 13:53:48.976 30430 30430 I launcher_android: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:159: rpcmem_init_internal: opened ION device fd 3, configured heap IDs: system (0x2000000), contig (0x10), secure (0x400), secure flags (0x80080000)
09-08 13:53:48.976 30430 30430 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2990: fastrpc_apps_user_init done
09-08 13:53:48.976 30430 30430 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1971: remote_session_control DSP info request for domain 3, thread priority -1, stack size 131072
09-08 13:53:48.976 30430 30430 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2378: open_device_node: no access to default device of domain 3, open thru HAL, (sess_id 0)
09-08 13:53:48.982 30430 30430 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2565: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/ (errno Permission denied)
09-08 13:53:48.982 30430 30430 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:175: Reading configuration file: launcher_android.debugconfig
09-08 13:53:48.982 30430 30430 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:64: fastrpc_read_config_file_from_path: Couldn't find file: /vendor/lib/rfsa/adsp/launcher_android.debugconfig
09-08 13:53:48.982 30430 30430 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:132: Error 45: failed for /vendor/lib/rfsa/adsp/launcher_android.debugconfig with errno(No such file or directory)
09-08 13:53:49.011 30430 30430 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2752: Created user PD on domain 3 (attrs 0x8, debug_trace 0x0)
09-08 13:53:49.014 30430 30432 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:474: Successfully set remote user thread priority to 192 and stack size to 131072 for domain 3
09-08 13:53:49.014 30430 30432 I launcher_android: vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
09-08 13:53:49.016 30430 30430 E launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:566:Error : Unable to add watcher for folder /vendor/lib/rfsa/adsp : errno is Permission denied
09-08 13:53:49.016 30430 30430 I launcher_android: 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
09-08 13:53:49.016 30430 30433 I launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 3
09-08 13:53:49.017 30430 30433 E launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/launcher_android.farf. (No such file or directory)
09-08 13:53:49.019 30430 30432 I launcher_android: vendor/qcom/proprietary/adsprpc/src/mod_table.c:681: open_mod_table_open_from_static: reverse module apps_std opened with handle 0x9ebf7f40 (idx 0)
09-08 13:53:49.020 30430 30432 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:846: Successfully opened file liblauncher_rpc_skel.so
09-08 13:53:49.022 30430 30432 I launcher_android: vendor/qcom/proprietary/adsprpc/src/mod_table.c:681: open_mod_table_open_from_static: reverse module apps_mem opened with handle 0x9ebf8040 (idx 1)
09-08 13:53:49.040 30430 30432 W launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:874: Warning: apps_std_fopen_with_env failed with 0x2 for libc++.so.1 (No such file or directory)
09-08 13:53:49.043 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.043 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:503::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.043 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:524:Error 0x9: fseek failed for 464, errno is Bad file descriptor
09-08 13:53:49.044 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.044 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:355::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.045 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.045 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:503::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.045 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:524:Error 0x9: fseek failed for 464, errno is Bad file descriptor
09-08 13:53:49.047 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.048 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:503::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.048 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:524:Error 0x9: fseek failed for 464, errno is Bad file descriptor
09-08 13:53:49.049 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.049 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:355::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.056 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.056 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:503::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.056 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:524:Error 0x9: fseek failed for 464, errno is Bad file descriptor
09-08 13:53:49.057 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.058 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:355::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.059 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.060 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:329::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.060 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:341:Error 0x9: freopen for 464 failed. errno: Bad file descriptor
09-08 13:53:49.061 30430 30432 W launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:874: Warning: apps_std_fopen_with_env failed with 0x2 for libc++abi.so.1 (No such file or directory)
09-08 13:53:49.063 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.063 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:503::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.063 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:524:Error 0x9: fseek failed for 464, errno is Bad file descriptor
09-08 13:53:49.065 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.065 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:355::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.066 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.066 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:503::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.066 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:524:Error 0x9: fseek failed for 464, errno is Bad file descriptor
09-08 13:53:49.068 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.068 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:503::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.068 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:524:Error 0x9: fseek failed for 464, errno is Bad file descriptor
09-08 13:53:49.069 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.069 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:355::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.071 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.071 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:503::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.071 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:524:Error 0x9: fseek failed for 464, errno is Bad file descriptor
09-08 13:53:49.072 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.073 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:355::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.074 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:230:Error 0x9: apps_std_FILE_get failed for fd 0x464, errno Bad file descriptor
09-08 13:53:49.074 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:329::error: 9: 0 == (nErr = apps_std_FILE_get(sin, &sinfo))
09-08 13:53:49.074 30430 30432 E launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:341:Error 0x9: freopen for 464 failed. errno: Bad file descriptor
09-08 13:53:49.097 30430 30430 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1294: Error 0x80000406: remote_handle_open_domain: dynamic loading failed for file:///liblauncher_rpc_skel.so?launcher_rpc_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3 (dlerror undefined symbol PLT #275 _ZN3tvm7runtime6detail8LogFatal8GetEntryEv in ./l
09-08 13:53:49.097 30430 30430 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1358: Error 0x80000406: remote_handle64_open failed for file:///liblauncher_rpc_skel.so?launcher_rpc_skel_handle_invoke&_modver=1.0&_dom=cdsp (errno Success)
These two lines seem to point to the root of the problem.
These libraries are in the Hexagon toolchain. You seem to be using v66, so in the SDK 4.5 they would be
tools/HEXAGON_Tools/8.5.08/Tools/target/hexagon/lib/v66/G0/pic/libc++.so
tools/HEXAGON_Tools/8.5.08/Tools/target/hexagon/lib/v66/G0/pic/libc++abi.so
You can copy them to /vendor/lib/rfsa/adsp
on your device.
@kparzysz Thank you for your reply!
I don’t have root access. So I create a temporary folder for these libraries and add the location to ADSP_LIBRARY_PATH
. Now it works :
09-09 14:39:42.578 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:865: Successfully opened file /data/local/tmp/hexagon_test/adsp/libc++.so.1
09-09 14:39:42.589 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:865: Successfully opened file /data/local/tmp/hexagon_test/adsp/libc++abi.so.1
But I still get this error:
Error opening FastRPC channel
And the adb logcat
:
09-09 14:39:42.512 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:159: rpcmem_init_internal: opened ION device fd 3, configured heap IDs: system (0x2000000), contig (0x10), secure (0x400), secure flags (0x80080000)
09-09 14:39:42.512 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2990: fastrpc_apps_user_init done
09-09 14:39:42.512 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1971: remote_session_control DSP info request for domain 3, thread priority -1, stack size 131072
09-09 14:39:42.512 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2378: open_device_node: no access to default device of domain 3, open thru HAL, (sess_id 0)
09-09 14:39:42.518 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2565: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/ (errno Permission denied)
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:175: Reading configuration file: launcher_android.debugconfig
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:64: fastrpc_read_config_file_from_path: Couldn't find file: /data/local/tmp/hexagon_test/adsp/launcher_android.debugconfig
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:132: Error 45: failed for /data/local/tmp/hexagon_test/adsp/launcher_android.debugconfig with errno(No such file or directory)
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:64: fastrpc_read_config_file_from_path: Couldn't find file: /vendor/lib/rfsa/adsp/launcher_android.debugconfig
09-09 14:39:42.518 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:132: Error 45: failed for /vendor/lib/rfsa/adsp/launcher_android.debugconfig with errno(No such file or directory)
09-09 14:39:42.549 21928 21928 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2752: Created user PD on domain 3 (attrs 0x8, debug_trace 0x0)
09-09 14:39:42.553 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:474: Successfully set remote user thread priority to 192 and stack size to 131072 for domain 3
09-09 14:39:42.553 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/listener_android.c:111: listener thread starting
09-09 14:39:42.554 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:566:Error : Unable to add watcher for folder /vendor/lib/rfsa/adsp : errno is Permission denied
09-09 14:39:42.555 21928 21928 I launcher_android: 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
09-09 14:39:42.555 21928 21931 I launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:345: file_watcher_thread starting for domain 3
09-09 14:39:42.555 21928 21931 E launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /data/local/tmp/hexagon_test/adsp/launcher_android.farf. (No such file or directory)
09-09 14:39:42.555 21928 21931 E launcher_android: vendor/qcom/proprietary/adsprpc/src/log_config.c:268:Error 0x200: fopen failed for /vendor/lib/rfsa/adsp/launcher_android.farf. (No such file or directory)
09-09 14:39:42.558 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/mod_table.c:681: open_mod_table_open_from_static: reverse module apps_std opened with handle 0x77bb7f40 (idx 0)
09-09 14:39:42.559 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:846: Successfully opened file liblauncher_rpc_skel.so
09-09 14:39:42.561 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/mod_table.c:681: open_mod_table_open_from_static: reverse module apps_mem opened with handle 0x77bb8040 (idx 1)
09-09 14:39:42.578 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:865: Successfully opened file /data/local/tmp/hexagon_test/adsp/libc++.so.1
09-09 14:39:42.589 21928 21930 I launcher_android: vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:865: Successfully opened file /data/local/tmp/hexagon_test/adsp/libc++abi.so.1
09-09 14:39:42.614 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1294: Error 0x80000406: remote_handle_open_domain: dynamic loading failed for file:///liblauncher_rpc_skel.so?launcher_rpc_skel_handle_invoke&_modver=1.0&_dom=cdsp on domain 3 (dlerror undefined symbol PLT #275 _ZN3tvm7runtime6detail8LogFatal8GetEntryEv in ./l
09-09 14:39:42.614 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1358: Error 0x80000406: remote_handle64_open failed for file:///liblauncher_rpc_skel.so?launcher_rpc_skel_handle_invoke&_modver=1.0&_dom=cdsp (errno Success)
This line seems to show that I don’t have permission.
09-09 14:39:42.518 21928 21928 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2565: Error 0xd: open_shell failed for domain 3 search paths used are /dsp/, /vendor/dsp/, /vendor/dsp/xdsp/ (errno Permission denied)
Does it mean I need to root my phone?
So far there is no need to root the phone. The latest problem is a missing symbol:
That is tvm::runtime::detail::LogFatal::GetEntry()
. It should be a part of the TVM runtime, which is statically linked into liblauncher_rpc_skel.so.
Are you using latest sources? Could you post the steps you used to build the launcher? Maybe something needs to be updated there…
I’m using TVM v0.9.0 Latest.Here are my steps:
Create a subdirectory for the build files, and run cmake
with the following variables set:
cmake -DCMAKE_C_COMPILER="/home/lvsss/Desktop/4.5.0.3/4.5.0.3/tools/HEXAGON_Tools/8.5.08/Tools/bin/hexagon-clang" \
-DCMAKE_CXX_COMPILER="/home/lvsss/Desktop/4.5.0.3/4.5.0.3/tools/HEXAGON_Tools/8.5.08/Tools/bin/hexagon-clang++" \
-DUSE_HEXAGON_ARCH=v68 \
-DUSE_HEXAGON_SDK="/home/lvsss/Desktop/4.5.0.3/4.5.0.3" \
"/home/lvsss/Desktop/apache-tvm-src-v0.9.0/apps/hexagon_launcher/cmake/hexagon"
make -j8
Create a subdirectory for the build files (different from the one used for Hexagon files), and run cmake
with the following variables set:
cmake -DCMAKE_TOOLCHAIN_FILE="/home/lvsss/Desktop/4.5.0.3/4.5.0.3/tools/android-ndk-r19c/build/cmake/android.toolchain.cmake" \
-DANDROID_ABI=arm64-v8a \
-DANDROID_PLATFORM=android-28 \
-DUSE_HEXAGON_SDK="/home/lvsss/Desktop/4.5.0.3/4.5.0.3" \
-DUSE_HEXAGON_ARCH=v68 \
"/home/lvsss/Desktop/apache-tvm-src-v0.9.0/apps/hexagon_launcher/cmake/android"
make -j8
Copy these libraries:
adb push /home/lvsss/Desktop/4.5.0.3/4.5.0.3/tools/HEXAGON_Tools/8.5.08/Tools/target/hexagon/lib/v68/G0/pic/libgcc.so /data/local/tmp/hexagon_test
adb push /home/lvsss/Desktop/hex_build/liblauncher_rpc_skel.so /data/local/tmp/hexagon_test
adb push /home/lvsss/Desktop/an_build/libtvm_runtime.so /data/local/tmp/hexagon_test
adb push /home/lvsss/Desktop/an_build/launcher_android /data/local/tmp/hexagon_test
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/data/local/tmp/hexagon_test
export ADSP_LIBRARY_PATH=$ADSP_LIBRARY_PATH:/data/local/tmp/hexagon_test/adsp
/data/local/tmp/hexagon_test/adsp:
libc++.so libc++.so.1 libc++.so.1.0 libc++abi.so libc++abi.so.1 libc++abi.so.1.0
/data/local/tmp/hexagon_test:
a.dat input.json libgcc.so libtvm_runtime.so model.so
adsp launcher_android liblauncher_rpc_skel.so model.json
@kparzysz Could you help me with this? I need to test the performance of the model running on hexagon. Or is there any other way to deploy my model to the phone?Thank you very much!
Solved by adding definitions -DTVM_LOG_CUSTOMIZE=1
in hexagon_launcher/cmake/hexagon/CMakeLists.txt
.
Met a same issue with log:
--------- beginning of main
07-25 03:33:21.408 1832 1832 I launcher_android: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:159: rpcmem_init_internal: opened ION device fd 3, configured heap IDs: system (0x2000000), contig (0x10), secure (0x400), secure flags (0x80080000)
07-25 03:33:21.408 1832 1832 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:3087: fastrpc_apps_user_init done with default domain:3 and &fastrpc_trace:0x7c834410bc
07-25 03:33:21.410 1832 1832 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2039: remote_session_control DSP info request for domain 3, thread priority -1, stack size 131072
07-25 03:33:21.410 1832 1832 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2636: Successfully opened /vendor/dsp/cdsp/fastrpc_shell_unsigned_33
07-25 03:33:21.410 1832 1832 I launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_config.c:200: Reading configuration file: launcher_android.debugconfig
07-25 03:33:21.411 1832 1832 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2839: Error 0x72: apps_dev_init: untrusted app trying to offload to signed remote process (errno 111, Connection refused). Try offloading to unsignedPD using remote_session_control
07-25 03:33:21.413 1832 1832 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2870: Error 0x72: apps_dev_init failed for domain 3, errno Success
07-25 03:33:21.413 1832 1832 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2968: Error 0x72: open_dev (-1) failed for domain 3 (errno Success)
07-25 03:33:21.414 1832 1832 E launcher_android: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1398: Error 0x72: remote_handle64_open failed for file:///liblauncher_rpc_skel.so?launcher_rpc_skel_handle_invoke&_modver=1.0&_dom=cdsp (errno Success)
Could you give some assistance? Thanks.
Maybe the settings here are not effective, please check and remember to set ADSP_LIBRARY_PATH
Thanks for your reply.
I have already set the ADSP_LIBRARY_PATH in which path contain the following files:
libc.so libc++.so libgcc.so
libc++.so.1 liblauncher_rpc_skel.so
libc++abi.so libqcc.so
libc++abi.so.1 libstdc++.so
It seems to be a signature issue. If your device can be rooted, there should be no such issue. I tested that it can be used on non-rooted phones. Try another device?
Appreciate your help.
This is a SA8155P device not a smartphone, and I can run adb root
.
adb disable-verity
adb reboot
adb root
adb remount
adb shell setenforce 0
// launch the application
I ran these commands , It stareted working… If it still doesnt work, try adding runtime permissions for Read and write Storage