SPRADE5 February   2025 TDA4VM , TDA4VM-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Optimization Methology
    1. 2.1 Bootloader Switch to SBL From OSPI Boot Media
    2. 2.2 Linux Device Tree Optimizations
    3. 2.3 File System Switch to Tiny rootfs
    4. 2.4 Vision_apps Framework Optimizations
    5. 2.5 Imaging Framework Optimizations
    6. 2.6 Vision_apps SRV Application Redesign
  6. 3Detailed Design Procedure
    1. 3.1 Linux Integration (PSDKLA)
    2. 3.2 Imaging Integration(PSDKRA)
    3. 3.3 Vision_apps Integration (PSDKRA)
    4. 3.4 PDK Implementation (PSDKRA)
      1. 3.4.1 Build R5 SBL for OSPI Boot Mode
      2. 3.4.2 Build combined_appImage
      3. 3.4.3 Copy TIFS and phy Tuning Parameters
    5. 3.5 Flashing the Binaries to OSPI
    6. 3.6 Steps to Install vision_apps With tiny-rootfs on SD Card
    7. 3.7 Copy Test Data to SD card (one time only)
    8. 3.8 Init Script
    9. 3.9 Moving File System From SD to eMMC
  7. 4Logs
  8. 5Summary
  9. 6References

Moving File System From SD to eMMC

Boot to Linux command prompt on the TDA4-EVM:

  1. Format the emmc and execute the following commands to copy filesystem from MMC-SD to eMMC.
    mkdir /mnt/emmc
    mkdir /mnt/sd
    mount /dev/mmcblk0p2 /mnt/emmc
    mount /dev/mmcblk1p2 /mnt/sd
    cp -r /mnt/sd/* /mnt/emmc
    sync
  2. After the above step, you can optimize the MMC-SD aka sdhci1 node from DT by applying the patch below.

    0003-Linux-eMMC-filesystem.patch

  3. Insert the SD card in ubuntu host machine. Build the dtb and update the combined_appImage with the latest DTB.
    cd $PSDK_LINUX_PATH/board-support/linux-5.10.162+gitAUTOINC+76b3e88d56-g76b3e88d56
    git apply 0003-Linux-eMMC-filesystem.patch
    make linux-dtbs
    cd $PSDK_RTOS_PATH/pdk_jacinto_08_06_00_31/packages/ti/boot/sbl/tools/combined_appimage
    make clean
    make BOARD=j721e_evm HLOS_BOOT=optimized
    cp $PSDK_RTOS_PATH/pdk_jacinto_08_06_00_31/packages/ti/boot/sbl/tools/combined_appimage/bin/j721e_evm/combined_opt.appimage /media/$USER/BOOT
    sync
  4. Now, insert the SD card to TDA4-EVM and burn the new combined.appimage to OSPI:
    sf probe
    fatload mmc 1 ${loadaddr} combined_opt.appimage;
    sf update $loadaddr 0x100000 $filesize;
  5. Power off the board.
  6. Switch to OSPI.
  7. Dip switch settings:
    1. SW8: 00000000
    2. SW9: 01000000
  8. Boot the board.
  9. SRV demo can be up in approximately 2.6 seconds.