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

File System Switch to Tiny rootfs

Switch to tiny rootfs from full fledged arago file system. Tiny rootfs is a bare minimal file system and does not contain multiple libraries that are essential for the vision_apps framework and graphics modules to be functional. This optimizes file system loading time by avoiding all the non-essential file system services initialization.

Post this, copy /lib and /usr/lib contents from full fledged FS to the corresponding folders in tiny rootfs and then copy the above prepared SD card rootfs to eMMC.

Modify the Init script that does the below:

  • Instead of booting all the way to prompt hijack the init script to do bare minimal tasks for SRV
  • Mount all the necessary file system folders.
  • Export the relevant paths.
  • Insert the virtio_rpmsg_bus, ti_k3_r5_remoteproc (R5F driver), pvrsrvkm (Graphics driver) modules.
  • Run the SRV application

The above optimizations saved another 9-10 Seconds to get to linux prompt.