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: Big Data IPC Example on DSP2

Part Number: AM5728

Tool/software: Linux

hi 

We are running the big_data_ipc_example on a custom board of AM5728. 

We are following the below link to get start :

Everything goes well.

What I want to know is:

If I want to test this example on DSP2,What should I do?

I tried to modify the resource table  rsc_table_dsp.h 

I changed the marco from VAYU_DSP_1 to VAYU_DSP_2

But it's seems that this can't work.

Best Regrads

Ricardo Jie

  • Hello Ricardo,

    That is the only modification you need to make to run the example on DSP2. Please make sure you have followed all of the steps in the guide below, including disabling the OpenCL application and updating the FW symbolic link.

    software-dl.ti.com/.../Examples_and_Demonstrations.html

    Which version of Processor SDK are you using?
  • Hi

    Thanks for your reply!

    Our SDK version is 4.0.And blow is our log:

    root@embest-am57xx:~# systemctl stop ti-mct-sameon.service
    Failed to stop ti-mct-sameon.service: Unit ti-mct-sameon.service not loaded.
    root@embest-am57xx:~# 
    root@embest-am57xx:~# echo 41000000.dsp > /sys/bus/platform/drivers/omap-rproc/unbind 
    [67446.241981] omap_hwmod: mmu1_dsp2: _wait_target_disable failed
    [67446.255193] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
    [67446.261683] remoteproc remoteproc3: stopped remote processor 41000000.dsp
    [67446.269009] remoteproc remoteproc3: releasing 41000000.dsp
    root@embest-am57xx:~# 
    root@embest-am57xx:~# rm /lib/firmware/dra7-dsp2-fw.xe66
    root@embest-am57xx:~# 
    root@embest-am57xx:~# ln -sf /home/root/dsp/cus/server_dsp.xe66 /lib/firmware/dra7-dsp2-fw.xe66                
    root@embest-am57xx:~# 
    root@embest-am57xx:~# echo 41000000.dsp > /sys/bus/platform/drivers/omap-rproc/bind 
    [67577.778611] omap-rproc 41000000.dsp: assigned reserved memory node dsp2_cma@9f000000
    [67577.786856] remoteproc remoteproc3: 41000000.dsp is available
    [67577.803856] remoteproc remoteproc3: powering up 41000000.dsp
    root@embest-am57xx:~# [67577.811412] remoteproc remoteproc3: Booting fw image dra7-dsp2-fw.xe66, size 4685908
    [67577.830612] omap_hwmod: mmu0_dsp2: _wait_target_disable failed
    [67577.836766] omap-iommu 41501000.mmu: 41501000.mmu: version 3.0
    [67577.842990] omap-iommu 41502000.mmu: 41502000.mmu: version 3.0
    [67577.862756] virtio_rpmsg_bus virtio3: rpmsg host is online
    [67577.871855] remoteproc remoteproc3: registered virtio3 (type 7)
    [67577.883225] remoteproc remoteproc3: remote processor 41000000.dsp is now up
    [67577.893627] virtio_rpmsg_bus virtio3: creating channel rpmsg-proto addr 0x3d
    root@embest-am57xx:~# 
    root@embest-am57xx:~# /usr/bin/simple_buffer_example/release/app_host DSP2
    --> main:
    --> Main_main:
    --> App_create:
    App_create: Host is ready
    <-- App_create:[67666.965841] CMEMK Error: Failed to find a pool which fits 0x1000000
    
    --> App_exec:
    CMEM_init success
    CMEM Error: getPool: Failed to get a pool fitting a size 0x1000000
    CMEM_getPool failed
    Segmentation fault (core dumped)

    Best Regards
    Ricaro Jie

  • Hi Ricardo,

    A similar issue was resolved in the following thread. Please see if it helps resolve yours:

    Regards,
    Sahin

  • Hi Sahin

    Thanks for your reply!

    We suspend this project for several days because of the Spring Festival.

    I have checked the thread and we tried to stop the ti-mct-daemon.service But we still can't run the demo on DSP2.

    I add some printf in the App_create () [ host_linux/simple_buffer_example/host/App.c ]

    After run ./app_host DSP2, I got the following messages:

    root@embest-am57xx:~/dsp# ./app_host DSP2 
    --> main:
    --> Main_main:
    --> App_create:
    
    MesageQ_Params_init Success!!
    
    MesageQ_create Success!!

    It seems that it crashed in the MessageQ_Open.

    Best Regards

    Ricardo

  • Hi Ricardo,

    Can you confirm you are modifying the resource table in ~/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/shared/DRA7XX?

    Looking at the resource table further, you may need to change DSP_MEM_IPC_VRING to 0x99000000. Can you please try that?

    Regards,
    Sahin