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 examples build

Part Number: AM5728

Tool/software: Linux

Hi:

Software version: TI_SDK 4.3, hardware version: AM5728-ES2.0, custom board, surroundings: Ubuntu16.04

What should I do to compile AM5728_RTOS_4.3/processor_sdk_rtos_am57xx_4_03_00_05/demos/bigdataipc/host_linux/simple_buffer_example?

I modified the contents of the products.mak file as follows:

Can only compile the arm, compile the DSP terminal error, help me

Thanks

  • Hello,

    The Big Data IPC examples can be built using the top level makefile. There's no need to edit the products.mak file. Please see:

    Also, I believe there was a bug in release 4.3 that caused some errors when trying to build. If that's the case you'll need to use this makefile:

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/6180.Makefile

  • Hi

    Thank you very much for your reply, I also read it carefully. I have several problems with this:

    1  I ran the following command in the SDK directory, prompting the following error:

    cd ~/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/

     export TI_RTOS_PATH=$HOME/ti-processor-sdk-linux-am57xx-evm-04.03.00.05
     make big-data-ipc-demo


    The /home/linux/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/dspdirectory files are not compiled,and there is no bin/ directory.

    2 It can be compiled by modifying the products.mak file, but the following error is prompted when compiling the DSP program:

    /home/linux/AM5728_RTOS_4.3/ti-cgt-c6000_8.2.2/bin/cl6x -z -w -q -u _c_int00 -c -m bin/release/obj/server_dsp1.xe66.map -o bin/release/server_dsp1.xe66 bin/release/obj/MainDsp.oe66 bin/release/obj/Server.oe66 bin/release/obj/bigdataxlat.oe66 \
    bin/release/configuro/linker.cmd -l /home/linux/AM5728_RTOS_4.3/ti-cgt-c6000_8.2.2/lib/libc.a
    <Linking>
    error: symbol "ti_ipc_remoteproc_ResourceTable" redefined: first defined in
    "bin/release/obj/MainDsp.oe66"; redefined in
    "/home/linux/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_ex
    ample/dsp/bin/release/configuro/package/cfg/Dsp1_pe66.oe66"
    error: errors encountered during linking; "bin/release/server_dsp1.xe66" not
    built

    >> Compilation failure
    make[1]: *** [bin/release/server_dsp1.xe66] Error 1

    Comment out #include "rsc_table_dsp.h" in the  ~/ti-processor-sdk-linux-am57xx-evm-04.03.00.05/example-applications/big-data-ipc-demo-linux-01.01.00.00/host_linux/simple_buffer_example/dsp/MainDsp.c file
    This line of code can be compiled and passed.

    Run the following command on the ARM side:

     systemctl stop ti-mct-daemon.service    	
    
    echo 40800000.dsp > /sys/bus/platform/drivers/omap-rproc/unbind
    cp server_dsp1.xe66  /lib/firmware/dra7-dsp1-fw.xe66
    echo 40800000.dsp > /sys/bus/platform/drivers/omap-rproc/bind
    ./app_host DSP1


    Found that the DSP-side program Server.c file Resource_physToVirt function always returns the wrong value, what should I do to achieve DSP and ARM big data interaction, help me.

    Best regards

  • Hi, Tianshen,

    It looks to me that you missed one step. There is prerequisites: Also need to have the Processor SDK RTOS release installed to build the DSP side RTOS image. See the instruction in RTOS SDK Getting Started Guide

    Your original post was on RTOS SDK, hence I asked Sahin to help you. I just looked at the document Sahin pointed to. It assume the targeted users know DSP environment well. 

    I suggest you follow the steps in one of the Linux document. It is the IPC Quick Start Guide, software-dl.ti.com/.../Foundational_Components_IPC.html

    Build the linux IPC library, build RTOS IPC, then build the examples. In this document, it explicitly describes what environment variables need to define before building each target. 

    As Sahin mentioned in his post that there was a known issue on high level build. If you hit the issue, try the makefile attached in his post. 

    Let us know if you still have problem.

    Rex