[PATCH v6 5/7] fwu: meta-data: switch to management by common code

Sughosh Ganu sughosh.ganu at linaro.org
Thu Mar 16 09:47:32 CET 2023


On Thu, 16 Mar 2023 at 13:56, Ilias Apalodimas
<ilias.apalodimas at linaro.org> wrote:
>
> On Mon, Mar 06, 2023 at 05:18:41PM -0600, jassisinghbrar at gmail.com wrote:
> > From: Jassi Brar <jaswinder.singh at linaro.org>
> >
> > The common code can now read, verify and fix meta-data copies
> > while exposing one consistent structure to users.
> >  Only the .read_mdata() and .write_mdata() callbacks of fwu_mdata_ops
> > are needed. Get rid of .get_mdata() .update_mdata() .get_mdata_part_num()
> > .read_mdata_partition() and .write_mdata_partition() and also the
> > corresponding wrapper functions.
> >
> > Signed-off-by: Jassi Brar <jaswinder.singh at linaro.org>
> > Reviewed-by: Etienne Carriere <etienne.carriere at linaro.org>
> > ---
> >  cmd/fwu_mdata.c                      |  17 +-
> >  drivers/fwu-mdata/fwu-mdata-uclass.c | 165 -------------------
> >  drivers/fwu-mdata/gpt_blk.c          | 124 +-------------
> >  include/fwu.h                        | 199 -----------------------
> >  lib/fwu_updates/fwu.c                | 235 ++++-----------------------
> >  5 files changed, 38 insertions(+), 702 deletions(-)

<snip>

> >
> Etienne, Sughosh, this looks correct, but can someone
> verify it doesn't break the ST board?

I will check on the ST board by tomorrow and get back.

-sughosh


More information about the U-Boot mailing list