我正在尝试在 Open-Q 820 开发套件(Snapdragon)上运行来自 Hexagon SDK 的基本计算器示例,但是当尝试运行calculator_walkthrough.py python 脚本来运行示例时,过程失败。
我在 Ubuntu 16.04.2 上运行 Hexagon SDK 3.0。 Android NDK 安装在正确的位置(根据 Hexagon SDK 文档)。
该示例似乎可以正确运行,直到以下几点:
---- root/remount device ----
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
restarting adbd as root
remount succeeded
failed to copy '/home/kaz/Qualcomm/Hexagon_SDK/3.0/tools/elfsigner/getserial' to '/data//getserial': Is a directory
ERROR: testsig:-o is not a valid 32 bit integer
---- root/remount device ----
adbd is already running as root
remount succeeded
---- Push Android components ----
329 KB/s (32104 bytes in 0.095s)
168 KB/s (12940 bytes in 0.075s)
---- Push Hexagon Components ----
256 KB/s (17992 bytes in 0.068s)
---- Run Calculator Example Locally on Android ----
- starting calculator test
adspmsgd not supported
- allocate 4000 bytes from ION heap
- creating sequence of numbers from 0 to 999
- compute sum locally
- sum = 499500
- success
adspmsgd_stop failed
---- Run Calculator Example on aDSP ----
- starting calculator test
adspmsgd not supported
- allocate 4000 bytes from ION heap
- creating sequence of numbers from 0 to 999
- compute sum on the aDSP
Error: compute on aDSP failed
usage: /data/calculator <1/0 run locally> <1/0 logcat> <uint32 size>
adspmsgd_stop failed
Done
设备肯定是连接的,可以使用以下命令查看:
kaz@kaz:~/Qualcomm/Hexagon_SDK/3.0/examples/common/calculator$ adb devices
List of devices attached
252020106151601286 device
我已经卸载并重新安装了 Hexagon SDK,尝试在设备处于安全模式和正常模式时运行脚本,检查所有必需的库是否位于正确的目录中,但找不到问题的解决方案。
谢谢
最佳答案
/data/getserial 已作为目录存在于您的设备上。删除它并重试。
关于ubuntu - 在 Snapdragon 820 (Ubuntu 16.04) 上运行 Hexagon DSP 的 Qualcomm fastRPC 计算器示例时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44564343/