Skip to content

Commit 0360c24

Browse files
committed
ADD: section for troubleshooting in readme.md
1 parent c2fc604 commit 0360c24

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tensorflow/contrib/hvx/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,29 @@ Finally, you can run the inference tests on your device.
108108
adb shell 'LD_LIBRARY_PATH=/data/local/tmp:$LD_LIBRARY_PATH' \
109109
"/data/local/tmp/hexagon_graph_execution"
110110
```
111+
112+
#### Troubleshooting
113+
If you're using the Open-Q 820 Snapdragon development kit, you may run into an issue with running the executable due to a missing testsig library. From the Hexagon SDK documentation: *Dynamic shared objects are required to be digitally signed and then authenticated at runtime before they are allowed to be loaded and executed.* Generating a testsig library is necessary to run the unsigned sample library built from this project.
114+
115+
If the lack of a testsig library is your problem, you will see errors of the type:
116+
`vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:169::error: -1: 0 == (nErr = remotectl_open(name, (int*)ph, dlerrstr, sizeof(dlerrstr), &dlerr))`
117+
appearing in adb logcat.
118+
119+
There are several ways to create the testsig library, the only prerequisite is Python and the correct version of the Hexagon-SDK. The following steps is one way to create this library:
120+
1. Run adb as root: `adb root`
121+
2. Run the command `adb shell /sys/devices/soc0/serial_number`
122+
3. Convert the decimal number you get as output to hex
123+
4. Run the python script: `python ${QUALCOMM_SDK}/tools/elfsigner/elfsigner.py -t $(SERIAL_NUMBER_HEX_VALUE)`
124+
5. The output of the python script is a shared library stored in ${QUALCOMM_SDK}/tools/elfsigner/output/testsig-$(SERIAL_NUMBER_HEX_VALUE).so
125+
6. Push the shared library to your device:
126+
```
127+
adb root
128+
adb wait-for-device
129+
adb remount
130+
adb wait-for-device
131+
adb shell mkdir /system/lib/rfsa
132+
adb shell mkdir /system/lib/rfsa/adsp
133+
adb push ${QUALCOMM_SDK}/tools/elfsigner/output/testsig-$(SERIAL_NUMBER_HEX_VALUE).so /system/lib/rfsa/adsp/
134+
```
135+
136+
After rebooting your device, you should be able to run the sample application.

0 commit comments

Comments
 (0)