. If the system boots
in the Trial State for more than a specified number of boot counts,
change the Active Bank to be booting the platform from.
Call these checks through the main loop event at the time of platform
boot.
Signed-off-by: Sughosh Ganu
Reviewed-by: Etienne Carriere
---
Changes since V11
Add an event type EVT_MAIN_LOOP that can be used for registering
events that need to be run after the platform has been initialised and
before the main_loop function is called.
Signed-off-by: Sughosh Ganu
Reviewed-by: Simon Glass
---
Changes since V11: None
common/board_r.c | 3 +++
common
, this value is passed through one of the SoC's
backup register. Add a function to read the boot index value from the
backup register.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Acked-by: Ilias Apalodimas
---
Changes since V11: None
arch/arm/mach-stm32mp/include/mach/stm32.h | 5
. The function to get the dfu alternate
number has been added for platforms with GPT partitioned storage
devices. Platforms with other storage partition scheme need to
implement their own function.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Acked-by: Etienne Carriere
---
Changes
Enabling capsule update functionality on the platform requires
populating information on the images that are to be updated using the
functionality. Do so for the DK2 board.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Ilias Apalodimas
Reviewed-by: Etienne Carriere
The FWU metadata structure is accessed through the driver model
interface. On the stm32mp157c-dk2 board, the FWU metadata is stored on
the uSD card. Add the fwu-mdata node on the u-boot specifc dtsi file
for accessing the metadata structure.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick
based partition scheme.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Etienne Carriere
---
Changes since V11:
* Declare mdata_parts as an array in gpt_get_mdata_partitions()
* Put the assignment to the return value in gpt_check_mdata_validity()
as suggested by Etienne
, and implementations can be added based on parameters
like how the metadata partition is accessed and what type of storage
device houses the metadata.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Etienne Carriere
---
Changes since V11:
* Use an enum for IMAGE_ACCEPT_SET
devices.
Signed-off-by: Sughosh Ganu
Reviewed-by: Heinrich Schuchardt
Acked-by: Etienne Carriere
Reviewed-by: Ilias Apalodimas
---
Changes since V11: None
.../firmware/fwu-mdata-gpt.yaml | 32 +++
1 file changed, 32 insertions(+)
create mode 100644 doc/device-tree
()
* Describe the config CONFIG_CMD_FWU_METADATA separately
* Remove some superfluous configs from the list of config symbols
needed for building the feature
Sughosh Ganu (15):
dt/bindings: Add bindings for GPT based FWU Metadata storage device
FWU: Add FWU metadata structure and driver
hi Takahiro,
On Mon, 3 Oct 2022 at 16:27, Takahiro Akashi wrote:
>
> Hi Sughosh,
>
> On Wed, Sep 28, 2022 at 02:59:46PM +0530, Sughosh Ganu wrote:
> > Enabling capsule update functionality on the platform requires
> > populating information on the images that
hi Ilias,
On Mon, 3 Oct 2022 at 15:26, Ilias Apalodimas
wrote:
>
> On Wed, Sep 28, 2022 at 02:59:50PM +0530, Sughosh Ganu wrote:
> > The FWU Multi Bank Update specification requires the Update Agent to
> > carry out certain checks at the time of platform boot. Th
hi Etienne,
On Fri, 30 Sept 2022 at 11:24, Etienne Carriere
wrote:
>
> Hello Sughosh,
>
> On Wed, 28 Sept 2022 at 11:30, Sughosh Ganu wrote:
> >
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of
hi Etienne,
On Fri, 30 Sept 2022 at 11:57, Etienne Carriere
wrote:
>
> Hello Sughosh,
>
> 2 comments on the documentation. Otherwise it looks all good to me.
>
> Best regards,
> Etienne
>
> On Wed, 28 Sept 2022 at 11:31, Sughosh Ganu wrote:
> >
> > A
On Thu, 29 Sept 2022 at 00:59, Jassi Brar wrote:
>
> On Wed, Sep 28, 2022 at 1:00 AM Sughosh Ganu wrote:
> >
> > On Tue, 27 Sept 2022 at 21:55, Jassi Brar wrote:
> > >
> > > On Tue, Sep 27, 2022 at 2:14 AM Sughosh Ganu
> > > wrote:
> > &g
Add documentation for the FWU Multi Bank Update feature. The document
describes the steps needed for setting up the platform for the
feature, as well as steps for enabling the feature on the platform.
Signed-off-by: Sughosh Ganu
---
Changes since V10:
* Fix review comments suggested by Etienne
-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
---
Changes since V10: None
doc/mkeficapsule.1 | 4
tools/mkeficapsule.c | 17 ++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/doc/mkeficapsule.1 b/doc/mkeficapsule.1
index 77ca061efd..6fb2dd0810 100644
--- a/doc
://git.codelinaro.org/linaro/dependable-boot/mbfw/uploads/6f7ddfe3be24e18d4319e108a758d02e/mbfw.pdf
Signed-off-by: Sughosh Ganu
---
Changes since V10: None
doc/mkeficapsule.1 | 29 +
tools/eficapsule.h | 8
tools/mkeficapsule.c | 96
3 files
--
the FIT capsule test will be run on the sandbox_flattree variant.
Signed-off-by: Sughosh Ganu
Suggested-by: Heinrich Schuchardt
---
Changes since V10: None
arch/sandbox/Kconfig | 6 +
arch/sandbox/dts/test.dts | 7 +-
board/sandbox/sandbox.c
Add a command to read the metadata as specified in the FWU
specification and print the fields of the metadata.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
Reviewed-by: Etienne Carriere
---
Changes since V10: None
cmd/Kconfig | 6 +++
cmd/Makefile
. If the system boots
in the Trial State for more than a specified number of boot counts,
change the Active Bank to be booting the platform from.
Call these checks through the main loop event at the time of platform
boot.
Signed-off-by: Sughosh Ganu
Reviewed-by: Etienne Carriere
---
Changes since V10
to set the updated bank as active
bank to subsequently boot from.
Signed-off-by: Sughosh Ganu
---
Changes since V10:
* Move the computation of the image index to the FMP set_image
function as suggested by Takahiro
* Use true and false booleans for fw_accept_os as suggested by Jassi
* Simplify
Add an event type EVT_MAIN_LOOP that can be used for registering
events that need to be run after the platform has been initialised and
before the main_loop function is called.
Signed-off-by: Sughosh Ganu
Reviewed-by: Simon Glass
Reviewed-by: Ilias Apalodimas
---
Changes since V10: None
, this value is passed through one of the SoC's
backup register. Add a function to read the boot index value from the
backup register.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Acked-by: Ilias Apalodimas
---
Changes since V10:
* Remove the casting of boot_idx to a u32 as suggested
. The function to get the dfu alternate
number has been added for platforms with GPT partitioned storage
devices. Platforms with other storage partition scheme need to
implement their own function.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Acked-by: Etienne Carriere
---
Changes
Enabling capsule update functionality on the platform requires
populating information on the images that are to be updated using the
functionality. Do so for the DK2 board.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Ilias Apalodimas
---
Changes since V10:
* Use
The FWU metadata structure is accessed through the driver model
interface. On the stm32mp157c-dk2 board, the FWU metadata is stored on
the uSD card. Add the fwu-mdata node on the u-boot specifc dtsi file
for accessing the metadata structure.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick
, and implementations can be added based on parameters
like how the metadata partition is accessed and what type of storage
device houses the metadata.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Etienne Carriere
---
Changes since V10:
* s/fwu_update_active_index
based partition scheme.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Etienne Carriere
---
Changes since V10:
* Use array for storing the metadata partition numbers as suggested by
Ilias
* Skip a couple of goto's in gpt_check_mdata_validity() as suggested
by Ilias
devices.
Signed-off-by: Sughosh Ganu
Reviewed-by: Heinrich Schuchardt
Acked-by: Etienne Carriere
Reviewed-by: Ilias Apalodimas
---
Changes since V10: None
.../firmware/fwu-mdata-gpt.yaml | 32 +++
1 file changed, 32 insertions(+)
create mode 100644 doc/device-tree
to highlight the
difference in ImageIndex correlation with DFU alt num with FWU feature
enabled
Sughosh Ganu (15):
dt/bindings: Add bindings for GPT based FWU Metadata storage device
FWU: Add FWU metadata structure and driver for accessing metadata
FWU: Add FWU metadata access driver
On Tue, 27 Sept 2022 at 22:19, Jassi Brar wrote:
>
> On Tue, Sep 27, 2022 at 2:22 AM Sughosh Ganu wrote:
> >
> > On Mon, 26 Sept 2022 at 20:24, Jassi Brar wrote:
> > >
> > > On Mon, Sep 26, 2022 at 4:01 AM Sughosh Ganu
> > > wrote:
>
On Tue, 27 Sept 2022 at 21:55, Jassi Brar wrote:
>
> On Tue, Sep 27, 2022 at 2:14 AM Sughosh Ganu wrote:
> >
> > On Mon, 26 Sept 2022 at 20:12, Jassi Brar wrote:
> > >
> > > On Mon, Sep 26, 2022 at 5:00 AM Sughosh Ganu
> > > wrote:
> > &g
On Mon, 26 Sept 2022 at 20:24, Jassi Brar wrote:
>
> On Mon, Sep 26, 2022 at 4:01 AM Sughosh Ganu wrote:
> > On Mon, 26 Sept 2022 at 08:25, Jassi Brar wrote:
>
> > > .
> > > >
> > > > +static __maybe_unused efi_status_t fw
On Mon, 26 Sept 2022 at 20:12, Jassi Brar wrote:
>
> On Mon, Sep 26, 2022 at 5:00 AM Sughosh Ganu wrote:
> >
> > On Mon, 26 Sept 2022 at 08:28, Jassi Brar wrote:
> > >
>
> > >
> > > .
> > > > +/**
> > > > + * fwu_re
On Mon, 26 Sept 2022 at 19:37, Jassi Brar wrote:
>
> On Mon, Sep 26, 2022 at 5:08 AM Sughosh Ganu wrote:
> >
> > On Mon, 26 Sept 2022 at 08:29, Jassi Brar wrote:
> > > .
> > > > +static int fwu_boottime_checks(void *ctx, struct event *ev
On Mon, 26 Sept 2022 at 08:29, Jassi Brar wrote:
>
> On Thu, Sep 15, 2022 at 3:17 AM Sughosh Ganu wrote:
>
>
> > diff --git a/include/fwu.h b/include/fwu.h
> > index 484289ed4f..d5f77ce83c 100644
> > --- a/include/fwu.h
> > +++ b/includ
On Mon, 26 Sept 2022 at 08:28, Jassi Brar wrote:
>
> On Thu, Sep 15, 2022 at 3:15 AM Sughosh Ganu wrote:
>
> > +/**
> > + * @mdata_check: check the validity of the FWU metadata partitions
> > + * @get_mdata() - Get a FWU metadata copy
> > + * @update_mdata
On Mon, 26 Sept 2022 at 08:25, Jassi Brar wrote:
>
> On Thu, Sep 15, 2022 at 3:17 AM Sughosh Ganu wrote:
>
> > +
> > +static __maybe_unused void fwu_post_update_checks(
> > + struct efi_capsule_header *capsule,
> > + bool *f
On Mon, 26 Sept 2022 at 08:22, Jassi Brar wrote:
>
> On Thu, Sep 15, 2022 at 3:16 AM Sughosh Ganu wrote:
>
> > diff --git a/drivers/fwu-mdata/Kconfig b/drivers/fwu-mdata/Kconfig
> > new file mode 100644
> > index 00..7322da48b1
> > --- /dev/null
&g
hi Ilias,
On Thu, 22 Sept 2022 at 14:16, Ilias Apalodimas
wrote:
>
> Hi Sughosh
>
> On Thu, Sep 15, 2022 at 01:44:39PM +0530, Sughosh Ganu wrote:
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of the
hi Ilias,
On Thu, 22 Sept 2022 at 14:29, Ilias Apalodimas
wrote:
>
> Hi Sughosh
>
> On Thu, Sep 15, 2022 at 01:44:42PM +0530, Sughosh Ganu wrote:
> > Add weak functions for getting the update index value and dfu
> > alternate number needed for FWU Multi Bank
hi Takahiro,
On Wed, 21 Sept 2022 at 10:58, Takahiro Akashi
wrote:
>
> Sughosh,
>
> On Tue, Sep 20, 2022 at 06:34:12PM +0530, Sughosh Ganu wrote:
> > On Tue, 20 Sept 2022 at 13:46, Takahiro Akashi
> > wrote:
> > >
> > > On Fri, Sep 16, 2022 at 04:24:
On Tue, 20 Sept 2022 at 13:46, Takahiro Akashi
wrote:
>
> On Fri, Sep 16, 2022 at 04:24:35PM +0530, Sughosh Ganu wrote:
> > hi Takahiro,
> >
> > On Fri, 16 Sept 2022 at 12:20, Takahiro Akashi
> > wrote:
> > >
> > > On Fri, Sep 16, 2022 at 10:
On Mon, 19 Sept 2022 at 06:03, Jassi Brar wrote:
>
> On Thu, 15 Sept 2022 at 03:15, Sughosh Ganu wrote:
>
> > +/**
> > + * fwu_get_active_index() - Get active_index from the FWU metadata
> > + * @active_idxp: active_index value to be read
> > + *
> &g
hi Takahiro,
On Fri, 16 Sept 2022 at 12:20, Takahiro Akashi
wrote:
>
> On Fri, Sep 16, 2022 at 10:52:11AM +0530, Sughosh Ganu wrote:
> > () hi Takahiro,
> >
> > On Fri, 16 Sept 2022 at 07:17, Takahiro Akashi
> > wrote:
> > >
> > > Hi Sughosh,
>
() hi Takahiro,
On Fri, 16 Sept 2022 at 07:17, Takahiro Akashi
wrote:
>
> Hi Sughosh,
>
> On Thu, Sep 15, 2022 at 01:44:46PM +0530, Sughosh Ganu wrote:
> > The FWU Multi Bank Update feature supports updation of firmware images
> > to one of multiple sets(also
Add documentattion for the FWU Multi Bank Update feature. The document
describes the steps needed for setting up the platform for the
feature, as well as steps for enabling the feature on the platform.
Signed-off-by: Sughosh Ganu
---
Changes since V9: None
doc/develop/uefi/fwu_updates.rst
-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
---
Changes since V9: None
doc/mkeficapsule.1 | 4
tools/mkeficapsule.c | 17 ++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/doc/mkeficapsule.1 b/doc/mkeficapsule.1
index 77ca061efd..6fb2dd0810 100644
--- a/doc
://git.codelinaro.org/linaro/dependable-boot/mbfw/uploads/6f7ddfe3be24e18d4319e108a758d02e/mbfw.pdf
Signed-off-by: Sughosh Ganu
---
Changes since V9: None
doc/mkeficapsule.1 | 29 +
tools/eficapsule.h | 8
tools/mkeficapsule.c | 96
3 files
--
the FIT capsule test will be run on the sandbox_flattree variant.
Signed-off-by: Sughosh Ganu
Suggested-by: Heinrich Schuchardt
---
Changes since V9:
* Change the fwu_plat_get_bootidx() function to take an uint * as the
function parameter instead of the void * as suggested by Etienne.
arch
Add a command to read the metadata as specified in the FWU
specification and print the fields of the metadata.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
Reviewed-by: Etienne Carriere
---
Changes since V9:
* Add a document for the command
cmd/Kconfig | 6
to set the updated bank as active
bank to subsequently boot from.
Signed-off-by: Sughosh Ganu
---
Changes since V9:
* Move the global variables into local variables as suggested by
Ilias.
* Change fwu_get_image_alt_num() name to fwu_get_image_image_index()
as suggested by Takahiro.
* Allow capsule
. If the system boots
in the Trial State for more than a specified number of boot counts,
change the Active Bank to be booting the platform from.
Call these checks through the main loop event at the time of platform
boot.
Signed-off-by: Sughosh Ganu
Reviewed-by: Etienne Carriere
---
Changes since V9
Add an event type EVT_MAIN_LOOP that can be used for registering
events that need to be run after the platform has been initialised and
before the main_loop function is called.
Signed-off-by: Sughosh Ganu
Reviewed-by: Simon Glass
---
Changes since V9:
* Add a comment to indicate where the event
, this value is passed through one of the SoC's
backup register. Add a function to read the boot index value from the
backup register.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Acked-by: Ilias Apalodimas
---
Changes since V9:
* Change the fwu_plat_get_bootidx() function to take an uint
. The function to get the dfu alternate
number has been added for platforms with GPT partitioned storage
devices. Platforms with other storage partition scheme need to
implement their own function.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Acked-by: Etienne Carriere
---
Changes
Enabling capsule update functionality on the platform requires
populating information on the images that are to be updated using the
functionality. Do so for the DK2 board.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Ilias Apalodimas
---
Changes since V9:
* Remove
The FWU metadata structure is accessed through the driver model
interface. On the stm32mp157c-dk2 board, the FWU metadata is stored on
the uSD card. Add the fwu-mdata node on the u-boot specifc dtsi file
for accessing the metadata structure.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick
based partition scheme.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Etienne Carriere
---
Changes since V9:
* s/formated/formatted in the commit message
* Add a '\n' character in the log message
drivers/fwu-mdata/Kconfig | 16 ++
drivers/fwu-mdata/Makefile | 8
, and implementations can be added based on parameters
like how the metadata partition is accessed and what type of storage
device houses the metadata.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Reviewed-by: Etienne Carriere
---
Changes since V9:
* Add a helper function fwu_get_dev_mdata
devices.
Signed-off-by: Sughosh Ganu
Reviewed-by: Heinrich Schuchardt
Acked-by: Etienne Carriere
Reviewed-by: Ilias Apalodimas
---
Changes since V9: None
.../firmware/fwu-mdata-gpt.yaml | 32 +++
1 file changed, 32 insertions(+)
create mode 100644 doc/device-tree
an uint * as the
function parameter instead of the void * as suggested by Etienne.
Sughosh Ganu (15):
dt/bindings: Add bindings for GPT based FWU Metadata storage device
FWU: Add FWU metadata structure and driver for accessing metadata
FWU: Add FWU metadata access driver for GPT partitioned
Enable the UEFI capsule update functionality on the RockPi4B and
RockPi4C boards. Support is being enabled for updating the idbloader
and u-boot firmware images residing on GPT partitioned uSD card
storage device.
Signed-off-by: Sughosh Ganu
---
Changes since V2: None
configs/rock-pi-4
Add information that will be needed for enabling the UEFI capsule
update feature on the RockPi4 boards. With the feature enabled, it
would be possible to update the idbloader and u-boot.itb images on the
RockPi4B and RockPi4C variants.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* Add
Add functions needed to support the UEFI capsule update feature on
rockchip boards. Currently, the feature is being enabled on the
RockPi4 boards with firmware images residing on GPT partitioned
storage media.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* Use rockchip in the commit message
summary instead of rockpi
* Use num_image_type_guids instead of ROCKPI4_UPDATABLE_IMAGES macro
* Move the board specific code out of this file into evb_rk3399.c
* Add a function rockchip_capsule_update_board_setup() for setting up
the board specific part needed for capsule updates
Sughosh Ganu (3
I capsule update feature on
> > rockchip boards. Currently, the feature is being enabled on the
> > RockPi4 boards with firmware images residing on GPT partitioned
> > storage media.
> >
> > Signed-off-by: Sughosh Ganu
> > ---
> > Changes since V1:
> > * Move the
hi Peter,
On Fri, 9 Sept 2022 at 18:12, Peter Robinson wrote:
>
> On Tue, Sep 6, 2022 at 7:59 AM Sughosh Ganu wrote:
> >
> > Add information that will be needed for enabling the UEFI capsule
> > update feature on the RockPi4 boards. With the feature enabled, it
> &g
hi Kever,
On Fri, 9 Sept 2022 at 15:38, Kever Yang wrote:
>
> Hi Sughosh,
>
> On 2022/9/2 15:52, Sughosh Ganu wrote:
> > hi Kever,
> >
> > On Wed, 29 Jun 2022 at 09:11, Kever Yang wrote:
> >> Hi Sughosh,
> >>
> >>Thanks for you
hi Takahiro,
On Thu, 8 Sept 2022 at 07:45, Takahiro Akashi
wrote:
>
> Hi Sughosh,
>
> On Fri, Aug 26, 2022 at 03:27:11PM +0530, Sughosh Ganu wrote:
> > The FWU Multi Bank Update feature supports updation of firmware images
> > to one of multiple sets(also called banks)
hi Ilias,
On Wed, 7 Sept 2022 at 11:29, Ilias Apalodimas
wrote:
>
> On Fri, Aug 26, 2022 at 03:27:07PM +0530, Sughosh Ganu wrote:
> > Add weak functions for getting the update index value and dfu
> > alternate number needed for FWU Multi Bank update
> > functional
hi Ilias,
On Wed, 7 Sept 2022 at 12:15, Ilias Apalodimas
wrote:
>
> Hi Sughosh,
>
> On Fri, Aug 26, 2022 at 03:27:03PM +0530, Sughosh Ganu wrote:
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of the m
hi Etienne,
On Tue, 6 Sept 2022 at 13:07, Sughosh Ganu wrote:
>
> hi Etienne,
>
> On Tue, 6 Sept 2022 at 12:57, Etienne Carriere
> wrote:
> >
> > Hi Sughosh,
> >
> > I have a last comment on this series, related to the below patch and
> > patch &quo
hi Etienne,
On Tue, 6 Sept 2022 at 12:57, Etienne Carriere
wrote:
>
> Hi Sughosh,
>
> I have a last comment on this series, related to the below patch and
> patch "test: dm: Add test cases for FWU Metadata uclass".
>
> On Fri, 26 Aug 2022 at 11:58, Sughosh Ganu wr
hi Etienne,
On Tue, 6 Sept 2022 at 12:31, Etienne Carriere
wrote:
>
> Hi Sughosh,
>
> Reviewed-by: Etienne Carriere with
> comment addressed.
Will address both your review comments. Thanks.
-sughosh
>
>
> On Fri, 26 Aug 2022 at 11:57, Sughosh Ganu wrote:
> >
&g
hi Etienne,
On Tue, 6 Sept 2022 at 12:31, Etienne Carriere
wrote:
>
> Hi Sughosh,
>
> Reviewed-by: Etienne Carriere with a
> minor comment.
>
>
> On Fri, 26 Aug 2022 at 11:58, Sughosh Ganu wrote:
> >
> > The FWU Multi Bank Update specification requires the U
hi Etienne,
On Tue, 6 Sept 2022 at 00:49, Etienne Carriere
wrote:
>
> Hello Sughosh,
>
> On Fri, 26 Aug 2022 at 11:57, Sughosh Ganu wrote:
> >
> > Enabling capsule update functionality on the platform requires
> > populating information on the image
Enable the UEFI capsule update functionality on the RockPi4B and
RockPi4C boards. Support is being enabled for updating the idbloader
and u-boot firmware images residing on GPT partitioned storage
devices.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Split the enabling of the feature
Add information that will be needed for enabling the UEFI capsule
update feature on the RockPi4 boards. With the feature enabled, it
would be possible to update the idbloader and u-boot.itb images on the
RockPi4B and RockPi4C variants.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Split
Add functions needed to support the UEFI capsule update feature on
rockchip boards. Currently, the feature is being enabled on the
RockPi4 boards with firmware images residing on GPT partitioned
storage media.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Move the capsule update related
of EFI variables.
Sughosh Ganu (3):
rockpi4: capsule: Add functions needed for supporting capsule updates
rockpi4: board: Add firmware image information needed for capsule
updates
rockpi4: capsule: Enable UEFI capsule update on RockPi4 boards
arch/arm/mach-rockchip/Kconfig | 1
hi Kever,
On Wed, 29 Jun 2022 at 09:11, Kever Yang wrote:
>
> Hi Sughosh,
>
> Thanks for your patch.
>
> On 2022/5/16 14:12, Sughosh Ganu wrote:
> > hi Peter,
> >
> > On Sat, 14 May 2022 at 13:44, Peter Robinson wrote:
> >> On Fri, May
Add documentation for the FWU Multi Bank Update feature. The document
describes the steps needed for setting up the platform for the
feature, as well as steps for enabling the feature on the platform.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
Reviewed-by: Simon Glass
-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
---
Changes since V8: None
doc/mkeficapsule.1 | 4
tools/mkeficapsule.c | 17 ++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/doc/mkeficapsule.1 b/doc/mkeficapsule.1
index 77ca061efd..6fb2dd0810 100644
--- a/doc
--
the FIT capsule test will be run on the sandbox_flattree variant.
Signed-off-by: Sughosh Ganu
Suggested-by: Heinrich Schuchardt
---
Changes since V8: New patch
arch/sandbox/Kconfig | 6 +
arch/sandbox/dts/test.dts | 7 +-
board/sandbox
://git.codelinaro.org/linaro/dependable-boot/mbfw/uploads/6f7ddfe3be24e18d4319e108a758d02e/mbfw.pdf
Signed-off-by: Sughosh Ganu
---
Changes since V8: None
doc/mkeficapsule.1 | 29 +
tools/eficapsule.h | 8
tools/mkeficapsule.c | 96
3 files
to set the updated bank as active
bank to subsequently boot from.
Signed-off-by: Sughosh Ganu
---
Changes since V8:
* Add comments for API functions
* Move addition of the FWU Kconfig symbols and Makefile to this patch
drivers/Kconfig | 2 +
drivers/Makefile | 1
Add a command to read the metadata as specified in the FWU
specification and print the fields of the metadata.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
---
Changes since V8: None
cmd/Kconfig | 6
cmd/Makefile| 1 +
cmd/fwu_mdata.c | 79
. If the system boots
in the Trial State for more than a specified number of boot counts,
change the Active Bank to be booting the platform from.
Call these checks through the main loop event at the time of platform
boot.
Signed-off-by: Sughosh Ganu
---
Changes since V8:
* Call fwu_boottime_checks
Add an event type EVT_MAIN_LOOP that can be used for registering
events that need to be run after the platform has been initialised and
before the main_loop function is called.
Signed-off-by: Sughosh Ganu
---
Changes since V8: New patch
common/board_r.c | 3 +++
common/event.c | 3
, this value is passed through one of the SoC's
backup register. Add a function to read the boot index value from the
backup register.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
Acked-by: Ilias Apalodimas
---
Changes since V8: None
arch/arm/mach-stm32mp/include/mach/stm32.h | 5
. The function to get the dfu alternate
number has been added for platforms with GPT partitioned storage
devices. Platforms with other storage partition scheme need to
implement their own function.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
---
Changes since V8:
* Add comments
Enabling capsule update functionality on the platform requires
populating information on the images that are to be updated using the
functionality. Do so for the DK2 board.
Signed-off-by: Sughosh Ganu
---
Changes since V8:
* Use STM32MP_FIP_IMAGE_GUID for the FIP GUID value as suggested
based partition scheme.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
---
Changes since V8:
* Rename fwu_mdata_gpt_blk.c as gpt_blk.c as suggested by Simon
* Use natural integer types instead of specific width integers as
suggested by Simon
* Fix return codes as suggested by Simon
The FWU metadata structure is accessed through the driver model
interface. On the stm32mp157c-dk2 board, the FWU metadata is stored on
the uSD card. Add the fwu-mdata node on the u-boot specifc dtsi file
for accessing the metadata structure.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick
, and implementations can be added based on parameters
like how the metadata partition is accessed and what type of storage
device houses the metadata.
Signed-off-by: Sughosh Ganu
Reviewed-by: Patrick Delaunay
---
Changes since V8:
* Declare the metadata struct on the stack rather than heap
* Move the API's
devices.
Signed-off-by: Sughosh Ganu
Reviewed-by: Heinrich Schuchardt
---
Changes since V8: None
.../firmware/fwu-mdata-gpt.yaml | 32 +++
1 file changed, 32 insertions(+)
create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata-gpt.yaml
diff --git a/doc/device
to this patch
* Fixed spelling mistake in the commit message
Sughosh Ganu (15):
dt/bindings: Add bindings for GPT based FWU Metadata storage device
FWU: Add FWU metadata structure and driver for accessing metadata
FWU: Add FWU metadata access driver for GPT partitioned block devices
stm32mp1
hi Simon,
On Fri, 19 Aug 2022 at 20:55, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Fri, 19 Aug 2022 at 01:41, Sughosh Ganu wrote:
> >
> > hi Simon,
> >
> > On Thu, 18 Aug 2022 at 23:19, Simon Glass wrote:
> > >
> > > Hi Sughosh,
501 - 600 of 1494 matches
Mail list logo