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.

  • TI Thinks Resolved

Linux/TDA2EVM5777: How to use opencv with cumstom dsp fireware in VSDK2.12 (linux )?

Part Number: TDA2EVM5777

Tool/software: Linux

    Hello,

     1、I add  OPENCL_INCLUDE=yes” and “ENABLE_OPENCV=yes” in "configs/tda2xx_evm_linux_all/cfg.mk",  then make the config, but get some error as below:

"

undefined                 first referenced                                                                                                                                  

  symbol                       in file                                                                                                                                        

 ---------                 ----------------                                                                                                                                   

 EDMA3_semCreate           /mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/lib/tda2xx-evm/c66xdsp_1/release/vision_sdk_lib.ae66<utils_dma_edma3cc.oe66>

EDMA3_semDelete           /mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/lib/tda2xx-evm/c66xdsp_1/release/vision_sdk_lib.ae66<utils_dma_edma3cc.oe66>

edma3OsProtectEntry       /mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/lib/tda2xx-evm/66/release/edma3lld_drv.ae66<edma3_drv_adv.oe66>            

 edma3OsProtectExit        /mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/lib/tda2xx-evm/66/release/edma3lld_drv.ae66<edma3_drv_adv.oe66>            

 edma3OsSemGive            /mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/lib/tda2xx-evm/66/release/edma3lld_drv.ae66<edma3_drv_adv.oe66>            

 edma3OsSemTake            /mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/lib/tda2xx-evm/66/release/edma3lld_drv.ae66<edma3_drv_adv.oe66>            

 rtos_init_ocl_dsp_monitor /mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/lib/tda2xx-evm/c66xdsp_1/release/vision_sdk_lib.ae66<system_common.oe66>   

error: unresolved symbols remain

error: errors encountered during linking;

   "/mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/visi

   on_sdk/bin/tda2xx-evm/vision_sdk_c66xdsp_1_release.xe66" not built

make[6]: *** [/mnt/processor-sdk/vision-sdk/vision_sdk/binaries/tda2xx_evm_linux_all/vision_sdk/bin/tda2xx-evm/vision_sdk_c66xdsp_1_release.xe66] Error 1

make[6]: Leaving directory `/mnt/processor-sdk/vision-sdk/vision_sdk/src/main_app/tda2xx/dsp1'

make[5]: *** [c66xdsp_1] Error 2

make[5]: Leaving directory `/mnt/processor-sdk/vision-sdk/vision_sdk/src/main_app/tda2xx/dsp1'

make[4]: *** [apps_dsp1] Error 2

make[4]: *** Waiting for unfinished jobs....

"

How to fix above error?

     2、In the case of tda2xx_evm_linux_all config, if i set  some config as below:

  "

  PROC_DSP1_INCLUDE=no
  PROC_DSP2_INCLUDE=no

  ENABLE_OPENCV=yes
  OPENCL_INCLUDE=yes
  ENABLE_OPENCV_TESTS=yes

 "

        just like the tda2xx_evm_linux_opencx config(not include any dsp core). It could "make" without any error, and it also use firmware  "dra7-dsp1-fw.xe66" from opencl_fs_patches.

    But if i want add some cumstom alg to dsp, and make the dsp fireware with my own. Is there anyway i can arrive at?

 

    Thanks and Rgds

    Sid

  • Hi Sid,

    I have forwarded your question to an OpenCV expert.

    Regards,
    Yordan
  • Hi,

    1. In order to use OpenCV features, use the tda2xx_evm_opencx_linux config. Mixing tda2xx_evm_linux_opencx and tda2xx_evm_linux_all is not supported.

    2. In order to add custom alg to dsp,

    1. use the linux config without opencl and your algo will get built into the dsp firmware produced by vision sdk (or)

    2. Develop your algorithm using OpenCL. In this case no change in dsp firmware is needed.


    Thanks and Rgds

    Suriya Narayanan L

  • In reply to Suriya Narayanan L:

    Hi, Suriya,

    Seems there are only two only cl implementation in VSDK2.12.1. Is there any way to mix the opencl feature with the legacy algorithm?

    XW

    Best Regards,

  • In reply to Wei Xu:

    Hi Wei Xu,

    You can call standard C functions from dsp libraries in OpenCL C code.

    To do the same, follow the instructions outlined here:

    downloads.ti.com/.../index.html

    Thanks and regards

    Suriya Narayanan L

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.