From a3f5218d385f29aea10b99c65c029aea5fe7d725 Mon Sep 17 00:00:00 2001 From: Luo Ji Date: Wed, 20 Jun 2018 18:04:16 +0800 Subject: [iot] Support rollback index protection at SPL stage Bootloader image take fit format and the rollback index for bootloader is stored at the "rbindex" node, SPL will read the rollback index for bootloader and compare it with the one stored in RPMB. The stored rollback index will be updated only when current slot pass the verify and has been marked as successful. Bug:109947126 Test: Rollback index protection feature works fine for imx8m. Change-Id: Ic12db4571287fbcb99e5eba0127e0b09378fa5d6 Signed-off-by: Luo Ji --- include/spl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/spl.h') diff --git a/include/spl.h b/include/spl.h index dafae51784e..5af42b7f3e2 100644 --- a/include/spl.h +++ b/include/spl.h @@ -33,6 +33,9 @@ struct spl_image_info { u32 size; u32 flags; void *arg; +#ifdef CONFIG_DUAL_BOOTLOADER + uint64_t rbindex; +#endif }; /* -- cgit v1.2.3