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/TDA2PXEVM: RTOS usecase conversion to linux

Part Number: TDA2PXEVM


Tool/software: Linux

Hi.

I try to merge to the linux source from RTOS usecase. (UC_iss_mult_capture_isp_dewarp_3dsv_tda3xx) but an error occurs as follows.

source is vision sdk 3.04 version.

'/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/binaries/apps/tda2px_evm_linux_all/obj/vision_sdk/tda2px-evm/ipu2/release/vision_sdk_configuro/osa_mem_map.h' -> '/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/links_fw/src/hlos/osa/include/osa_mem_map.h'
# links_a15_algorithm: tda2px-evm: Compiling algorithmLink_cfg.c
# osa: tda2px-evm: Compiling osa_remote_log_client.c
# osa: tda2px-evm: Compiling osa_mem.c
# osa: tda2px-evm: Compiling osa_remote_log_server.c
# system: tda2px-evm: Compiling system_common.c
# system: tda2px-evm: Compiling system_ipc.c
# links_a15_algorithm: tda2px-evm: Creating archive links_a15_algorithm.a
# osa: tda2px-evm: Creating archive osa.a
# system: tda2px-evm: Creating archive system.a
In file included from /home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/links_fw/include/link_api/issM2mResizerLink.h:112:0,
from chains_issMultCaptIspSimcop_Stereo_priv.h:78,
from chains_issMultCaptIspSimcop_Stereo.c:66:
/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/links_fw/include/link_api/issIspConfiguration.h:97:50: fatal error: ti/drv/vps/include/iss/vps_isscommon.h: No such file or directory
compilation terminated.
In file included from /home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/links_fw/include/link_api/issM2mResizerLink.h:112:0,
from chains_issMultCaptIspSimcop_Stereo_priv.h:78,
from chains_issMultCaptIspSimcop_Stereo_priv.c:70:
/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/links_fw/include/link_api/issIspConfiguration.h:97:50: fatal error: ti/drv/vps/include/iss/vps_isscommon.h: No such file or directory
compilation terminated.
/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/build/hlos/makerules/linux/common_footer_a15.mk:81: recipe for target 'depend' failed
make[6]: *** [depend] Error 1
MAKEFILE_adas.MK:14: recipe for target 'vision_sdk_linux_demo' failed
make[5]: *** [vision_sdk_linux_demo] Error 2
MAKEFILE_adas.MK:5: recipe for target 'apps' failed
make[4]: *** [apps] Error 2
Makefile:183: recipe for target 'apps_exe_hlos' failed
make[3]: *** [apps_exe_hlos] Error 2
Makefile:64: recipe for target 'apps_hlos' failed
make[2]: *** [apps_hlos] Error 2
Makefile:36: recipe for target 'apps' failed
make[1]: *** [apps] Error 2
Makefile:12: recipe for target 'vision_sdk' failed
make: *** [vision_sdk] Error 2

I do the build according to this document.(VisionSDK_Linux_UserGuide.pdf)

the TDA2PXEVM board works well with Linux.

So I wanted to import RTOS usecase and test it on linux.

In order to merge on linux, I refer to this documents.(VisionSDK_UserGuide_UsecaseGen.pdf, VisionSDK_UserGuide_BuildSystem.pdf)

please check the Error

Thanks

  • Hi,

    I can see the error is coming  chains_issMultCaptIspSimcop_Stereo_priv.h file not from the usecase which you have added.

    Can you try to make your usecase inclusion as no in below file

    vision_sdk\$(MAKEAPPNAME)\configs\$(MAKECONFIG)\uc_cfg.mk

    Confirm by doing make showconfig and check your usecase is not added and then try to build.

    Regards,

    Anuj

  • HI Anuj

    I check the uc_cfg.mk file and make show config.

    I don't have idea.

    please check the file and make show config.
    - uc_cfg.mk
    -------------------------------------------------------------------------------------------
    UC_srv_calibration=yes
    UC_csi2Cal_multi_cam_view=yes
    UC_csi2Cal_multi_cam_3d_srv=yes

    #kyungtae.oh modify
    UC_iss_mult_capture_isp_simcop_stereo_tda2px=yes

    ifeq ($(ISS_INCLUDE),yes)
    UC_iss_capture_isp_simcop_display=yes
    UC_iss_multi_cam_isp_sgx_3d_srv_display=yes
    UC_iss_multi_cam_isp_sgx_2mp_3d_srv=yes
    endif

    UC_vip_single_cam_connectorLinksA15_sgx_display=yes
    UC_vip_single_cam_enc_dec_sgx_display=yes
    UC_vip_single_cam_framecopy_sgx_display=yes
    UC_vip_single_cam_framecopyEve_sgx_display=yes
    UC_vip_single_cam_sgx_display=yes

    UC_srv_calibration=yes
    UC_lvds_vip_multi_cam_3d_srv=yes
    UC_lvds_vip_multi_cam_view_sgx_display=yes

    ifeq ($(AVB_INCLUDE),yes)
    UC_avb_rx_multi_cam_decode_sgx_display=yes
    endif
    -------------------------------------------------------------------------------------------

    - make show config
    -------------------------------------------------------------------------------------------
    make -C /home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/apps/configs -f build_makeconfig.mk showconfig
    make[1]: Entering directory '/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/apps/configs'
    #
    # Build Config is [ tda2px_evm_linux_all ]
    # Build Config file is @ /home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/configs/tda2px_evm_linux_all/cfg.mk
    # Build Config .h file is @ /home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/links_fw/include/config/apps/tda2px_evm_linux_all/system_cfg.h
    # Build CPUs is @ ipu2 a15_0 dsp1 dsp2 eve1 eve2
    #
    # CPUs included in application,
    # PROC_IPU1_0_INCLUDE=no
    # PROC_IPU1_1_INCLUDE=no
    # PROC_IPU2_INCLUDE=yes
    # PROC_DSP1_INCLUDE=yes
    # PROC_DSP2_INCLUDE=yes
    # PROC_EVE1_INCLUDE=yes
    # PROC_EVE2_INCLUDE=yes
    # PROC_EVE3_INCLUDE=no
    # PROC_EVE4_INCLUDE=no
    # PROC_A15_0_INCLUDE=yes
    #
    # Platform config,
    # VSDK_BOARD_TYPE=TDA2PX_EVM [options: TDA2XX_EVM TDA2EX_EVM TDA3XX_EVM TDA3XX_RVP TDA2XX_RVP]
    # PLATFORM=tda2px-evm
    # DUAL_A15_SMP_BIOS=no
    # DDR_MEM=DDR_MEM_1024M [options: DDR_MEM_128M DDR_MEM_512M DDR_MEM_1024M]
    # NDK_PROC_TO_USE=none [options: a15_0 ipu1_0 ipu1_1 ipu2 none]
    # NSP_TFDTP_INCLUDE=no [options: yes no]
    # TDA2EX_ETHSRV_BOARD=no [options: yes no]
    # FATFS_PROC_TO_USE=none [options: ipu1_0 none]
    # RADAR_BOARD=none [options: TDA3XX_AR12_ALPS TDA3XX_AR12_VIB_DAB_BOOSTER TDA3XX_RADAR_RVP none]
    #
    # Build config,
    # BUILD_OS=Linux [options: Windows_NT Linux]
    # BUILD_DEPENDENCY_ALWAYS=no
    # BUILD_ALGORITHMS=no
    # BUILD_INFOADAS=no
    # PROFILE=release [options: debug release]
    # KW_BUILD=no
    # CPLUSPLUS_BUILD=no
    # IPU_PRIMARY_CORE=ipu2 [options: ipu1_0 ipu2]
    # IPU_SECONDARY_CORE=ipu1_0 [options: ipu1_0 ipu2]
    # A15_TARGET_OS=Linux [options: Bios Linux Qnx]
    # BSP_STW_PACKAGE_SELECT=all [options: all vps-iss-dss-only vps-vip-vpe]
    #
    # Safety Module config,
    # RTI_INCLUDE=no
    # ECC_FFI_INCLUDE=no
    # DCC_ESM_INCLUDE=no
    #
    # Video Module config,
    # IVAHD_INCLUDE=yes
    # VPE_INCLUDE=yes
    # CAL_INCLUDE=yes
    # ISS_INCLUDE=yes
    # ISS_ENABLE_DEBUG_TAPS=no
    # WDR_LDC_INCLUDE=no
    # DSS_INCLUDE=yes
    #
    # Open Compute config,
    # OPENCL_INCLUDE=no
    # TARGET_ROOTDIR=/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/../ti_components/os_tools/linux/targetfs
    # ENABLE_OPENCV=no
    # ENABLE_OPENCV_TESTS=no
    # OPENVX_INCLUDE=no
    #
    # Log config,
    # ENABLE_UART_LOG=yes
    # ENABLE_NETWORK_LOG=no
    # ENABLE_CCS_LOG=no
    # CIO_REDIRECT=yes
    #
    # IPC config,
    # WORKQ_INCLUDE=no
    # IPC_LIB_INCLUDE=no
    #
    # Surround View config,
    # SRV_FAST_BOOT_INCLUDE=no
    #
    # Other Module config,
    # AVB_INCLUDE=no
    # DCAN_INCLUDE=no
    # RADAR_INCLUDE=no
    # CPU_IDLE_ENABLED=yes
    # FAST_BOOT_INCLUDE=no
    # DATA_VIS_INCLUDE=no
    # HS_DEVICE=no
    # ULTRASONIC_INCLUDE=no
    #
    # Linux config,
    # DEFAULT_UBOOT_CONFIG=dra7xx_evm_vision_config
    # DEFAULT_KERNEL_CONFIG=ti_sdk_dra7x_release_defconfig
    # DEFAULT_DTB=dra76-evm-infoadas.dtb
    # CMEM_INCLUDE=yes
    # IPUMM_INCLUDE=no
    # IPU1_EVELOADER_INCLUDE=yes
    # ROBUST_RVC_INCLUDE=no
    # BUILD_ADAM_CAR=no
    #
    # Alg plugins included in build,
    # ALG_autocalibration ALG_census ALG_disparityhamdist ALG_dmaSwMs ALG_framecopy ALG_remapmerge ALG_sceneobstruction ALG_stereo_postprocessing ALG_surroundview ALG_iss_aewb
    #
    # Use-cases included in build,
    # UC_iss_capture_isp_simcop_display UC_srv_calibration UC_lvds_vip_multi_cam_3d_srv UC_csi2Cal_multi_cam_3d_srv UC_csi2Cal_multi_cam_view UC_lvds_vip_multi_cam_view_sgx_display UC_vip_single_cam_connectorLinksA15_sgx_display UC_vip_single_cam_enc_dec_sgx_display UC_vip_single_cam_framecopy_sgx_display UC_vip_single_cam_framecopyEve_sgx_display UC_vip_single_cam_sgx_display UC_iss_mult_capture_isp_simcop_stereo_tda2px UC_iss_multi_cam_isp_sgx_3d_srv_display UC_iss_multi_cam_isp_sgx_2mp_3d_srv
    #
    make -s -fbuild_makeconfig.mk check_cpu_include
    make[2]: Entering directory '/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/apps/configs'
    #
    # CPUs that are NOT required but included in config [ tda2px_evm_linux_all ],
    #
    # WARNING: DSP2 can be excluded from application
    # WARNING: EVE2 can be excluded from application
    #
    # CPUs that are required but not included in config [ tda2px_evm_linux_all ],
    #
    # ERROR: IPU1_0 MUST be included in application
    #
    # Edit /home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/build/configs/tda2px_evm_linux_all/cfg.mk to include or exclude CPUs in an application
    #
    make[2]: Leaving directory '/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/apps/configs'
    make[1]: Leaving directory '/home/kyungtae.oh/ti/sdk/PROCESSOR_SDK_VISION/vision_sdk/apps/configs'
    -------------------------------------------------------------------------------------------



    thanks
    Regards,
    kyungtae
  • Hi,

    The error is coming due to UC_iss_mult_capture_isp_simcop_stereo_tda2px usecase.
    Please make that as no.

    Regards,
    Anuj
  • Hi, Anuj

    UC_iss_mult_capture_isp_simcop_stereo_tda2px is UC_iss_mult_capture_isp_simcop_streo_tda3xx.
    we changeed the name to distinguish RTOS usecase and HLOS usecase.
    the explanation is as follows.
    1. create folder
    vision_sdk\apps\src\hlos\adas\src\usecases\iss_mult_capture_isp_simcop_stereo_tda2px
    2. add *.c and *.h files
    3. add MAKEFILE.MK
    4. Add cfg.mk
    5. Add make config : UC_LIST in cfg.mk, UC_iss_mult_capture_isp_simcop_stereo_tda2px in uc_cfg.mk
    6. make show config
    7. add menu-item string(vision_sdk\apps\src\hlos\adas\src\common\chains_main_linux_iss.c)
    8. add chain main function(vision_sdk\apps\src\hlos\adas\include\chains.h)
    9. add MAKEFILE_adas.MK

    but we have the Error.

    RTOS usecase don't change the HLOS usecase.

    check the this problem.

    thanks
  • Hi,

    Your compilation is getting fail die to vps_isscommon.h file.
    can you just check whether you have this file or not?
    And the path for that file has been added in the makefile.

    Regards,
    Anuj
  • Hi,

    Have you verified the above things?

    Regards,
    Anuj