mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
Merge patch series "FWU: Add support for FWU metadata version 2"
Sughosh Ganu <sughosh.ganu@linaro.org> says: The following patch series adds support for version 2 of the FWU metadata. The version 2 metadata structure is defined in the latest revision of the FWU specification [1]. The earlier versions of these patches were migrating to a version 2 only support in U-Boot, similar to TF-A. However, based on feedback from ST [2], this series has been updated to support both versions. A platform would still be needed to enable one of the two versions of metadata through a config symbol. TF-A has code which reads the FWU metadata and boots the platform from the active partition. TF-A has decided to migrate the FWU code to a version 2 only support. These changes have been merged in upstream TF-A. These changes have been tested on the ST DK2 board, which uses the GPT based partitioning scheme. Both V1 and V2 metadata versions have been tested on the DK2 board. These changes need to be tested on platforms with MTD partitioned storage devices.
This commit is contained in:
@@ -116,6 +116,7 @@ configs/synquacer_developerbox_defconfig enables default FWU configuration ::
|
||||
CONFIG_FWU_NUM_BANKS=2
|
||||
CONFIG_FWU_NUM_IMAGES_PER_BANK=1
|
||||
CONFIG_CMD_FWU_METADATA=y
|
||||
CONFIG_FWU_MDATA_V2=y
|
||||
|
||||
And build it::
|
||||
|
||||
@@ -129,7 +130,9 @@ And build it::
|
||||
By default, the CONFIG_FWU_NUM_BANKS and CONFIG_FWU_NUM_IMAGES_PER_BANKS are
|
||||
set to 2 and 1 respectively. This uses FIP (Firmware Image Package) type image
|
||||
which contains TF-A, U-Boot and OP-TEE (the OP-TEE is optional).
|
||||
You can use fiptool to compose the FIP image from those firmware images.
|
||||
You can use fiptool to compose the FIP image from those firmware
|
||||
images. There are two versions of the FWU metadata, of which the
|
||||
platform enables version 2 by default.
|
||||
|
||||
Rebuild SCP firmware
|
||||
--------------------
|
||||
@@ -194,7 +197,7 @@ following UUIDs.
|
||||
|
||||
These UUIDs are used for making a FWU metadata image.
|
||||
|
||||
u-boot$ ./tools/mkfwumdata -i 1 -b 2 \
|
||||
u-boot$ ./tools/mkfwumdata -v 2 -i 1 -b 2 \
|
||||
17e86d77-41f9-4fd7-87ec-a55df9842de5,10c36d7d-ca52-b843-b7b9-f9d6c501d108,5a66a702-99fd-4fef-a392-c26e261a2828,a8f868a1-6e5c-4757-878d-ce63375ef2c0 \
|
||||
../devbox-fwu-mdata.img
|
||||
|
||||
|
||||
Reference in New Issue
Block a user