configs: ti: Add environment support commands for FIT loading
PATCH 1/2 configs: ti: Add environment support commands for FIT loading
Some parts of these commands can be reused, add them to common files.
Signed-off-by Andrew F. Davis <[email protected]>
--- include/configs/am65x_evm.h | 3 +++ include/configs/ti_armv7_common.h | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-)
include/configs/am65x_evm.h +3 -0
@@ -94,11 +94,14 @@"done;\0" \"get_kern_mmc=load mmc ${bootpart} ${loadaddr} " \"${bootdir}/${name_kern}\0" \ +"get_fit_mmc=load mmc ${bootpart} ${addr_fit} " \ +"${bootdir}/${name_fit}\0" \"partitions=" PARTS_DEFAULT /* Incorporate settings into the U-Boot environment */ #define CONFIG_EXTRA_ENV_SETTINGS \DEFAULT_MMC_TI_ARGS \ +DEFAULT_FIT_TI_ARGS \EXTRA_ENV_AM65X_BOARD_SETTINGS \EXTRA_ENV_AM65X_BOARD_SETTINGS_MMC
include/configs/ti_armv7_common.h +7 -1
@@ -55,7 +55,13 @@"addr_fit=0x90000000\0" \"name_fit=fitImage\0" \"update_to_fit=setenv loadaddr ${addr_fit}; setenv bootfile ${name_fit}\0" \ -"loadfit=run args_mmc; bootm ${loadaddr}#${fdtfile};\0" \ +"get_overlaystring=" \ +"for overlay in $overlay_files;" \ +"do;" \ +"setenv overlaystring ${overlaystring}'#'${overlay};" \ +"done;\0" \ +"run_fit=bootm ${loadaddr}#${fdtfile}${overlaystring}\0" \ +"loadfit=run args_mmc; run run_fit;\0" \/* * DDR information. If the CONFIG_NR_DRAM_BANKS is not defined,
Signature · 1 line
2.17.1
PATCH 2/2 configs: am65x_hs_evm: Use FIT images when booting HS devices
HS devices use the FIT post processing step to authenticate boot images. Set the configured boot command to load FIT by default.
Signed-off-by Andrew F. Davis <[email protected]>
--- configs/am65x_hs_evm_a53_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configs/am65x_hs_evm_a53_defconfig +1 -1
@@ -19,7 +19,7 @@ CONFIG_FIT_IMAGE_POST_PROCESS=y CONFIG_SPL_LOAD_FIT=y CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y CONFIG_OF_BOARD_SETUP=y -CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern" +CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_fit_${boot}; run get_overlaystring; run run_fit" # CONFIG_DISPLAY_CPUINFO is not set CONFIG_SPL_TEXT_BASE=0x80080000 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
Signature · 1 line
2.17.1
PATCH 2/2 configs: am65x_hs_evm: Use FIT images when booting HS devices
Quoted 4 lines · Andrew F. Davis
HS devices use the FIT post processing step to authenticate boot images. Set the configured boot command to load FIT by default.
Signed-off-by Andrew F. Davis <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190914/d945bdbe/attachment.sig>
PATCH 1/2 configs: ti: Add environment support commands for FIT loading
In reply to Andrew F. DavisQuoted 3 lines · Andrew F. Davis
Some parts of these commands can be reused, add them to common files.
Signed-off-by Andrew F. Davis <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190914/cc5f932f/attachment.sig>