mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-03 21:02:07 +00:00
arm: am4x: add U-Boot FIT signing and SPL image post-processing
Modify the SPL build procedure for AM437x high-security (HS) device variants to create a secure u-boot_HS.img FIT blob that contains U-Boot and DTB artifacts signed (and optionally encrypted) with a TI-specific process based on the CONFIG_TI_SECURE_DEVICE config option and the externally-provided image signing tool. Also populate the corresponding FIT image post processing call to be performed during SPL runtime. Signed-off-by: Madan Srinivas <madans@ti.com> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
17c2987336
commit
e29878fc47
3 changed files with 10 additions and 0 deletions
|
@ -26,6 +26,7 @@ endif
|
||||||
else
|
else
|
||||||
ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
|
ifeq ($(CONFIG_TI_SECURE_DEVICE),y)
|
||||||
ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
|
ALL-$(CONFIG_QSPI_BOOT) += u-boot_HS_XIP_X-LOADER
|
||||||
|
ALL-y += u-boot_HS.img
|
||||||
endif
|
endif
|
||||||
ALL-y += u-boot.img
|
ALL-y += u-boot.img
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
#include <asm/errno.h>
|
#include <asm/errno.h>
|
||||||
#include <spl.h>
|
#include <spl.h>
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
|
#include <asm/omap_sec_common.h>
|
||||||
#include <asm/arch/clock.h>
|
#include <asm/arch/clock.h>
|
||||||
#include <asm/arch/sys_proto.h>
|
#include <asm/arch/sys_proto.h>
|
||||||
#include <asm/arch/mux.h>
|
#include <asm/arch/mux.h>
|
||||||
|
@ -862,3 +863,10 @@ int board_fit_config_name_match(const char *name)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_TI_SECURE_DEVICE
|
||||||
|
void board_fit_image_post_process(void **p_image, size_t *p_size)
|
||||||
|
{
|
||||||
|
secure_boot_verify_image(p_image, p_size);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -13,6 +13,7 @@ CONFIG_SPL_STACK_R=y
|
||||||
CONFIG_FIT=y
|
CONFIG_FIT=y
|
||||||
CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1, NAND"
|
CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1, NAND"
|
||||||
CONFIG_SPL_LOAD_FIT=y
|
CONFIG_SPL_LOAD_FIT=y
|
||||||
|
CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y
|
||||||
CONFIG_HUSH_PARSER=y
|
CONFIG_HUSH_PARSER=y
|
||||||
CONFIG_CMD_BOOTZ=y
|
CONFIG_CMD_BOOTZ=y
|
||||||
# CONFIG_CMD_IMLS is not set
|
# CONFIG_CMD_IMLS is not set
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue