Hi,
I am using the dragonboard 410, and running hexagon sdk 3.4.3 calculator example on dsp, but it fails to execute on dsp, linaro debian 20.02 release.
Posting the details here:
Link-documentation used:
Release: Linaro 20.02, prebuilt images (with fastrpc) Linaro Releases
Sysfs:
linaro@linaro-developer:~/dsp/UbuntuARM_Debug_aarch64/ship$ cat /sys/devices/platform/soc/4080000.remoteproc/remoteproc/remoteproc0/state
running
linaro@linaro-developer:~/dsp/UbuntuARM_Debug_aarch64/ship$ cat /sys/devices/platform/soc/4080000.remoteproc/remoteproc/remoteproc0/firmware
qcom/msm8916/mba.mbn
dmesg kernel log:
[ 5.181848] remoteproc remoteproc0: 4080000.remoteproc is available
[ 5.247314] remoteproc remoteproc0: powering up 4080000.remoteproc
[ 5.255968] remoteproc remoteproc0: Booting fw image qcom/msm8916/mba.mbn, size 230272
[ 5.303826] msm 1a00000.mdss: 1a00000.mdss supply vdd not found, using dummy regulator
[ 5.319341] qcom-q6v5-mss 4080000.remoteproc: MBA booted, loading mpss
[ 5.480057] remoteproc remoteproc1: a204000.wcnss is available
[ 5.509067] remoteproc remoteproc1: powering up a204000.wcnss
[ 5.523370] remoteproc remoteproc1: Booting fw image qcom/msm8916/wcnss.mdt, size 7260
[ 6.156328] qcom_wcnss_ctrl remoteproc1:smd-edge.WCNSS_CTRL.-1.-1: WCNSS Version 1.5 1.2
Strace logs:
write(1, “src/rpcmem_android.c:134:stat Fa”…, 49src/rpcmem_android.c:134:stat Failed on /dev/ion ) = 49
write(1, “\n- starting calculator test”, 27
- starting calculator test) = 27
write(1, “\n”, 1
) = 1
newfstatat(AT_FDCWD, “/dev/ion”, 0xfffffd6612e0, 0) = -1 ENOENT (No such file or directory)
write(1, “src/rpcmem_android.c:134:stat Fa”…, 49src/rpcmem_android.c:134:stat Failed on /dev/ion ) = 49
write(1, “- allocate 56 bytes from ION hea”…, 34- allocate 56 bytes from ION heap
) = 34
write(1, “- creating sequence of numbers f”…, 44- creating sequence of numbers from 0 to 13
) = 44
write(1, “- compute sum on the DSP”, 24- compute sum on the DSP) = 24
write(1, “\n”, 1
) = 1
openat(AT_FDCWD, “/dev/fastrpc-adsp”, O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, “/etc/localtime”, O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=127, …}) = 0
fstat(3, {st_mode=S_IFREG|0644, st_size=127, …}) = 0
read(3, “TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0”…, 4096) = 127
lseek(3, -71, SEEK_CUR) = 56
read(3, “TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\1\0\0\0\1\0\0\0\0”…, 4096) = 71
close(3) = 0
socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
sendto(3, "<11>Feb 21 06:07:20 calculator: "…, 76, MSG_NOSIGNAL, NULL, 0) = 76
openat(AT_FDCWD, “/dev/fastrpc-adsp”, O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
sendto(3, "<11>Feb 21 06:07:20 calculator: "…, 76, MSG_NOSIGNAL, NULL, 0) = 76
futex(0xffffb977b688, FUTEX_WAKE_PRIVATE, 2147483647) = 0
sendto(3, "<11>Feb 21 06:07:20 calculator: "…, 129, MSG_NOSIGNAL, NULL, 0) = 129
sendto(3, "<11>Feb 21 06:07:20 calculator: "…, 77, MSG_NOSIGNAL, NULL, 0) = 77
sendto(3, "<11>Feb 21 06:07:20 calculator: "…, 149, MSG_NOSIGNAL, NULL, 0) = 149
sendto(3, "<11>Feb 21 06:07:20 calculator: "…, 129, MSG_NOSIGNAL, NULL, 0) = 129
sendto(3, "<11>Feb 21 06:07:20 calculator: "…, 77, MSG_NOSIGNAL, NULL, 0) = 77
write(1, “Error: compute on DSP failed”, 28Error: compute on DSP failed) = 28
write(1, “\n”, 1
) = 1
write(1, “\nusage: ./calculator <1/0 run lo”…, 54
usage: ./calculator <1/0 run locally>
) = 54
sendto(3, "<11>Feb 21 06:07:20 calculator: "…, 61, MSG_NOSIGNAL, NULL, 0) = 61
exit_group(1) = ?
+++ exited with 1 +++
Please guide.
-Amit