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.

TDAV4M EVM - what are the exact steps to install vision apps on TDAV4M EVM SOC Board

Other Parts Discussed in Thread: TDA4VM

Hello,

please be so kind and write me the exact steps to  install vision apps on TDAV4M EVM SOC board, in order to use minimum six (6) video cameras and with

the possibility to extend the usage to more additional cameras. Please make reference to the last software versions available for this task.

Please do not expediate me to links, write the steps one by one .

Many thanks,

Kind regards ,

Mircea

  • Hi,

    Please follow the below steps to install vision_apps on TDA4VM EVM SOC.

    1. I'm assuming that you would have downloaded the RTOS SDK (PSDKR Version: 08.02.00.05) and Linux SDK (PSDKL Version: 08.02.00.03) from this link PROCESSOR-SDK-J721E Software development kit (SDK) | TI.com

    2. 
    Copy below files (linux filesystem and linux boot files) from PSDK Linux folder to base folder of PSDK RTOS

                cp ${PSDKL_PATH}/board-support/prebuilt-images/boot-j7-evm.tar.gz ${PSDKR_PATH}/

                cp ${PSDKL_PATH}/filesystem/tisdk-default-image-j7-evm.tar.xz ${PSDKR_PATH}/


    3. Do below to download and install additional dependencies needed to build RTOS SDK in the PSDKR path
        
     ./psdk_rtos/scripts/setup_psdk_rtos.sh

    4. Do below to build the source code using pre-built libraries provided in the SDK installer, with "N" being the number of parallel threads (in PSDKR path)

                cd vision_apps

                make sdk -jN

    5. Prepare the SD card (One time) using the STEP 1 mentioned in this link Vision Apps User Guide: Run Instructions

    6. Once the SD card is prepared, Download the test data psdk_rtos_ti_data_set_08_02_00.tar.gz from PROCESSOR-SDK-J721E Software development kit (SDK) | TI.com
        You can find this file at the same location the SDK RTOS installer is hosted.

    7. Untar and copy test data to SD card, using below commands    

    cd /media/$USER/rootfs/
    mkdir -p opt/vision_apps
    cd opt/vision_apps
    tar --strip-components=1 -xf ${path/to/file}/psdk_rtos_ti_data_set_xx_xx_xx.tar.gz
    sync

    8. Do below to copy vision apps binaries to SD card

    cd ${PSDKR_PATH}/vision_apps
    make linux_fs_install_sd

    Your SD card is loaded with the vision_apps binaries. You could run the demos on EVM now.
    Please refer the below link for more detailed explaination

    Vision Apps User Guide: Build and Run (ti.com)

    Regards,
    Nikhil
  • Hi Nikhil,

    Thank you for your kind answer. Please send ALL STEPS for solving the requested task WITHOUT ANY LINK included , as I requested in my initial question. I also would like  to know how to view the camera output on display as video stream , so in real time, and also how to view on the display the static images taken with the camera connected to this SOC board. The task is urgent ! So, I kindly ask for a very fast , exact and accurate response.

    Thanks again,

    Best regards ,

    Mircea

  • Hi Mircea,

    The steps provided above are the exact steps required to install vision_apps on the TDA4VM EVM Board.

    Let me explain the 5th point i.e. Prepare the SD card. (As only this step is pointed to a Link above)

    • Insert SD card onto your PC SD card slot and format SD card in two partitions,
      • FAT32 partition: for boot loader, 64MB size recommended
      • ext4 partition: for root filesystem, rest of SD card, atleast 16GB SD card recommended.
    • You can use the below option to format your SD card
      • You can use the utility script psdk_rtos/scripts/mk-linux-card.sh to make the partitions
        • Use the command "df -h" to identify the device used by SD card
        • Unmount the SD card before running the script
        • Example, if your SD card is on device /dev/sdb having two partitions, do below to unmount them 

                                        umount /dev/sdb1 

                                        umount /dev/sdb2 

        • Run the script as below to partition it, answer "y" to all questions asked when running the script
                                        cd ${PSDKR_PATH}
                                        sudo psdk_rtos/scripts/mk-linux-card.sh /dev/sdb

    • After formatting, remove and insert the SD card for the freshly formatted partitions to get auto mounted on the host PC.
    • Copy/untar filesystem and boot files to SD card by executing the script as shown below,
      cd ${PSDKR_PATH}
      psdk_rtos/scripts/install_to_sd_card.sh
    • DO NOT REMOVE SD card during this process

    Proceed with Step 6 mentioned in the previous post.



    I also would like  to know how to view the camera output on display as video stream , so in real time, and also how to view on the display the static images taken with the camera connected to this SOC board

    In order to view the image from the camera, you could run either the single cam or multi cam demo application available in the SDK using the below procedure.

    Once the executable files are copied to SD card, Eject and remove SD card from PC and insert in EVM

    • Setup the EVM
      • Connect UART/USB cable and setup UART terminal
      • Connect daughter card for camera, display as required
      • Connect power supply
      • Connect HDMI and/or DP display
      • Select SD card boot mode on EVM
      • Insert SD card
    • Power on the EVM
    • First time only: The uboot environment may need to be cleared prior to running with the prebuilt filesystem. The uboot environment can be cleared by first pressing enter to stop the boot process at uboot and come to uboot prompt. The below commands can be entered to clear the uboot environment to default and save the changes.
      env default –a –f
      saveenv
    • Power cycle the EVM
    • You should see bootloader prints on the UART terminal and then bootloader will boot linux kernel and you should see login prompt as below
       
      j7-evm login:
    • On the EVM, Login using below user id, no password
      root
    • On the EVM, do below steps to init the environment for the demos
      cd /opt/vision_apps
      source ./vision_apps_init.sh
    • Now run the below scripts to run the single cam demos (Single camera + VISS + Display demo (needs display, Fusion1 board, 1x IMX390 or compatible camera's)

                ./run_app_single_cam.sh

    • If you want to run multi-cam demo instead of single cam, run the below script. (Multi (4x) camera + VISS + Display demo (needs display, Fusion1 board, 4x IMX390 or compatible camera's)

      ./run_app_multi_cam.sh


    The links provided above were just for reference/ additional info. All the steps are covered here.

    Please revert back if you have any additional queries.

    Regards,
    Nikhil