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.
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.
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"
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