diff options
author | Ji Luo <ji.luo@nxp.com> | 2018-11-30 09:59:36 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2018-12-04 10:38:55 +0800 |
commit | 6192aff56871a4f88c8ac23d9ca2b6131c579f1f (patch) | |
tree | ba168a2319cc01c08b7796e97d972fe7f7f4a48e /common | |
parent | a024d695b71caf33a3ec2334c235beba398393c2 (diff) |
MA-13628 [Auto] Read/Write rollback index from rpmb
Secure storage is ready in trusty so we should read/write the rollback
index from rpmb.
But for borads without rpmb key, read/write the rpmb will fail and will
block the following avb verify process. In this case, check if the rpmb
key has been set and always return AVB_IO_RESULT_OK for the boards without
rpmb key.
Test: build and boot pass on imx8qm_mek.
Change-Id: I10c438e56d049ae97ebedfc446c8202642630d8b
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c index f9cd2e26a0..9444bc17b8 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -654,7 +654,7 @@ static int initr_kbd(void) } #endif -#ifdef AVB_RPMB +#if defined(AVB_RPMB) && !defined(CONFIG_SPL) extern int init_avbkey(void); static int initr_avbkey(void) { @@ -899,7 +899,7 @@ static init_fnc_t init_sequence_r[] = { #ifdef CONFIG_PS2KBD initr_kbd, #endif -#ifdef AVB_RPMB +#if defined(AVB_RPMB) && !defined(CONFIG_SPL) initr_avbkey, #endif #ifdef CONFIG_IMX_TRUSTY_OS |