Part Number:AM5718
Tool/software: Linux
I'm trying to run IPC, DRA7XX_linux_elf/ex02_messageq example
but MessageQ_open() is failing. MessageQ_open() return MessageQ_E_NOTFOUND.
I'm using following SDK and IPC .
ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10
ipc_3_50_03_04
Logs are as folows:
root@am57xx-evm:/apps#
root@am57xx-evm:/apps# dmesg | grep memory
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000095800000, size 32 MiB
[ 0.000000] OF: reserved mem: initialized node ipu2-memory@95800000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000099000000, size 32 MiB
[ 0.000000] OF: reserved mem: initialized node dsp1-memory@99000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created CMA memory pool at 0x000000009b000000, size 32 MiB
[ 0.000000] OF: reserved mem: initialized node ipu1-memory@9b000000, compatible id shared-dma-pool
[ 0.000000] Virtual kernel memory layout:
[ 2.111679] omap-rproc 58820000.ipu: assigned reserved memory node ipu1-memory@9b000000
[ 2.533312] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
[ 2.533634] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
[ 3.149729] Freeing unused kernel memory: 2048K
[ 32.783620] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
[ 2580.863625] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# echo 40800000.dsp > unbind
remoteproc remoteproc2: failed to unmap 94371840/100663296
remoteproc remoteproc2: failed to unmap 73400320/0
omap_hwmod: mmu0_dsp1: _wait_target_disable failed
remoteproc remoteproc2: stopped remote processor 40800000.dsp
remoteproc remoteproc2: releasing 40800000.dsp
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# echo 40800000.dsp > bind
omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
remoteproc remoteproc2: 40800000.dsp is available
prueth pruss1_eth: port 1: using random MAC addr: be:29:3a:39:25:71
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# remoteproc remoteproc2: powering up 40800000.dsp
remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 5263108
omap_hwmod: mmu0_dsp1: _wait_target_disable failed
omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
virtio_rpmsg_bus virtio0: rpmsg host is online
remoteproc remoteproc2: registered virtio0 (type 7)
remoteproc remoteproc2: remote processor 40800000.dsp is now up
prueth pruss1_eth: port 1: using random MAC addr: 16:11:8a:c5:7e:79
virtio_rpmsg_bus virtio0: creating channel rpmsg-proto addr 0x3d
omap-rproc 40800000.dsp: received echo reply from 40800000.dsp
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc#
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# cat /sys/kernel/debug/remoteproc/remoteproc2/trace0
[ 0.000] 29 Resource entries at 0x99000000
[ 0.000] [t=0x0043ee05] xdc.runtime.Main: --> main:
[ 0.000] [t=0x00476e59] ti.sysbios.family.c64p.Hwi: ERROR: line 192: E_alreadyDefined: Hwi already defined: intr# 5
[ 0.000] ti.sysbios.family.c64p.Hwi: line 192: E_alreadyDefined: Hwi already defined: intr# 5
[ 0.000] registering rpmsg-proto:rpmsg-proto service on 61 with HOST
[ 0.000] [t=0x004bf9c1] xdc.runtime.Main: NameMap_sendMessage: HOST 53, port=61
[ 0.000] [t=0x0057ab8b] xdc.runtime.Main: --> smain:
[ 0.001] [t=0x0059d770] Server: Server_create: server is ready
[ 0.001] [t=0x005af53c] Server: <-- Server_create: 0
[ 0.001] [t=0x005bbd38] Server: --> Server_exec:
[ 0.001] [t=0x005c6fc0] Server: waiting inbound
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc#
root@am57xx-evm:/apps# cat /sys/kernel/debug/remoteproc/remoteproc2/resource_table
Entry 0 is of type vdev
ID 7
Notify ID 0
Device features 0x1
Guest features 0x1
Config length 0x0
Status 0x7
Number of vrings 2
Reserved (should be zero) [0][0]
Vring 0
Device Address 0x99000000
Alignment 4096
Number of buffers 256
Notify ID 0
Physical Address 0x0
Vring 1
Device Address 0x99004000
Alignment 4096
Number of buffers 256
Notify ID 1
Physical Address 0x0
Entry 1 is of type carveout
Device Address 0x99000000
Physical Address 0x99100000
Length 0x100000 Bytes
Flags 0x0
Reserved (should be zero) [0]
Name DSP_MEM_TEXT
Entry 2 is of type carveout
Device Address 0x99900000
Physical Address 0x99200000
Length 0x1000000 Bytes
Flags 0x0
Reserved (should be zero) [0]
Name DSP_MEM_DATA
Entry 3 is of type carveout
Device Address 0x99400000
Physical Address 0x9a200000
Length 0x400000 Bytes
Flags 0x0
Reserved (should be zero) [0]
Name DSP_MEM_HEAP
Entry 4 is of type carveout
Device Address 0x99800000
Physical Address 0x9a600000
Length 0x100000 Bytes
Flags 0x0
Reserved (should be zero) [0]
Name DSP_MEM_IPC_DATA
Entry 5 is of type carveout
Device Address 0x40300000
Physical Address 0x9a700000
Length 0x200000 Bytes
Flags 0x0
Reserved (should be zero) [0]
Name DSP_OCMC_RAM
....
....
root@am57xx-evm:/apps# ./app_host DSP1
--> main:
--> Main_main:
--> App_create:
please help me ?
Regards,
John