From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Sughosh Ganu <sughosh.ganu@linaro.org>
Cc: u-boot@lists.denx.de, Heinrich Schuchardt <xypron.glpk@gmx.de>,
Masahisa Kojima <masahisa.kojima@linaro.org>,
Patrice Chotard <patrice.chotard@foss.st.com>,
Patrick Delaunay <patrick.delaunay@foss.st.com>,
Yann Gautier <yann.gautier@st.com>,
Etienne Carriere <etienne.carriere@foss.st.com>
Subject: Re: [PATCH 00/18] FWU: Migrate FWU metadata to version 2
Date: Wed, 24 Jan 2024 12:05:56 +0200 [thread overview]
Message-ID: <ZbDhBBAi1eKRHY-D@hera> (raw)
In-Reply-To: <20240122115439.653871-1-sughosh.ganu@linaro.org>
Hi Sughosh,
On Mon, Jan 22, 2024 at 05:24:21PM +0530, Sughosh Ganu wrote:
>
> The following patches migrate the FWU metadata access code to version
> 2 of the structure. This is based on the structure definition as
> defined in the latest rev of the FWU Multi Bank Update specification
> [1].
>
> Since the version 1 of the structure has currently been adopted on a
> couple of platforms, it was decided to have a clean migration of the
> metadata to version 2 only, instead of supporting both the versions of
> the structure. Also, based on consultations with the main author of
> the specification, it is expected that any further changes in the
> structure would be minor tweaks, and not be significant. Hence a
> migration to version 2.
I think this makes sense. We've already verified Socionext doesn't mind
dropping v1 support. If some from ST doesn't have objections, only
supporting v2 will simplify the code a lot.
Thanks
/Ilias
>
> Similar migration is also being done in TF-A, including migrating the
> ST platform port to support version 2 of the metadata structure [2].
>
> The patches have been tested on STM32MP1 DK2 board and the Synquacer
> board from Socionext. This covers testing both the GPT and the MTD
> partitioned storage devices for the metadata access.
>
> [1] - https://developer.arm.com/documentation/den0118/latest/
> [2] - https://review.trustedfirmware.org/q/topic:%22topics/fwu_metadata_v2_migration%22
>
> Sughosh Ganu (18):
> configs: fwu: Remove FWU configs for metadata V2 migration
> fwu: metadata: Migrate to version 2 of the structure
> drivers: fwu: Add the size parameter to the metadata access API's
> fwu: Add some API's for metadata version 2 access
> lib: fwu: Make changes to support version 2 of FWU metadata
> drivers: fwu: mtd: Allocate buffer for image info dynamically
> drivers: fwu: Allocate memory for metadata copies
> fwu: Add a function to put a bank in Trial State
> capsule: Accept a bank on a successful update
> fwu: mtd: Modify the DFU API's to align with metadata version 2
> efi_firmware: fwu: Do not read FWU metadata on sandbox
> efi_firmware: fwu: Get the number of FWU banks at runtime
> cmd: fwu: Align the command with metadata version 2
> test: fwu: Align the FWU metadata access test with version 2
> fwu: Remove the config symbols for number of banks and images
> tools: mkfwumdata: Migrate to metadata version 2
> configs: fwu: Re-enable FWU configs
> doc: fwu: Make changes for supporting FWU Metadata version 2
>
> arch/sandbox/Kconfig | 6 -
> board/armltd/corstone1000/corstone1000.c | 2 +-
> cmd/fwu_mdata.c | 43 +++-
> configs/synquacer_developerbox_defconfig | 1 -
> doc/board/socionext/developerbox.rst | 9 +-
> doc/develop/uefi/fwu_updates.rst | 12 +-
> doc/usage/cmd/fwu_mdata.rst | 12 +-
> drivers/fwu-mdata/fwu-mdata-uclass.c | 10 +-
> drivers/fwu-mdata/gpt_blk.c | 27 +-
> drivers/fwu-mdata/raw_mtd.c | 85 ++++---
> include/fwu.h | 94 ++++++-
> include/fwu_mdata.h | 56 +++--
> lib/efi_loader/efi_capsule.c | 12 +-
> lib/efi_loader/efi_firmware.c | 20 +-
> lib/fwu_updates/Kconfig | 11 -
> lib/fwu_updates/fwu.c | 308 ++++++++++++++++++-----
> lib/fwu_updates/fwu_mtd.c | 76 ++++--
> test/dm/fwu_mdata.c | 56 +++--
> test/dm/fwu_mdata_disk_image.h | 124 ++++-----
> tools/mkfwumdata.c | 43 +++-
> 20 files changed, 705 insertions(+), 302 deletions(-)
>
> --
> 2.34.1
>
>
next prev parent reply other threads:[~2024-01-24 10:06 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-22 11:54 [PATCH 00/18] FWU: Migrate FWU metadata to version 2 Sughosh Ganu
2024-01-22 11:54 ` [PATCH 01/18] configs: fwu: Remove FWU configs for metadata V2 migration Sughosh Ganu
2024-01-24 11:25 ` Ilias Apalodimas
2024-01-22 11:54 ` [PATCH 02/18] fwu: metadata: Migrate to version 2 of the structure Sughosh Ganu
2024-01-24 11:22 ` Ilias Apalodimas
2024-01-22 11:54 ` [PATCH 03/18] drivers: fwu: Add the size parameter to the metadata access API's Sughosh Ganu
2024-01-22 11:54 ` [PATCH 04/18] fwu: Add some API's for metadata version 2 access Sughosh Ganu
2024-01-22 11:54 ` [PATCH 05/18] lib: fwu: Make changes to support version 2 of FWU metadata Sughosh Ganu
2024-01-22 11:54 ` [PATCH 06/18] drivers: fwu: mtd: Allocate buffer for image info dynamically Sughosh Ganu
2024-01-22 11:54 ` [PATCH 07/18] drivers: fwu: Allocate memory for metadata copies Sughosh Ganu
2024-01-22 11:54 ` [PATCH 08/18] fwu: Add a function to put a bank in Trial State Sughosh Ganu
2024-01-22 11:54 ` [PATCH 09/18] capsule: Accept a bank on a successful update Sughosh Ganu
2024-01-22 11:54 ` [PATCH 10/18] fwu: mtd: Modify the DFU API's to align with metadata version 2 Sughosh Ganu
2024-01-22 11:54 ` [PATCH 11/18] efi_firmware: fwu: Do not read FWU metadata on sandbox Sughosh Ganu
2024-01-22 11:54 ` [PATCH 12/18] efi_firmware: fwu: Get the number of FWU banks at runtime Sughosh Ganu
2024-01-22 11:54 ` [PATCH 13/18] cmd: fwu: Align the command with metadata version 2 Sughosh Ganu
2024-01-22 11:54 ` [PATCH 14/18] test: fwu: Align the FWU metadata access test with " Sughosh Ganu
2024-01-22 11:54 ` [PATCH 15/18] fwu: Remove the config symbols for number of banks and images Sughosh Ganu
2024-01-22 11:54 ` [PATCH 16/18] tools: mkfwumdata: Migrate to metadata version 2 Sughosh Ganu
2024-01-22 11:54 ` [PATCH 17/18] configs: fwu: Re-enable FWU configs Sughosh Ganu
2024-01-22 11:54 ` [PATCH 18/18] doc: fwu: Make changes for supporting FWU Metadata version 2 Sughosh Ganu
2024-01-24 10:05 ` Ilias Apalodimas [this message]
2024-01-26 15:09 ` [PATCH 00/18] FWU: Migrate FWU metadata to " Michal Simek
2024-01-29 6:34 ` Sughosh Ganu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZbDhBBAi1eKRHY-D@hera \
--to=ilias.apalodimas@linaro.org \
--cc=etienne.carriere@foss.st.com \
--cc=masahisa.kojima@linaro.org \
--cc=patrice.chotard@foss.st.com \
--cc=patrick.delaunay@foss.st.com \
--cc=sughosh.ganu@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=yann.gautier@st.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.