Browse Source

feat(tbbr): add image id for backup GPT

Add image identifier to access backup-GPT header and entry,
when we fail to get primary GPT header.

Currently we use only the primary gpt header, But we plan to
use backup GPT header in case our primary GPT header fails
verification or is corrupted.

Change-Id: I12eedd5d2a5cda21c64254d461d09d400d4edb30
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
pull/1993/merge
Govindraj Raja 1 year ago
parent
commit
1051606c3d
  1. 27
      include/export/common/tbbr/tbbr_img_def_exp.h

27
include/export/common/tbbr/tbbr_img_def_exp.h

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2019-2022, ARM Limited and Contributors. All rights reserved. * Copyright (c) 2019-2023, ARM Limited and Contributors. All rights reserved.
* *
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
@ -79,41 +79,44 @@
/* NT_FW_CONFIG */ /* NT_FW_CONFIG */
#define NT_FW_CONFIG_ID U(27) #define NT_FW_CONFIG_ID U(27)
/* GPT Partition */ /* GPT primary header and entries */
#define GPT_IMAGE_ID U(28) #define GPT_IMAGE_ID U(28)
/* GPT backup header and entries */
#define BKUP_GPT_IMAGE_ID U(29)
/* Binary with STM32 header */ /* Binary with STM32 header */
#define STM32_IMAGE_ID U(29) #define STM32_IMAGE_ID U(30)
/* Encrypted image identifier */ /* Encrypted image identifier */
#define ENC_IMAGE_ID U(30) #define ENC_IMAGE_ID U(31)
/* FW_CONFIG */ /* FW_CONFIG */
#define FW_CONFIG_ID U(31) #define FW_CONFIG_ID U(32)
/* /*
* Primary FWU metadata image ID * Primary FWU metadata image ID
*/ */
#define FWU_METADATA_IMAGE_ID U(32) #define FWU_METADATA_IMAGE_ID U(33)
/* /*
* Backup FWU metadata image ID * Backup FWU metadata image ID
*/ */
#define BKUP_FWU_METADATA_IMAGE_ID U(33) #define BKUP_FWU_METADATA_IMAGE_ID U(34)
/* Realm Monitor Manager (RMM) */ /* Realm Monitor Manager (RMM) */
#define RMM_IMAGE_ID U(34) #define RMM_IMAGE_ID U(35)
/* CCA Content Certificate ID */ /* CCA Content Certificate ID */
#define CCA_CONTENT_CERT_ID U(35) #define CCA_CONTENT_CERT_ID U(36)
/* Core SWD Key Certificate ID */ /* Core SWD Key Certificate ID */
#define CORE_SWD_KEY_CERT_ID U(36) #define CORE_SWD_KEY_CERT_ID U(37)
/* Platform Key Certificate ID */ /* Platform Key Certificate ID */
#define PLAT_KEY_CERT_ID U(37) #define PLAT_KEY_CERT_ID U(38)
/* Max Images */ /* Max Images */
#define MAX_IMAGE_IDS U(38) #define MAX_IMAGE_IDS U(39)
#endif /* ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_TBBR_TBBR_IMG_DEF_EXP_H */ #endif /* ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_TBBR_TBBR_IMG_DEF_EXP_H */

Loading…
Cancel
Save