diff options
-rw-r--r-- | src/lib/fmap.c | 3 | ||||
-rw-r--r-- | src/soc/rockchip/rk3288/bootblock.c | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/fmap.c b/src/lib/fmap.c index 77817d1e60..8901ff7ce2 100644 --- a/src/lib/fmap.c +++ b/src/lib/fmap.c @@ -130,7 +130,8 @@ static int find_fmap_directory(struct region_device *fmrd) if (boot == NULL) return -1; - fmap = rdev_mmap(boot, offset, FMAP_SIZE); + fmap = rdev_mmap(boot, offset, + CONFIG(CBFS_VERIFICATION) ? FMAP_SIZE : sizeof(struct fmap)); if (fmap == NULL) return -1; diff --git a/src/soc/rockchip/rk3288/bootblock.c b/src/soc/rockchip/rk3288/bootblock.c index 60ead64785..a821ef1401 100644 --- a/src/soc/rockchip/rk3288/bootblock.c +++ b/src/soc/rockchip/rk3288/bootblock.c @@ -8,6 +8,9 @@ #include <soc/timer.h> #include <symbols.h> +_Static_assert(!CONFIG(CBFS_VERIFICATION), + "RK3288 doesn't have enough PRERAM_CBFS_CACHE to support the FMAP mapping needed for CBFS verification"); + void bootblock_soc_init(void) { rkclk_init(); |