Hello,
I'd like to compile and run IPC example for am57xx processor.
I have an am57xx evm devkit.
I downloaded & installed both ti-processor-sdk-rtos-am57xx-evm-02.00.01.07-Linux-x86-Install.bin & ti-processor-sdk-linux-am57xx-evm-02.00.01.07-Linux-x86-Install.bin.
Also downloaded & installed Code Composer Studio.
Then I successfully built IPC libraries within ipc_3_41_00_08 using instruction from http://processors.wiki.ti.com/index.php/IPC_Install_Guide_Linux.
Then I copy IPC libraries to the sd card using make install prefix=<path to card>/usr/local.
Now I want to build example ipc_3_41_00_08/examples/DRA7XX_linux_elf/ex02_messageq and run it on the board.
I edit example's makefile to set proclist to: dsp1 & host:
ALL = dsp1 dsp2 host
PROCLIST = dsp1 host
Then I build example & copy it to the board.
On the board side I:
- run linux with rproc_mem=32M@0x90000000
- set symlink within /lib/firmware to example's dsp1 executable (release version)
- unbind & bind dsp1 processor
- and run linux example, but got an error:
# /root/ipc/ex/app_host -l
--> main:
Processor List
Error: main_host.c, line 197: Ipc_start failed
<-- main:
As I see in dmesg firmware is successfully loaded:
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# echo 40800000.dsp > unbind
[ 2840.742781] omap_hwmod: mmu1_dsp1: _wait_target_disable failed
[ 2840.755798] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 2840.761745] remoteproc2: stopped remote processor 40800000.dsp
[ 2840.767901] remoteproc2: releasing 40800000.dsp
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# echo 40800000.dsp > bind
[ 2844.242717] omap-rproc 40800000.dsp: assigned reserved memory node dsp1_cma@99000000
[ 2844.250583] remoteproc2: 40800000.dsp is available
[ 2844.255481] remoteproc2: Note: remoteproc is still under development and considered experimental.
[ 2844.264502] remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 2844.282831] remoteproc2: powering up 40800000.dsp
[ 2844.287685] remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 4558976
[ 2844.301850] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 2844.307784] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 2844.313700] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[ 2844.328682] remoteproc2: remote processor 40800000.dsp is now up
[ 2844.335192] virtio_rpmsg_bus virtio1: rpmsg host is online
[ 2844.340768] remoteproc2: registered virtio1 (type 7)
[ 2844.346445] virtio_rpmsg_bus virtio1: creating channel rpmsg-proto addr 0x3d
# cat /debug/remoteproc/remoteproc2/trace0
[ 0.000] Watchdog disabled: TimerBase = 0x48086000 ClkCtrl = 0x4a009728
[ 0.000] 17 Resource entries at 0x95000000
[ 0.000] [t=0x0001f476] xdc.runtime.Main: --> main:
[ 0.000] registering rpmsg-proto:rpmsg-proto service on 61 with HOST
[ 0.000] [t=0x0033f40c] xdc.runtime.Main: NameMap_sendMessage: HOST 53, port=61
[ 0.000] Watchdog disabled: TimerBase = 0x48086000 ClkCtrl = 0x4a009728
[ 0.000] [t=0x0035346b] xdc.runtime.Main: --> smain:
[ 0.000] [t=0x003648b8] Server: Server_create: server is ready
[ 0.000] [t=0x00369e06] Server: <-- Server_create: 0
[ 0.000] [t=0x0036dbe3] Server: --> Server_exec:
Can anybody promt me what did wrong?
Thank you.