FWU: Add Generic Firmware Update framework support in BL1Firmware update(a.k.a FWU) feature is part of the TBB architecture.BL1 is responsible for carrying out the FWU process if platformspecific
FWU: Add Generic Firmware Update framework support in BL1Firmware update(a.k.a FWU) feature is part of the TBB architecture.BL1 is responsible for carrying out the FWU process if platformspecific code detects that it is needed.This patch adds support for FWU feature support in BL1 which isincluded by enabling `TRUSTED_BOARD_BOOT` compile time flag.This patch adds bl1_fwu.c which contains all the core operationsof FWU, which are; SMC handler, image copy, authentication, executionand resumption. It also adds bl1.h introducing #defines for allBL1 SMCs.Following platform porting functions are introduced:int bl1_plat_mem_check(uintptr_t mem_base, unsigned int mem_size,unsigned int flags); This function can be used to add platform specific memory checks for the provided base/size for the given security state. The weak definition will invoke `assert()` and return -ENOMEM.__dead2 void bl1_plat_fwu_done(void *cookie, void *reserved); This function can be used to initiate platform specific procedure to mark completion of the FWU process. The weak definition waits forever calling `wfi()`.plat_bl1_common.c contains weak definitions for above functions.FWU process starts when platform detects it and return the image_idother than BL2_IMAGE_ID by using `bl1_plat_get_next_image_id()` in`bl1_main()`.NOTE: User MUST provide platform specific real definition forbl1_plat_mem_check() in order to use it for Firmware update.Change-Id: Ice189a0885d9722d9e1dd03f76cac1aceb0e25ed
show more ...
TBB: add TBBR Chain of TrustThis patch adds a CoT based on the Trusted Board Boot Requirementsdocument*. The CoT consists of an array of authentication imagedescriptors indexed by the image ident
TBB: add TBBR Chain of TrustThis patch adds a CoT based on the Trusted Board Boot Requirementsdocument*. The CoT consists of an array of authentication imagedescriptors indexed by the image identifiers.A new header file with TBBR image identifiers has been added.Platforms that use the TBBR (i.e. ARM platforms) may reuse thesedefinitions as part of their platform porting.PLATFORM PORT - IMPORTANT:Default image IDs have been removed from the platform commondefinitions file (common_def.h). As a consequence, platforms thatused those common definitons must now either include the IDsprovided by the TBBR header file or define their own IDs.*The NVCounter authentication method has not been implemented yet.Change-Id: I7c4d591863ef53bb0cd4ce6c52a60b06fa0102d5
12