diff options
author | Luo Ji <ji.luo@nxp.com> | 2018-06-20 18:04:16 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2018-08-21 09:44:32 +0800 |
commit | a3f5218d385f29aea10b99c65c029aea5fe7d725 (patch) | |
tree | e9ba98c59b7ae15623b931d9b6efe491794364b4 /include/spl.h | |
parent | 982ff85bafd291d81cdb3f4965e85b55b9770929 (diff) |
[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 <ji.luo@nxp.com>
Diffstat (limited to 'include/spl.h')
-rw-r--r-- | include/spl.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 }; /* |