Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

[FAQ] TDA4VM: What are the changes required to fit boot images within 4MB of emmc boot partition ?

Part Number: TDA4VM

What are the changes need to be done in order to fit the boot images within 4MB if the emmc boot partition size is 4MB.

  • 1.Make the changes in the  k3_dfu.h as of below.

    #define DFU_ALT_INFO_EMMC \
    	"dfu_alt_info_emmc=" \
    	"rawemmc raw 0 0x400000 mmcpart 1;" \
    	"rootfs part 0 1 mmcpart 0;" \
    	"tiboot3.bin.raw raw 0x0 0x400 mmcpart 1;" \
    	"tispl.bin.raw raw 0x400 0xB00 mmcpart 1;" \
    	"u-boot.img.raw raw 0xF00 0xD00 mmcpart 1;" \
    	"u-env.raw raw 0x1C00 0x100 mmcpart 1;" \
    	"sysfw.itb.raw raw 0x1D00 0x300 mmcpart 1\0"

    • What are these changes means 
      • "rawemmc raw 0 0x400000 mmcpart 1;" \                                             //Total 4MB  we are going to use 
      • "tiboot3.bin.raw raw 0x0 0x400 mmcpart 1;" \                                       // tiboo3.bin will be at offset of 0 and the size is 524KB (default tiboot3.bin size is 286KB)
      • "tispl.bin.raw raw 0x400 0xB00 mmcpart 1;" \                                       // tispl.bin will be at offset of 0x400 and the size is 1441KB(default tispl.bin size is 1100KB)
      • "u-boot.img.raw raw 0xF00 0xD00 mmcpart 1;" \                                  // u-bot.img will be at offset of 0xF00 and the size is 1703KB(default u-boot.img size is 1300KB)
      • "u-env.raw raw 0x1C00 0x100 mmcpart 1;" \                                        //  u-env will be at the offset of 0x1C00 and the size is 131KB ((default uenv size is 574B))
      • "sysfw.itb.raw raw 0x1D00 0x300 mmcpart 1\0"                                   //sysfw.itb will be at the offset of 0x1D00 and the size is 393KB(default sysfw.itb size is 263KB)

    Note: Emmc sector size is 512B.

    2.Define the new sysfw offset in the emmc in arch/arm/mach-k3/Kconfig.

    config K3_SYSFW_IMAGE_MMCSD_RAW_MODE_SECT
    hex "MMC sector to load SYSFW firmware and configuration blob from"
    depends on K3_LOAD_SYSFW && SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR
    default 0x1D00

    3.configure the uboot new sector in /configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig

    CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0xF00

    4.Flash the images using dfu to the emmc as mentioned in here in Section 5.1.3.

    5.Change the boot pins to emmc boot mode as mentioned in the above document and Power cycle the device.

    Regards
    Diwakar