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.

Building remote dsp server and app for SDK 5.00.00.26



Hello Robert,

When we try to change the xdcpaths.mak file as

PROGRAMS := APP_CLIENT DSP_SERVER instead of #PROGRAMS := APP_CLIENT DSP_SERVER APP_LOCAL, the application code is not getting compiled and linking is not happening. It is only executing xdc and xs files. Why is it so?

Please find attached xdcpaths.mak file and build log for your reference.

Another question was, has anybody used remote.cfg from ti.sdo.ce.example.apps.video_copy?

The code in the remote.cfg under Engine configuration doesnt seem to be functional.

Please clarify on this as well.

 

Regards,

Kalyani

 

MakeFile_Log.zip
  • Hi Robert,

    Please see log:

    [root@pcp-adroitlab13 video_copy]# make
    /u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/xdc \
                    XDCBUILDCFG=/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy/../../../../../../_config.bld \
                    XDCPATH="/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy/../../../../../..;/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/packages;/u1/pbe/ti_omx_test/ezsdk/xdais_7_21_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/osal_1_21_00_05/packages;/u1/pbe/ti_omx_test/ezsdk/linuxutils_3_21_00_02/packages;/u1/pbe/ti_omx_test/ezsdk/framework-components_3_21_00_13/packages;/u1/pbe/ti_omx_test/ezsdk/edma3lld_02_11_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/ipc_1_22_03_23/packages;/u1/pbe/ti_omx_test/ezsdk/bios_6_31_03_25/packages;/u1/pbe/ti_omx_test/ezsdk/syslink_02_00_00_67" \
                    XDCOPTIONS=v XDCARGS="DEVICES=\"DM8148\" PROGRAMS=\"APP_CLIENT DSP_SERVER\" GPPOS=\"LINUX_GCC\" CGTOOLS_V5T=/opt/arm-2010q1 CC_V5T=bin/arm-none-linux-gnueabi-gcc CGTOOLS_C64P=/opt/TI/C6000CGT7.2.0B1 CGTOOLS_C64PELF=/opt/TI/C6000CGT7.2.0B1 CGTOOLS_C674=/opt/TI/C6000CGT7.2.0B1 CGTOOLS_C674ELF=/opt/TI/C6000CGT7.2.0B1 CGTOOLS_UCARM9=/db/toolsrc/library/tools/vendors/opensource/buildroot/10122007/build_arm/staging_dir/usr CGTOOLS_LINUX86=_your_Linux86_installation_directory CGTOOLS_M3ELF=/opt/TI/cgt470_4_6_4 C64P_FORMAT=\"COFF ELF\" C674_FORMAT=\"COFF ELF\"" all -PD .
    making all: Fri Jun 24 22:08:54 IST 2011 ...
    ======== .interfaces [/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy] ========
    #
    # making package.mak (because of package.bld) ...
    /u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/xs  -Dxdc.path="/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy/../../../../../..;/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/packages;/u1/pbe/ti_omx_test/ezsdk/xdais_7_21_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/osal_1_21_00_05/packages;/u1/pbe/ti_omx_test/ezsdk/linuxutils_3_21_00_02/packages;/u1/pbe/ti_omx_test/ezsdk/framework-components_3_21_00_13/packages;/u1/pbe/ti_omx_test/ezsdk/edma3lld_02_11_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/ipc_1_22_03_23/packages;/u1/pbe/ti_omx_test/ezsdk/bios_6_31_03_25/packages;/u1/pbe/ti_omx_test/ezsdk/syslink_02_00_00_67;/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/packages;../../../../../.." -Dxdc.root=/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy/../../../../../..;/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/packages;/u1/pbe/ti_omx_test/ezsdk/xdais_7_21_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/osal_1_21_00_05/packages;/u1/pbe/ti_omx_test/ezsdk/linuxutils_3_21_00_02/packages;/u1/pbe/ti_omx_test/ezsdk/framework-components_3_21_00_13/packages;/u1/pbe/ti_omx_test/ezsdk/edma3lld_02_11_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/ipc_1_22_03_23/packages;/u1/pbe/ti_omx_test/ezsdk/bios_6_31_03_25/packages;/u1/pbe/ti_omx_test/ezsdk/syslink_02_00_00_67;/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/packages;../../../../../..;/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86;/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/etc" -Dxdc.bld.targets="" -DTOOLS=   -f /u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/packages/xdc/bld/bld.js /u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/_config.bld package.bld package.mak DEVICES="DM8148" PROGRAMS="APP_CLIENT DSP_SERVER" GPPOS="LINUX_GCC" CGTOOLS_V5T=/opt/arm-2010q1 CC_V5T=bin/arm-none-linux-gnueabi-gcc CGTOOLS_C64P=/opt/TI/C6000CGT7.2.0B1 CGTOOLS_C64PELF=/opt/TI/C6000CGT7.2.0B1 CGTOOLS_C674=/opt/TI/C6000CGT7.2.0B1 CGTOOLS_C674ELF=/opt/TI/C6000CGT7.2.0B1 CGTOOLS_UCARM9=/db/toolsrc/library/tools/vendors/opensource/buildroot/10122007/build_arm/staging_dir/usr CGTOOLS_LINUX86=_your_Linux86_installation_directory CGTOOLS_M3ELF=/opt/TI/cgt470_4_6_4 C64P_FORMAT="COFF ELF" C674_FORMAT="COFF ELF"
    _config.bld: Running the version from Codec Engine Examples.
    Platform.xs: dspTarg = C674elf
    Adding C674elf platform...
    building for target (xdc.bld.ITarget.Module)ti.targets.elf.C674 ...
      platform:  ti.platforms.evmDM8148
    building for target (xdc.bld.ITarget.Module)gnu.targets.arm.GCArmv5T ...
      platform:  ti.platforms.evmDM8148
    #
    # generating interfaces for package ti.sdo.ce.examples.apps.video_copy (because package/package.xdc.inc is older than package.xdc) ...
    /u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/xs -Dxdc.path="/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy/../../../../../..;/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/packages;/u1/pbe/ti_omx_test/ezsdk/xdais_7_21_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/osal_1_21_00_05/packages;/u1/pbe/ti_omx_test/ezsdk/linuxutils_3_21_00_02/packages;/u1/pbe/ti_omx_test/ezsdk/framework-components_3_21_00_13/packages;/u1/pbe/ti_omx_test/ezsdk/edma3lld_02_11_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/ipc_1_22_03_23/packages;/u1/pbe/ti_omx_test/ezsdk/bios_6_31_03_25/packages;/u1/pbe/ti_omx_test/ezsdk/syslink_02_00_00_67;/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/packages;../../../../../.." -Dxdc.root=/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86 -Dxdc.hostOS=Linux -Dconfig.importPath=".;/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy/../../../../../..;/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/packages;/u1/pbe/ti_omx_test/ezsdk/xdais_7_21_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/osal_1_21_00_05/packages;/u1/pbe/ti_omx_test/ezsdk/linuxutils_3_21_00_02/packages;/u1/pbe/ti_omx_test/ezsdk/framework-components_3_21_00_13/packages;/u1/pbe/ti_omx_test/ezsdk/edma3lld_02_11_00_01/packages;/u1/pbe/ti_omx_test/ezsdk/ipc_1_22_03_23/packages;/u1/pbe/ti_omx_test/ezsdk/bios_6_31_03_25/packages;/u1/pbe/ti_omx_test/ezsdk/syslink_02_00_00_67;/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/packages;../../../../../..;/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86;/u1/pbe/ti_omx_test/ezsdk/xdctools_3_20_07_86/etc" -Dxdc.bld.targets="" -DTOOLS=  -f xdc/services/intern/cmd/build.xs  -m package/package.xdc.dep -i package/package.xdc.inc package.xdc
    .interfaces files complete: Fri Jun 24 22:08:58 IST 2011.
    ======== .libraries [/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy] ========
    .libraries files complete: Fri Jun 24 22:08:58 IST 2011.
    ======== .dlls [/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy] ========
    .dlls files complete: Fri Jun 24 22:08:58 IST 2011.
    ======== .executables [/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy] ========
    .executables files complete: Fri Jun 24 22:08:58 IST 2011.
    ======== all [/u1/pbe/ti_omx_test/ezsdk/codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy] ========
    #
    # all files complete.
    all files complete: Fri Jun 24 22:08:58 IST 2011.
    [root@pcp-adroitlab13 video_copy]#

    Also attached is remote.cfg.

    Regards,

    Purushottam

     

    remote.cfg
  • Hello Robert,

    Can you please comment on the query above?  In a different thread (http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/116392/422043.aspx#422043) you had suggested to rebuild syslink/ipc package.  We tried this further and investigated that default CE example make was using 'debug' ipc libraries whereas default syslink package released from TI was using 'whole_program_debug" libraries.  After building syslink rtos side using debug option, the problem of 'dsp server not created' is resolved. But now while building app, we see that app (xv5T for remote) is not getting generated.  We tried different options in xdcpaths.mk for this.  Also attached is remote.cfg for your reference.  

    One observation is that when doing make in apps/video_copy folder, xdc.bld.targets seems to be NULL string.  Also do you suspect anything missing in following file?

    codec-engine_3_21_00_10/examples/ti/sdo/ce/examples/apps/video_copy/package.bld

    Awaiting your reply,  Your help on getting CE example on Centaurus is very important for our release.

    Thanks,

    Regards,

    Purushottam

     

     

  • Purushottam,

    The video_copy remote example does not build in the version of Codec Engine (3.21.00.10) that you have.  Could you please try building the universal_copy remote example instead?  That example should build.

    Best regards,

        Janet

  • Hi Janet,

    Thanks for reply.

    With universal_copy app, we can see that app_remote.xv5T getting created.  But for that we had to keep only 'APP_CLIENT' in PROGRAMS variable.   

    After trying build of universal_copy app it is giving link errors  Error: Library not found: ti.syslink.ipc.rtos.anull
    while building DSP server.  Earlier (while trying video_copy example) we were able to build the same successfully.  We are wondering if there is any known problem with 'make clean' in CE examples.  Please let us know if there is any info on this.  Do we need to rebuild Syslink IPC again? 

    Regards,

    Purushottam

     

  • Hello Janet,

    Also there is another query:

    In codecs/viddec_copy folder, there is C source for viddec_copy.  But that's not the same case for universal_copy (or any other e.g. vidddec3_copy also).  Can you let us know where and how universal_copy, viddec3_copy codec binaries can be generated?

    Here are the directory contents:

    [root@pcp codecs]# ls universal_copy/
    makefile  package.bld  package.xdc  UNIVERSAL_COPY.xdc
    package   package.mak  package.xs   UNIVERSAL_COPY.xs


    [root@pcp codecs]# ls viddec_copy/
    lib       package.bld  package.xs        viddec_copy_ti_priv.h
    makefile  package.mak  viddec_copy.c     VIDDEC_COPY.xdc
    package   package.xdc  viddec_copy_ti.h  VIDDEC_COPY.xs

    Thanks,

    Regards,

    Purushottam

     

  • Purushottam,

    I'm not sure why you're getting the "ti.syslink.ipc.rtos.anull" library error.  The same server, all_codecs, that is used for video_copy, is also used for universal_copy.  I saw in the thread http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/116392/422043.aspx#422043 that you had gotten that error before, but were able to solve the problem by re-building the syslink package.  I'm not sure why you would need to do this again.

    As far as I know, there are know issues with cleaning the Codec Engine examples.  The file, build_instructions.html, in $(CE_INSTALL_DIR)/examples, explains the steps. Running gmake clean then gmake should rebuild.

    The source code for the universal_copy and viddec3_copy codecs are under $(CE_INSTALL_DIR)/examples/ti/xdais/dm/examples.  In $(CE_INSTALL_DIR)/examples/ti/sdo/ce/examples/codecs/universal_copy, you don't see the source code and libraries.  These get pulled in by the line in the package.xdc file:

    requires ti.xdais.dm.examples.universal_copy;

    So it's not obvious at first where the codec libraries are coming from.

    Best regards,

        Janet

  • Hello,

    Finally we could build the dsp remote server package for universal copy example, and run it successfully on J4.

    Thank you for all the help.

     

    Regards,

    Kalyani

  • I'm glad to here that you're able to build now.  I'm curious, though, what the issue was with the library error "ti.syslink.ipc.rtos.anull" not found, that you were getting earlier.  How did you resolve this (in case it comes up again)?

    Best regards,

        Janet

     

  • Hello,

    While running remote server app for Universal_copy, video2_copy examples we are running Prcm_config_app, and inserting syslink.ko explicitely. This has not found to be mentioned anywhere in SDK.

    Is this not documented or are we missing on any documents?

    Regards,

    Kalyani