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.

fail to compile in glsdk 7.00.00.04

Other Parts Discussed in Thread: SYSBIOS

hi experts,

I download  7.00.00.04 from http://processors.wiki.ti.com/index.php/Category:GLSDK  and follow steps from http://processors.wiki.ti.com/index.php/DRA7xx_GLSDK_Software_Developers_Guide#Running_DSP_sample_applications 

And I can put binaries to EVM boards to execute.

Now I want to compile firmware in M4/DSP side, so I follow steps from http://processors.wiki.ti.com/index.php/Processor_Training:_Multimedia#IPUMM_Build_Tools 

But I got failure as compiling. The error messages were shown as below

archiving package/lib/lib/ipu/release/ti.framework.dce/package/package_ti.framework.dce.oem4 package/lib/lib/ipu/release/ti.framework.dce/dce.oem4 package/lib/lib/ipu/release/ti.framework.dce/ivahd.oem4 into lib/ipu/release/ti.framework.dce.aem4 ...
======== .libraries [/home/ver/ti-glsdk_dra7xx-evm_7_00_00_04/component-sources/ipumm_3_00_07_02/src/ti/utils] ========
clem4 package/package_src.ti.utils.c ...
clem4 profile.c ...
"profile.c", line 42: fatal error #1965: cannot open source file "ti/ipc/remoteproc/Resource.h"
1 catastrophic error detected in the compilation of "profile.c".
Compilation terminated.

>> Compilation failure
gmake[1]: *** [package/lib/lib/ipu/release/src.ti.utils/profile.oem4] Error 1
gmake: *** [/home/ver/ti-glsdk_dra7xx-evm_7_00_00_04/component-sources/ipumm_3_00_07_02/src/ti/utils,.libraries] Error 2
make: *** [build] Error 2
[ver@ ipumm_3_00_07_02] (glsdk_dev)$

I try to find the "ti/ipc/remoteproc/Resource.h" but it doesn't exist !!!!

[ver@ ipumm_3_00_07_02] (glsdk_dev)$ find /opt/ti/ipc_3_30_03_14/packages/ -name "Resource.h"
[ver@ ipumm_3_00_07_02] (glsdk_dev)$ 

All the versions of software are totally the same as mentioned in the Makfile inside.

the only difference is that I replace "make dspbin" with "make ducatibin" because I just find ducatibin instead of dspbin inside Makefile...

Thanks

  • Before building IPUMM, I need to build IPC first. And the steps is as below listed

    === Build IPC ===
    Download IPC from:

    * downloads.ti.com/.../

    Install to ''$HOME/ipc_<version>''

    cd $HOME/ipc_version

    Setup environment variables:
    export IPC_INSTALL_DIR=<path where IPC is installed>
    export DEPOT=<path where BIOS and XDC are installed>
    export XDC_INSTALL_DIR=$DEPOT/xdctools_<version>
    export BIOS_INSTALL_DIR=$DEPOT/bios_<version>
    export CGTOOLS_ARM=<path to CGTOOL ARM Compiler is installed>

    Build ipc:
    make -f ipc-bios.mak clean
    make -f ipc-bios.mak ti.targets.arm.elf.M4=$CGTOOLS_ARM

    NOTE: If ''ipc'' is modified, then ''DCE'' needs to be rebuilt.

    After the above steps, I can get dra7xx-m4-ipu2.xem4 under working directory.


    Thanks
  • hi experts,

    I got following messages as compiling DSP FW.

    making package/cfg/out/dsp/release/dsp_pe66.src/utils.ae66 ...
    making package/cfg/out/dsp/release/dsp_pe66.src/sysbios/sysbios.ae66 ...
    lnke66 out/dsp/release/dsp.xe66 ...

    undefined first referenced
    symbol in file
    --------- ----------------
    IpcMgr_rpmsgStartup package/cfg/out/dsp/release/dsp_pe66.oe66
    MmServiceMgr_exit /home/aver/ti-glsdk_dra7xx-evm_7_00_00_04/component-sources/dspdce_1_00_00_05/src/ti/framework/dce/lib/dsp/release/ti.framework.dce.ae66<dce.oe66>
    MmServiceMgr_init /home/aver/ti-glsdk_dra7xx-evm_7_00_00_04/component-sources/dspdce_1_00_00_05/src/ti/framework/dce/lib/dsp/release/ti.framework.dce.ae66<dce.oe66>
    MmServiceMgr_register /home/aver/ti-glsdk_dra7xx-evm_7_00_00_04/component-sources/dspdce_1_00_00_05/src/ti/framework/dce/lib/dsp/release/ti.framework.dce.ae66<dce.oe66>
    NameMap_register package/cfg/out/dsp/release/dsp/ping_tasks.oe66
    RPMessage_create package/cfg/out/dsp/release/dsp/ping_tasks.oe66
    RPMessage_delete package/cfg/out/dsp/release/dsp/ping_tasks.oe66
    RPMessage_finalize package/cfg/out/dsp/release/dsp/ping_tasks.oe66
    RPMessage_init package/cfg/out/dsp/release/dsp/main.oe66
    RPMessage_recv package/cfg/out/dsp/release/dsp/ping_tasks.oe66
    RPMessage_send package/cfg/out/dsp/release/dsp/ping_tasks.oe66
    RcmServer_Params_init /home/aver/ti-glsdk_dra7xx-evm_7_00_00_04/component-sources/dspdce_1_00_00_05/src/ti/framework/dce/lib/dsp/release/ti.framework.dce.ae66<dce.oe66>
    VirtQueue_cacheWb package/cfg/out/dsp/release/dsp_pe66.oe66
    ti_ipc_remoteproc_Resource_Module_startup__E package/cfg/out/dsp/release/dsp_pe66.oe66
    ti_ipc_remoteproc_Resource_virtToPhys__E package/cfg/out/dsp/release/dsp/main.oe66
    ti_trace_SysMin_Module_startup__E package/cfg/out/dsp/release/dsp_pe66.oe66
    ti_trace_SysMin_abort__E package/cfg/out/dsp/release/dsp_pe66.oe66
    ti_trace_SysMin_exit__E package/cfg/out/dsp/release/dsp_pe66.oe66
    ti_trace_SysMin_putch__E package/cfg/out/dsp/release/dsp_pe66.oe66
    ti_trace_SysMin_ready__E package/cfg/out/dsp/release/dsp_pe66.oe66

    error: unresolved symbols remain
    error: errors encountered during linking; "out/dsp/release/dsp.xe66" not built
    gmake[1]: *** [out/dsp/release/dsp.xe66] Error 1
    gmake: *** [/home/aver/ti-glsdk_dra7xx-evm_7_00_00_04/component-sources/dspdce_1_00_00_05/platform/ti/dce/baseimage,.executables] Error 2
    make: *** [build] Error 2

    Did you have any idea for the above ??

    I have referred to https://e2e.ti.com/support/arm/sitara_arm/f/791/p/473672/1702380 but got unclear result

    Thanks...

  • Before building dspdce, I need to build IPC first. And the steps is as below listed

    === Build IPC ===
    Download IPC from:

    * downloads.ti.com/.../

    Install to ''$HOME/ipc_<version>''

    cd $HOME/ipc_version

    Setup environment variables:
    export IPC_INSTALL_DIR=<path where IPC is installed>
    export DEPOT=<path where BIOS and XDC are installed>
    export XDC_INSTALL_DIR=$DEPOT/xdctools_<version>
    export BIOS_INSTALL_DIR=$DEPOT/bios_<version>
    export CGTOOLS_ARM=<path to CGTOOL ARM Compiler is installed>

    Build ipc:
    make -f ipc-bios.mak clean
    make -f ipc-bios.mak ti.targets.arm.elf.C66=$CGTOOLS_ARM

    NOTE: If ''ipc'' is modified, then ''DCE'' needs to be rebuilt.

    After the above steps, I can get dra7xx-c66x-dsp.xe66 under working directory.

    Thanks
  • Hi,

    Have a look at the Makefile & Rules.make files in ti-glsdk_dra7xx-evm_7_00_00_04 directory. You will get the idea of how to build the separate components of the SDK.

    The easiest way to rebuild a component is:
    1. set up your environment as needed:
    export ARCH=arm
    export PATH=$PATH:/path/to/linaro/toolchain
    export CROSS_COMPILE=arm-linux-gnueabihf-

    2. then as described in Makefile execute
    make all

    this should build everything rebuildable: IPC, DSPDCE, IPUMM, kernel & u-boot

    Hope this helps.

    Best Regards,
    Yordan