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.

TDA2EG-17: TDA2EGBDQCBDQ1

Part Number: TDA2EG-17
Other Parts Discussed in Thread: PGA460

i use ti tda2eg-17 chip. then, i follow the VisionSDK_Linux_UserGuide.pdf and make sd card to boot the board. however, the uart can not send any message.

the version is PROCESSOR_SDK_VISION_03_08_00_00.

ubuntu version is 20.04.

the board is designed by us, the boot configuration is 0100010010000000.

i think the board, the configutation, the hardware device and uart connection is right. because i use another sd card it can boot correctly.

  • so may i need to modify the uboot code? 
  • Do I think it is still a question of configuration?

The totally configutation is list below

# Build Config is [ tda2ex_17x17_evm_linux_all ]
# Build Config file is @ /home/yao/linux/ti/PROCESSOR_SDK_VISION_03_08_00_00/vision_sdk/configs/tda2ex_17x17_evm_linux_all/cfg.mk
# Build Config .h file is @ /home/yao/linux/ti/PROCESSOR_SDK_VISION_03_08_00_00/vision_sdk/links_fw/include/config/apps/tda2ex_17x17_evm_linux_all/system_cfg.h
# Build CPUs is @ ipu2 a15_0 dsp1
#
# 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=no
# PROC_EVE1_INCLUDE=no
# PROC_EVE2_INCLUDE=no
# PROC_EVE3_INCLUDE=no
# PROC_EVE4_INCLUDE=no
# PROC_A15_0_INCLUDE=yes
#
# Platform config,
# VSDK_BOARD_TYPE=TDA2EX_EVM [options: TDA2XX_EVM TDA2EX_EVM TDA3XX_EVM TDA3XX_RVP TDA2XX_RVP]
# PLATFORM=tda2ex-evm
# DUAL_A15_SMP_BIOS=no
# IPU1_SMP_BIOS=no
# DDR_MEM=DDR_MEM_1024M [options: DDR_MEM_128M DDR_MEM_512M DDR_MEM_1024M]
# EMIFMODE=SINGLE_EMIF_512MB [options: SINGLE_EMIF_512MB SINGLE_EMIF_1GB ref build_pdk.mk]
# 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=no
# ISS_ENABLE_DEBUG_TAPS=no
# WDR_LDC_INCLUDE=no
# DSS_INCLUDE=yes
#
# Open Compute config,
# OPENCL_INCLUDE=no
# TARGET_ROOTDIR=/home/yao/linux/ti/PROCESSOR_SDK_VISION_03_08_00_00/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=no
#
# IPC config,
# WORKQ_INCLUDE=no
# IPC_LIB_INCLUDE=no
#
# AUTOSAR_APP=no
#
# Surround View config,
# SRV_FAST_BOOT_INCLUDE=no
#
# Other Module config,
# AVB_INCLUDE=no
# DCAN_INCLUDE=no
# RADAR_ONLY=no
# RADAR_STUDIO=no
# CPU_IDLE_ENABLED=yes
# FAST_BOOT_INCLUDE=no
# DATA_VIS_INCLUDE=no
# HS_DEVICE=no
# ULTRASONIC_INCLUDE=no
# PGA450=
# PGA460=
# ENABLE_ALL_DEPTH=
#
# Linux config,
# DEFAULT_UBOOT_CONFIG=dra7xx_evm_vision_config
# DEFAULT_KERNEL_CONFIG=ti_sdk_dra7x_release_defconfig
# DEFAULT_DTB=dra71-evm-infoadas.dtb
# CMEM_INCLUDE=yes
# IPUMM_INCLUDE=no
# IPU1_EVELOADER_INCLUDE=no
# ROBUST_RVC_INCLUDE=no
# BUILD_ADAM_CAR=no
#
# Alg plugins included in build,
# ALG_autocalibration ALG_dmaSwMs ALG_framecopy ALG_surroundview
#
# Use-cases included in build,
# UC_srv_calibration UC_lvds_vip_multi_cam_3d_srv UC_csi2Cal_multi_cam_3d_srv UC_csi2Cal_multi_cam_3d_srv_cbb UC_lvds_vip_multi_cam_view_sgx_display UC_null_src_decode_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_sgx_display
#
#
# CPUs that are NOT required but included in config [ tda2ex_17x17_evm_linux_all ],
#
#
# CPUs that are required but not included in config [ tda2ex_17x17_evm_linux_all ],
#
# ERROR: IPU1_0 MUST be included in application
#
# Edit /home/yao/linux/ti/PROCESSOR_SDK_VISION_03_08_00_00/vision_sdk/apps/configs/tda2ex_17x17_evm_linux_all/cfg.mk to include or exclude CPUs in an application

  • Hi,

    Can I know what are the steps followed after the installation of the SDK? (Please mention all the steps)

    Thanks

    Gaviraju

  • Hi, thanks for reply.

    Fristly, change the Rules.make, let MAKECONFIG= tda2ex_17x17_evm_linux_all

    Next execute the command

    • make linux
    • make linux_install
    • make -s -j depend
    • make -s -j

    Then tar the file system and keep it in $INSTALL_DIR/vision_sdk/binaries/$(MAKEAPPNAME)/<MAKECONFIG>/hlos/linux/boot folder

    and change the uenv.txt  fdtfile=dra7-evm-infoadas.dtb -> fdtfile= dra72-evm-infoada.dtb for tda2ex_17x17

    Finally format sd card, then execute this command 

    sudo ./hlos/scripts/linux/mksdboot.sh --device /dev/<parent_device_name> --appname <MAKEAPPNAME> --makeconfig <MAKECONFIG>

    After these steps, i insert the sd card, connect the serial, power on the board, i can say nothing in the MobaXterm.

    By the way, i found that, maybe i need to modify the sdram_init function,

    So another question, if DDR is not properly initialized, will the serial port does not output any information?

    Thanks

  • Hi,

    fdtfile= dra72-evm-infoada.dtb for tda2ex_17x17, this is not correct & it should be fdtfile= dra71-evm-infoada.dtb

     

    >>> By the way, i found that, maybe i need to modify the sdram_init function, So another question, if DDR is not properly initialized, will the serial port does not output any information?

    Are you trying with EVM board or custom board? because we are not doing any code changes after the installation of the SDK & have done any code changes in the SDK?

    Thanks

    Gaviraju

  • Hi,

    >>>fdtfile= dra72-evm-infoada.dtb for tda2ex_17x17, this is not correct & it should be fdtfile= dra71-evm-infoada.dtb

    OK, i will change and try again. but in the "VisionSDK_Linux_UserGuide.pdf" it says "fdtfile= dra72-evm-infoada.dtb for tda2ex_17x17"

    >>>Are you trying with EVM board or custom board? because we are not doing any code changes after the installation of the SDK & have done any code changes in the SDK?

    I am trying with custom board. our board use the "M25" and "L25" as serial debugging ports and has only 1GB of DDR.

    Thanks

  • Hi,

    I'm suspecting that is an typo error in the use-guide because in the config file: vision_sdk/apps/configs/tda2ex_17x17_evm_linux_all/cfg.mk, it's set as below.

    Please mention all the steps & I'm expecting all the steps like the below thread.

     

    Thanks

    Gaviraju

  • Hi,

    I follow these steps. 

    • download gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz under $INSTALL_DIR/ti_components/os_tools/linux/arm/
    • $> cd $INSTALL_DIR/ti_components/os_tools/linux/arm
    • $> tar –xvf gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz
    • sudo apt-get install Ssh, corkscrew, gawk, uname, sed, u-boot-tools, dos2unix, dtrx, git, lib32z1 lib32ncurses5 lib32bz2-1.0 libc6:i386 libc6-i386 libstdc++6:i386 libncurses5:i386 libz1:i386 libc6-dev-i386 device-tree-compiler mono-complete lzop. 

    uname, dtrx, lib32ncurses5, lib32bz2-1.0 are not in the source of the ubuntu 20.04. so it can not be installed and some related tools has beed installed. however. in the following building steps, it did not reported an error.

    • $> ./PROCESSOR_SDK_VISION_XX_XX_XX_XX_setuplinux.bin
    • $>vi /home/<username>/.gitconfig
    • [core] gitproxy = none for ti.com gitproxy = /home/<username>/git-proxy.sh
    • $>vi /home/<username>/git-proxy.sh
    • exec /usr/bin/corkscrew proxyle01.ext.ti.com 80 $*
    • $> git config --list
    • core.gitproxy=none for ti.com
    • core.gitproxy=/home/<username>/git–proxy.sh
    • $> ./hlos/scripts/linux/setup_linux.sh
    • Download Linux file system tisdk-rootfs-image-dra7xx-evm_vsdk_3_8.tar.xz from ti.com and keep under following directory $INSTALL_DIR/ti_components/os_tools/linux/targetfs
    • cd $INSTALL_DIR/ti_components/os_tools/linux/targetfs
    • $> chmod 777 ../targetfs
    • $> tar xf tisdk-rootfs-image-dra7xx-evm_vsdk_3_8.tar.xz
    • $> cd $INSTALL_DIR/ti_components/codecs
    • $> git clone git://git.ti.com/ivimm/ipumm.git
    • $> cd ipumm/
    • $> git checkout -b ipumm_dev 365a9a5402c829710b7e1eefec07d26b3c94c3a9
    • $> Install codec engine ver codec_engine_3_24_00_08 in the following folder <INSTALL_DIR>/ti_components/codecs/
    • download FC version framework_components_3_40_02_07 and installed in the following folder <INSTALL_DIR>/ti_components/codecs/
    • $> cd $INSTALL_DIR/ti_components/os_tools/linux/kernel
    • $> git clone git://git.ti.com/sdo-emu/dsptop.git
    • $> cd dsptop/
    • $> git checkout -b dsptop_dev 0aedcab
    • $> cd $INSTALL_DIR/ti_components/os_tools/linux/kernel
    • $> git clone git://git.ti.com/sdo-emu/gdbc6x.git
    • $> cd gdbc6x/
    • $> git checkout -b gdbc6x_dev df0b8f6

    The next steps are all the ones I mentioned before

    Fristly, change the Rules.make, let MAKECONFIG= tda2ex_17x17_evm_linux_all

    Next execute the command

    • make linux
    • make linux_install
    • make -s -j depend
    • make -s -j

    Then tar the file system and keep it in $INSTALL_DIR/vision_sdk/binaries/$(MAKEAPPNAME)/<MAKECONFIG>/hlos/linux/boot folder

    and change the uenv.txt  fdtfile=dra7-evm-infoadas.dtb -> fdtfile= dra71-evm-infoada.dtb for tda2ex_17x17

    Finally format sd card, then execute this command 

    sudo ./hlos/scripts/linux/mksdboot.sh --device /dev/<parent_device_name> --appname <MAKEAPPNAME> --makeconfig <MAKECONFIG>

    that's all,  thanks

    in addtion, i can not found "opencl_fs_patches.tar.gz" in the $INSTALL_DIR/ti_components/os_tools/linux/kernel/linux-kernel-addon/fs-patches. Could you find the problem in this information?

  • Hi,

    The OpenCL & OpenCV is deprecated from the vision SDK so we are not supporting any query related to OpenCV & OpenCL.

      

    Why are you following the above steps? because these steps are not mentioned in the Linux user-guide.

    Where is the U-boot source code? have you cloned the U-boot code?

    The below steps are mentioned in the Linux user-guide to clone the Kernel & U-boot, SGX, CMEM

    OR

    Run the script from <INSTALL_DIR>/vision_sdk/build Direcrory to clone Kernel, U-boot, SGX, Cmem
    $> ./hlos/scripts/linux/setup_linux.sh

    Thanks

    Gaviraju

  • Hi,

    Actually in the  Linux user-guide. PROCESSOR_SDK_VISION_03_08_00_00\vision_sdk\docs\Linux\VisionSDK_Linux_UserGuide.pdf on page 8.

    picture.xlsx

    Yes, i have cloned the uboot code by the method  $> ./hlos/scripts/linux/setup_linux.sh which had mentiioned above. You can see in the next picture.

    thanks

  • Hi,

    Yes, you followed all the steps but unfortunately not able to see any logs on the console, so I will check with the team & let you know asap.

    Thanks

    Gaviraju

  • Hi,

    OK, Thanks for your reply and waiting for your message!

  • Hi Ye Yao,

    You have to make changes to u-boot and kernel for the custom board. Default u-boot and Kernel won't work on custom board.
    You are using a different serial port compared to TI EVM? if so that should be changed first to get some prints on console.

    Regards,
    Vishal

  • Hi,

    Sorry for reply late. due to a holiday and happy new year!

    yeah, i think so, i ready to modify the uboot first.  OK, i will check uart again. currently, our custom board have same serial port with TI EVM.

    So I wonder why the serial port doesn't have any information.

    Thanks

  • Also you mentioned in your initial post that some SD card worked

    i think the board, the configutation, the hardware device and uart connection is right. because i use another sd card it can boot correctly.

    What image was there in this SD card? did the same board work with this SD card?

  • Hi,

    By modifying the uboot code, I can see some information in the serial port. It says "SDRAM: identified size not same as expected size identified: 0 expected: 40000000".

    So, next step, i will modify DDR3 initialization code. By the way, where to download the EMIF configuration tools? 

    I found that through my TI account, I cannot log in to this website "cdds.ext.ti.com/.../emxTree.jsp to download the tools.

    Could you help me this?

    Thanks

  • Hi,

    Please see these links for the TDA2x EMIF Register Configuration Tool:

    Thanks,
    Kevin

  • Hi,

    Sorry for replying late, i have tested some times, all are failed.

    It always shows "SDRAM: identified size not same as expected size identified: 0 expected: 40000000".

    Our costom board use two “MT41K256M16TW-107AATP” DDR. I follow the document "sprac36e.pdf", fill in some parameters in the "EMIF_RegisterConfig.xlsm" and update the value of register. However, it still ailed.

    Can these situation cause the problem?

    • I found that the CAS Latency for the parameter "EMIF_REGISTERCONFIG. CONF" is a maximum of 11. But our DDR CAS Latency has a value of 13.
    • I fill nothing is the sheet "Step2-BoardDetails", because i think this is the hardware-related parameter.

    The following "6740.EMIF_RegisterConfig.zip" shows the configuration.

    Thinks

  • The DDR questions above are being addressed on this thread: e2e.ti.com/.../3602353

    Will close this thread and keep the new thread open.

    Best regards,
    Kevin

  • HI,

    Ok,Thanks