diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2022-06-02 11:01:31 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-06-03 09:17:27 +0200 |
commit | 0a7bbd4e6ca36a311e4f2232c3d757faf58d7a8e (patch) | |
tree | 664f75e1bf88e2e3b939d6aadb2d12dd3a80429a /include | |
parent | cfe5484eb2cac97373da85706732678ab34cedc7 (diff) | |
download | barebox-0a7bbd4e6ca36a311e4f2232c3d757faf58d7a8e.tar.gz barebox-0a7bbd4e6ca36a311e4f2232c3d757faf58d7a8e.tar.xz |
filetype: differentiate between STM32MP FSBL and SSBL images
We have some special handling for legacy (non-FIP) STM32 images:
We have a bootm handler for chainloading and an update handler
for use with GPT ssbl partitions. Both aren't applicable to the
TF-A image used as FSBL. As barebox always has 0x00000000 at
offset 0xfc and TF-A alrways has 0x10000000, we can use that
to differentiate between the two images to make sure we refuse
TF-A images when barebox images are expected.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20220602090133.3190450-6-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/filetype.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/filetype.h b/include/filetype.h index 9b7499fdf3..00d54e48d5 100644 --- a/include/filetype.h +++ b/include/filetype.h @@ -52,7 +52,8 @@ enum filetype { filetype_layerscape_image, filetype_layerscape_qspi_image, filetype_ubootvar, - filetype_stm32_image_v1, + filetype_stm32_image_fsbl_v1, + filetype_stm32_image_ssbl_v1, filetype_zynq_image, filetype_mxs_sd_image, filetype_rockchip_rkns_image, |