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.

Linux/AM5728: ipc example fall

Part Number: AM5728


Tool/software: Linux

Hi

I have followed the same steps as in the video training guide. I am using ti-processor-sdk-linux-am57xx-evm-05.00.00.15 and  RTOS version 05.01.00.11  I observe the issue on my side:

root@am57xx-evm:~/ipc-starter# ls -l
-rwxr-xr-x 1 root root 25212 Nov 2 2018 app_host
-rw-r--r-- 1 root root 4272032 Nov 2 2018 server_dsp1.xe66
-rw-r--r-- 1 root root 4116328 Nov 2 2018 server_dsp2.xe66
-rw-r--r-- 1 root root 4027784 Nov 2 2018 server_ipu1.xem4
-rw-r--r-- 1 root root 4027784 Nov 2 2018 server_ipu2.xem4
root@am57xx-evm:~/ipc-starter# uname -r
4.14.40-g4796173fc5
root@am57xx-evm:~/ipc-starter# cd /lib/firmware/
root@am57xx-evm:/lib/firmware# rm dra7-dsp1-fw.xe66
root@am57xx-evm:/lib/firmware# ln -s /home/root/ipc-starter/server_dsp1.xe66 dra7-dsp1-fw.xe66
root@am57xx-evm:/lib/firmware# cd /sys/bus/platform/drivers/omap-rproc/
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# echo 40800000.dsp > unbind
[ 123.152989] remoteproc remoteproc2: releasing 40800000.dsp
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# echo 40800000.dsp > bind
[ 126.703116] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
[ 126.711249] remoteproc remoteproc2: 40800000.dsp is available
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# [ 126.721781] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: failed to get id gpio
[ 126.922375] remoteproc remoteproc2: powering up 40800000.dsp
[ 126.928130] remoteproc remoteproc2: Booting fw image dra7-dsp1-fw.xe66, size 4272032
[ 126.943349] omap_hwmod: mmu0_dsp1: _wait_target_disable failed
[ 126.949250] omap-iommu 40d01000.mmu: 40d01000.mmu: version 3.0
[ 126.955188] omap-iommu 40d02000.mmu: 40d02000.mmu: version 3.0
[ 126.969245] virtio_rpmsg_bus virtio2: rpmsg host is online
[ 126.971746] virtio_rpmsg_bus virtio2: creating channel rpmsg-proto addr 0x3d
[ 126.973251] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: failed to get id gpio
[ 126.989798] remoteproc remoteproc2: registered virtio2 (type 7)
[ 126.995768] remoteproc remoteproc2: remote processor 40800000.dsp is now up
[ 127.004546] palmas-usb 48070000.i2c:tps659038@58:tps659038_usb: failed to get id gpio

root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# cd /home/root/ipc-starter/ex02_messageq/host/bin/debug
-sh: cd: /home/root/ipc-starter/ex02_messageq/host/bin/debug: No such file or directory
root@am57xx-evm:/sys/bus/platform/drivers/omap-rproc# cd /home/root/ipc-starter/
root@am57xx-evm:~/ipc-starter# ./app_host DSP1
--> main:
--> Main_main:
--> App_create:
App_create: Host is ready
<-- App_create:
--> App_exec:
App_exec: sending message 1
lalala
App_exec: sending message 2
lalala
App_exec: sending message 3
lalala
after i=3
before MessageQ_get

When executed, "sending message 3" gets stuck

The printed information I added myself is as follows:

I found the problem in "MessageQ_get".  I don't know why "MessageQ_get" can't receive messages

  • Hi, Chandler,

    From the description, it seems to me that you are not using the prebuilt images, but built your own. If that's the case, please don't mix match the Linux and RTOS versions. Please try again using both SDK 5.1. When you build the images, do you use high level build? Try follow the steps in IPC Quick Start Guide when building the images.

    You can try with the prebuilt images in /usr/bin/ipc/examples/ex02_messageq in the filesystem of the released package to set the expectation.

    Rex
  • thank u so much