This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Error: loading DSP firmware on AM572X

Other Parts Discussed in Thread: AM5728

Hi Everyone, 

I'm trying to run copycodectest application on AM572x without success, I'm using the SD Card image provided by TI together AM5728.

I followed these steps:

/ # cd /sys/bus/platform/drivers/omap-rproc/
/sys/bus/platform/drivers/omap-rproc # ls
40800000.dsp 55020000.ipu bind uevent
41000000.dsp 58820000.ipu module unbind
/sys/bus/platform/drivers/omap-rproc # echo 40800000.dsp > unbind
[ 92.157644] omap_hwmod: mmu1_dsp1: _wait_target_disable failed
[ 92.170602] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 92.176499] remoteproc2: stopped remote processor 40800000.dsp
[ 92.182660] remoteproc2: releasing 40800000.dsp
/sys/bus/platform/drivers/omap-rproc # rm /lib/firmware/dra7-dsp1-fw.xe66
/sys/bus/platform/drivers/omap-rproc # ln -s /lib/firmware/ti-dsp/dra7-dsp dra7-
dsp1-fw.xe66.dspdce-fw /lib/firmware/dra7-dsp1-fw.xe66
dra7-dsp1-fw.xe66.dspdce-fw dra7-dsp2-fw.xe66.ipc-test-fw
dra7-dsp1-fw.xe66.ipc-test-fw dra7-dsp2-fw.xe66.opencl-monitor
dra7-dsp1-fw.xe66.opencl-monitor
/sys/bus/platform/drivers/omap-rproc # ln -s /lib/firmware/ti-dsp/dra7-dsp dra7-
dsp1-fw.xe66.dspdce-fw /lib/firmware/dra7-dsp1-fw.xe66
dra7-dsp1-fw.xe66.dspdce-fw dra7-dsp2-fw.xe66.ipc-test-fw
dra7-dsp1-fw.xe66.ipc-test-fw dra7-dsp2-fw.xe66.opencl-monitor
dra7-dsp1-fw.xe66.opencl-monitor
/sys/bus/platform/drivers/omap-rproc # ln -s /lib/firmware/ti-dsp/dra7-dsp1-fw.x
e66.dspdce-fw /lib/firmware/dra7-dsp1-fw.xe66
/sys/bus/platform/drivers/omap-rproc # echo 40800000.dsp > bind
[ 168.870380] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
[ 168.878243] remoteproc2: 40800000.dsp is available
[ 168.883143] remoteproc2: Note: remoteproc is still under development and considered experimental.
[ 168.892156] remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
/sys/bus/platform/drivers/omap-rproc # [ 169.092333] remoteproc2: powering up 40800000.dsp
[ 169.097158] remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 863516
[ 169.111137] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 169.117025] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 169.122929] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[ 169.183828] remoteproc2: remote processor 40800000.dsp is now up
[ 169.190556] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 169.191317] virtio_rpmsg_bus virtio0: creating channel rpmsg-client-sample addr 0x36
[ 169.191509] virtio_rpmsg_bus virtio0: creating channel rpmsg-client-sample addr 0x37
[ 169.191650] virtio_rpmsg_bus virtio0: creating channel rpmsg-rpc addr 0x3b
[ 169.191806] rpmsg_rpc rpmsg10: probing service rpmsg-dce-dsp with src 1024 dst 59
[ 169.199320] rpmsg_rpc rpmsg10: published functions = 8
[ 169.231256] remoteproc2: registered virtio0 (type 7)

/sys/bus/platform/drivers/omap-rproc # copycodectest
Usage: copycodectest pattern(0 to 255)
Example: copycodectest 100

/sys/bus/platform/drivers/omap-rproc # copycodectest 100
0x22008: Opening Engine..
Created dsp_universalCopy [ 199.720354] rpmsg_rpc rpmsg-dce-dsp: user pointer in the translated offset location is NULL for translation = 4


Fill input buffer with pattern 100

[ 199.732703] rpmsg_rpc rpmsg-dce-dsp: unwinding UVA to RDA translations! translation = 4
[ 199.742819] rpmsg_rpc rpmsg-dce-dsp: failed to translate all pointers for remote core!
MmRpc_call: Error: write failed
ERROR:decoder_process:204: 0x22008: process returned error: -5
../src/libdce.c:745: process Error: ERROR: Failed eError == DCE_EOK error val -5/sys/bus/platform/drivers/omap-rproc #
/sys/bus/platform/drivers/omap-rproc #

According to the message marked in red above, it seems to be that omap_remoteproc has problems to configure the DSP firmware.

1, Does anyone know why it is going on?

2. Has this problem been fixed in any ti processor sdk version for am572x?

Best Regards

Angel