diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index 02246099c9..91679005c0 100644 --- a/include/configs/j721e_evm.h +++ b/include/configs/j721e_evm.h @@ -171,12 +171,19 @@ #define EXTRA_ENV_CONFIG_MAIN_CPSW0_QSGMII_PHY #endif -/* set default dfu_bufsiz to 128KB (sector size of OSPI) */ +#ifdef CONFIG_TARGET_J7200_A72_EVM +#define EXTRA_ENV_DFUARGS \ + DFU_ALT_INFO_MMC \ + DFU_ALT_INFO_EMMC_COMBINED \ + DFU_ALT_INFO_RAM \ + DFU_ALT_INFO_OSPI_COMBINED +#else #define EXTRA_ENV_DFUARGS \ DFU_ALT_INFO_MMC \ DFU_ALT_INFO_EMMC \ DFU_ALT_INFO_RAM \ DFU_ALT_INFO_OSPI +#endif #if defined(CONFIG_TARGET_J721E_A72_EVM) || defined(CONFIG_TARGET_J7200_A72_EVM) #define EXTRA_ENV_J721E_BOARD_SETTINGS_MTD \ diff --git a/include/environment/ti/k3_dfu.h b/include/environment/ti/k3_dfu.h index a16a3adeca..4396ffed1d 100644 --- a/include/environment/ti/k3_dfu.h +++ b/include/environment/ti/k3_dfu.h @@ -29,6 +29,15 @@ "u-env.raw raw 0x3400 0x100 mmcpart 1;" \ "sysfw.itb.raw raw 0x3600 0x800 mmcpart 1\0" +#define DFU_ALT_INFO_EMMC_COMBINED \ + "dfu_alt_info_emmc=" \ + "rawemmc raw 0 0x800000 mmcpart 1;" \ + "rootfs part 0 1 mmcpart 0;" \ + "tiboot3.bin.raw raw 0x0 0x800 mmcpart 1;" \ + "tispl.bin.raw raw 0x800 0x1000 mmcpart 1;" \ + "u-boot.img.raw raw 0x1800 0x2000 mmcpart 1;" \ + "u-env.raw raw 0x3800 0x100 mmcpart 1;\0" + #define DFU_ALT_INFO_OSPI \ "dfu_alt_info_ospi=" \ "tiboot3.bin raw 0x0 0x080000;" \ @@ -38,6 +47,14 @@ "sysfw.itb raw 0x6c0000 0x100000;" \ "rootfs raw 0x800000 0x3800000\0" +#define DFU_ALT_INFO_OSPI_COMBINED \ + "dfu_alt_info_ospi=" \ + "tiboot3.bin raw 0x0 0x100000;" \ + "tispl.bin raw 0x100000 0x200000;" \ + "u-boot.img raw 0x300000 0x400000;" \ + "u-boot-env raw 0x700000 0x020000;" \ + "rootfs raw 0x800000 0x3800000\0" + #define DFU_ALT_INFO_RAM \ "dfu_alt_info_ram=" \ "tispl.bin ram 0x80080000 0x200000;" \