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
le 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
stm
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,
is adding
support for the feature on MTD partition based devices and enabling
the feature on the Synquacer board.
-sughosh
>
> Best regards
>
> Heinrich
>
> >
> > Jassi Brar (2):
> >dt: fwu: developerbox: enable fwu banks and mdata regions
> >fwu: DeveloperBox: a
hi Simon,
On Fri, 19 Aug 2022 at 20:53, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Fri, 19 Aug 2022 at 07:36, Sughosh Ganu wrote:
> >
> > hi Simon,
> >
> > On Thu, 18 Aug 2022 at 23:20, Simon Glass wrote:
> > >
> > > pHi Sughosh,
hi Simon,
On Thu, 18 Aug 2022 at 23:20, Simon Glass wrote:
>
> pHi Sughosh,
>
> On Thu, 18 Aug 2022 at 05:03, Sughosh Ganu wrote:
> >
> > hi Simon,
> >
> > On Thu, 18 Aug 2022 at 06:43, Simon Glass wrote:
> > >
> > > Hi Sughosh,
hi Simon,
On Thu, 18 Aug 2022 at 23:19, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Thu, 18 Aug 2022 at 05:53, Sughosh Ganu wrote:
> >
> > hi Simon,
> >
> > On Thu, 18 Aug 2022 at 08:51, Simon Glass wrote:
> > >
> > > Hi Sugosh,
hi Simon,
On Thu, 18 Aug 2022 at 23:19, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Thu, 18 Aug 2022 at 05:39, Sughosh Ganu wrote:
> >
> > hi Simon,
> >
> > On Thu, 18 Aug 2022 at 08:51, Simon Glass wrote:
> > >
> > > Hi Sughosh,
hi Yann,
On Thu, 18 Aug 2022 at 13:35, Yann Gautier wrote:
>
> On 8/17/22 14:43, Sughosh Ganu wrote:
> > Enabling capsule update functionality on the platform requires
> > populating information on the images that are to be updated using the
> > functionality.
hi Simon,
On Thu, 18 Aug 2022 at 08:51, Simon Glass wrote:
>
> Hi Sugosh,
>
> On Wed, 17 Aug 2022 at 06:44, Sughosh Ganu wrote:
> >
> > Add a command to read the metadata as specified in the FWU
> > specification and print the fields of the metadata.
>
hi Simon,
On Thu, 18 Aug 2022 at 08:51, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Wed, 17 Aug 2022 at 06:44, Sughosh Ganu wrote:
> >
> > The FWU Multi Bank Update specification requires the Update Agent to
> > carry out certain checks at the time of platform boo
hi Simon,
On Thu, 18 Aug 2022 at 08:51, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Wed, 17 Aug 2022 at 06:44, Sughosh Ganu wrote:
> >
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of the metadata, on a
hi Simon,
On Thu, 18 Aug 2022 at 06:43, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Wed, 17 Aug 2022 at 06:44, Sughosh Ganu wrote:
> >
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of the metadata, whic
On Wed, 17 Aug 2022 at 22:30, Jassi Brar wrote:
>
> On Wed, 17 Aug 2022 at 07:44, Sughosh Ganu wrote:
> .
> > diff --git a/lib/fwu_updates/fwu.c b/lib/fwu_updates/fwu.c
> > new file mode 100644
> > index 00..9808036eec
> > --- /dev/null
> >
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 V7:
* Handle the various review comments from
: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
---
Changes since V7: 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 V7:
* Modify the logic to check the setting of both -A and -R options
being passed to the tool, as suggested by Ilias.
doc/mkeficapsule.1 | 29
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 V7: None
cmd/Kconfig | 7 +
cmd/Makefile| 1 +
cmd/fwu_mdata.c | 80
set the updated bank as active
bank to subsequently boot from.
Signed-off-by: Sughosh Ganu
---
Changes since V7:
* Introduce a new function fwu_to_efi_error() and check for all errors
returned by the fwu API's through this function, as suggested by
Ilias.
* Call fwu_trial_state_ctr_start()
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.
Add these checks in the board initialisation sequence, invoked after
relocation.
Signed-off-by: Sughosh Ganu
---
Changes since V7:
* Introduce
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 V7: None
arch/arm/mach-stm32mp/include/mach/stm32.h
ction. 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 V7:
* Moved the
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 V7: None
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
---
Changes since V7: None
drivers/fwu-mdata/Kconfig | 9 +
drivers/fwu-mdata/Makefile| 1 +
drivers/fwu-mdata/fwu_mdata_gpt_blk.c | 410 ++
include/fwu.h
, 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 V7:
* Rephrased the error message in fwu_update_active_index as per
sugge
devices.
Signed-off-by: Sughosh Ganu
Reviewed-by: Heinrich Schuchardt
---
Changes since V7: 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
the OS is supposed to
accept/reject the updated images.
* Modify the logic to check the setting of both -A and -R options
being passed to the tool, as suggested by Ilias.
* Handle the various review comments from Heinrich.
Sughosh Ganu (13):
dt/bindings: Add bindings for GPT based FWU Metada
hi Ilias,
On Wed, 20 Jul 2022 at 13:06, Ilias Apalodimas
wrote:
>
> Hi Sughosh,
>
> >
> > > + nimages = CONFIG_FWU_NUM_IMAGES_PER_BANK;
> > > + active_bank = mdata->active_index;
> > > + img_entry = &mdata->img_entry[0];
> > > + for (i = 0; i < nimages; i++) {
> > > +
ar (2):
> dt: fwu: developerbox: enable fwu banks and mdata regions
> fwu: DeveloperBox: add support for FWU
>
> Sughosh Ganu (3):
> dt/bindings: Add bindings for FWU Metadata mtd storage
> FWU: Add FWU metadata access driver for MTD storage regions
> FWU: mtd: Add help
On Fri, 22 Jul 2022 at 23:13, wrote:
>
> From: Sughosh Ganu
>
> Add bindings needed for accessing the FWU metadata regions.
> These include the compatible string which point to the access
> method, the actual device which stores the FWU metadata and
> the offsets for
On Fri, 22 Jul 2022 at 09:09, Jassi Brar wrote:
>
> On Thu, 14 Jul 2022 at 13:40, Sughosh Ganu wrote:
> >
> > Add helper functions needed for accessing the FWU metadata which
> > contains information on the updatable images. These functions have
> > been added for t
The 'rng' command dumps a number of random bytes on the console. Add a
set of tests for the 'rng' command. The test function performs basic
sanity testing of the command.
Since a unit test is being added for the command, enable it by default
in the sandbox platforms.
Signed-
Add a usage document for the 'rng' u-boot command.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
Reviewed-by: Simon Glass
---
Changes since V7: None
doc/usage/cmd/rng.rst | 26 ++
doc/usage/index.rst | 1 +
2 files changed, 27 insertions(+)
c
Use a statically allocated buffer on stack instead of using malloc for
reading the random bytes. Using a local array is faster than
allocating heap memory on every initiation of the command.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
Reviewed-by: Simon Glass
---
Changes since V7
udo device through the TPM chip.
Extend the 'rng' command so that the user can provide the RNG device
number from which the random bytes are to be read. This will be the
device index under the RNG uclass.
Signed-off-by: Sughosh Ganu
Tested-by: Heinrich Schuchardt
Reviewed-by: Ilias Apa
added.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
---
Changes since V7:
* Added a paragraph in the commit message highlighting the absence of
the compatible string in the RNG driver, as suggested by Simon.
* Rearranged the inclusion of headers as per the coding style
to comply with the driver model api.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
---
Changes since V7: None
drivers/rng/Kconfig | 9 +
drivers/rng/Makefile | 1 +
drivers/rng/tpm_rng.c | 23 +++
lib/Kconfig | 1 +
lib/tpm_api.c
From: Ilias Apalodimas
Due to U-Boot's lazy binding the RNG presented by the TCG is not available
until the EFI_TCG2 protocol has been initialized. Since the TPM has a
built-in RNG device we can use for the OS randomization, move the RNG
protocol installation after the TCG.
Signed-off-by: Ilias
From: Simon Glass
These functions should really be available outside the TPM code, so that
other callers can find out which version the TPM is. Rename them to have
a tpm_ prefix() and add them to the header file.
Signed-off-by: Simon Glass
Reviewed-by: Ilias Apalodimas
---
Changes since V7: No
:
tpm: Export the TPM-version functions
Sughosh Ganu (6):
tpm: rng: Add driver model interface for TPM RNG device
tpm: Add the RNG child device
cmd: rng: Add support for selecting RNG device
cmd: rng: Use a statically allocated array for random bytes
doc: rng: Add documentation for
anks.
-sughosh
>
> Thanks
> /Ilias
>
> On Wed, 20 Jul 2022 at 15:30, Sughosh Ganu wrote:
> >
> > Use a statically allocated buffer on stack instead of using malloc for
> > reading the random bytes. Using a local array is faster than
> > allocating heap memory on
The 'rng' command dumps a number of random bytes on the console. Add a
set of tests for the 'rng' command. The test function performs basic
sanity testing of the command.
Since a unit test is being added for the command, enable it by default
in the sandbox platforms.
Signed-
Add a usage document for the 'rng' u-boot command.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
Reviewed-by: Simon Glass
---
Changes since V6: None
doc/usage/cmd/rng.rst | 26 ++
doc/usage/index.rst | 1 +
2 files changed, 27 insertions(+)
c
Use a statically allocated buffer on stack instead of using malloc for
reading the random bytes. Using a local array is faster than
allocating heap memory on every initiation of the command.
Signed-off-by: Sughosh Ganu
---
Changes since V6: None
cmd/rng.c | 17 +++--
1 file changed
udo device through the TPM chip.
Extend the 'rng' command so that the user can provide the RNG device
number from which the random bytes are to be read. This will be the
device index under the RNG uclass.
Signed-off-by: Sughosh Ganu
Tested-by: Heinrich Schuchardt
Reviewed-by: Ilias Apa
randomisation through the
EFI_RNG_PROTOCOL interface.
Signed-off-by: Sughosh Ganu
---
Changes since V6: None
drivers/tpm/tpm-uclass.c | 37 +
1 file changed, 33 insertions(+), 4 deletions(-)
diff --git a/drivers/tpm/tpm-uclass.c b/drivers/tpm/tpm-uclass.c
index
to comply with the driver model api.
Signed-off-by: Sughosh Ganu
---
Changes since V6:
* Remove the changes made in tpm-v[12].c to return -EIO instead of
TPM_LIB_ERROR as suggested by Simon
drivers/rng/Kconfig | 9 +
drivers/rng/Makefile | 1 +
drivers/rng/tpm_rng.c | 23
From: Simon Glass
These functions should really be available outside the TPM code, so that
other callers can find out which version the TPM is. Rename them to have
a tpm_ prefix() and add them to the header file.
Signed-off-by: Simon Glass
---
Changes since V6: None
include/tpm_api.h | 10 +++
rsion functions
Sughosh Ganu (6):
tpm: rng: Add driver model interface for TPM RNG device
tpm: Add the RNG child device
cmd: rng: Add support for selecting RNG device
cmd: rng: Use a statically allocated array for random bytes
doc: rng: Add documentation for the rng command
test: rng: Add a
hi Ilias,
On Fri, 15 Jul 2022 at 22:11, Ilias Apalodimas
wrote:
>
> Hi Sughosh,
>
> On Thu, 14 Jul 2022 at 21:40, Sughosh Ganu wrote:
> >
> > Add support for setting OEM flags in the capsule header. As per the
> > UEFI specification, bits 0-15 of the flags member
On Sun, 17 Jul 2022 at 02:43, Jassi Brar wrote:
>
> On Thu, 14 Jul 2022 at 13:39, Sughosh Ganu wrote:
> >
> > Add bindings needed for accessing the FWU metadata partitions. These
> > include the compatible string which point to the access method and the
> > actu
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 V6: None
doc/develop/uefi/fwu_updates.rst
: Sughosh Ganu
---
Changes since V6: 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/mkeficapsule.1
+++ b/doc
://git.codelinaro.org/linaro/dependable-boot/mbfw/uploads/6f7ddfe3be24e18d4319e108a758d02e/mbfw.pdf
Signed-off-by: Sughosh Ganu
---
Changes since V6: None
doc/mkeficapsule.1 | 29 ++
tools/eficapsule.h | 8
tools/mkeficapsule.c | 92
3 files
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
---
Changes since V6: None
cmd/Kconfig | 7 +
cmd/Makefile| 1 +
cmd/fwu_mdata.c | 80 +
3
set the updated bank as active
bank to subsequently boot from.
Signed-off-by: Sughosh Ganu
---
Changes since V6: None
include/fwu.h| 10 ++
lib/Kconfig | 6 +
lib/Makefile | 1 +
lib/efi_loader/efi_capsule.c | 231
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.
Add these checks in the board initialisation sequence, invoked after
relocation.
Signed-off-by: Sughosh Ganu
---
Changes since V6: None
common/board_r.c
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
---
Changes since V6: None
arch/arm/mach-stm32mp/include/mach/stm32.h | 5 +
board/st/stm32mp1/stm32
Add helper functions needed for accessing the FWU metadata which
contains information on the updatable images. These functions have
been added for the STM32MP157C-DK2 board which has the updatable
images on the uSD card, formatted as GPT partitions.
Signed-off-by: Sughosh Ganu
Reviewed-by
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
---
Changes since V6:
* s/STM32MP1/STM32MP15/ as suggested by
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
---
Changes since V6:
* Define the LOG_CATEGORY macro as suggested by Patrick
drivers/fwu-mdata/Kconfig | 9 +
drivers/fwu-mdata/Makefile| 1 +
drivers/fwu-mdata/fwu_mdata_gpt_blk.c
, 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 V6:
* Define the LOG_CATEGORY macro as suggested by Patrick
* Add
devices.
Signed-off-by: Sughosh Ganu
---
Changes since V6: None
.../firmware/fwu-mdata.yaml | 32 +++
1 file changed, 32 insertions(+)
create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata.yaml
diff --git a/doc/device-tree-bindings/firmware/fwu-mdata.yaml
Sughosh Ganu (13):
dt/bindings: Add bindings for 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: dk2: Add a node for the FWU metadata device
stm32mp1: dk2: Add image
hi Patrick,
On Wed, 13 Jul 2022 at 18:42, Patrick DELAUNAY
wrote:
>
> Hi,
>
> On 7/4/22 07:16, Sughosh Ganu wrote:
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of the metadata, which is stored on
> >
hi Patrick,
On Wed, 13 Jul 2022 at 18:47, Patrick DELAUNAY
wrote:
>
> Hi,
>
> On 7/4/22 07:16, Sughosh Ganu wrote:
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of the metadata, on a separate
> > parti
hi Simon,
On Tue, 5 Jul 2022 at 15:17, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Mon, 4 Jul 2022 at 07:35, Sughosh Ganu wrote:
> >
> > The TPM device has a builtin random number generator(RNG)
> > functionality. Expose the RNG functions of the TPM device to the
>
ewed-by: Simon Glass
Signed-off-by: Sughosh Ganu
---
cmd/Kconfig | 1 +
test/dm/rng.c | 29 +
2 files changed, 30 insertions(+)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 09193b61b9..eee5d44348 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1916,6 +1916,7 @@ config
Add a usage document for the 'rng' u-boot command.
Reviewed-by: Ilias Apalodimas
Reviewed-by: Simon Glass
Signed-off-by: Sughosh Ganu
---
Changes since V5: None
doc/usage/cmd/rng.rst | 26 ++
doc/usage/index.rst | 1 +
2 files changed, 27 insertions(+)
c
Use a statically allocated buffer on stack instead of using malloc for
reading the random bytes. Using a local array is faster than
allocating heap memory on every initiation of the command.
Signed-off-by: Sughosh Ganu
---
Changes since V5: None
cmd/rng.c | 17 +++--
1 file changed
udo device through the TPM chip.
Extend the 'rng' command so that the user can provide the RNG device
number from which the random bytes are to be read. This will be the
device index under the RNG uclass.
Tested-by: Heinrich Schuchardt
Reviewed-by: Ilias Apalodimas
Signed-off-by: Sugho
randomisation through the
EFI_RNG_PROTOCOL interface.
Signed-off-by: Sughosh Ganu
---
Changes since V5:
* Check if the TPM RNG device has already been added, through a call
to device_find_first_child_by_uclass()
drivers/tpm/tpm-uclass.c | 37 +
1 file changed, 33
to comply with the driver model api.
Signed-off-by: Sughosh Ganu
---
Changes since V5:
* Use the dev_get_parent() interface for getting the TPM device when
calling the tpm_get_random() function
drivers/rng/Kconfig | 11 +++
drivers/rng/Makefile | 1 +
drivers/rng/tpm_rng.c | 23
rsion functions
Sughosh Ganu (6):
tpm: rng: Add driver model interface for TPM RNG device
tpm: Add the RNG child device
cmd: rng: Add support for selecting RNG device
cmd: rng: Use a statically allocated array for random bytes
doc: rng: Add documentation for the rng command
test: rng: Add a
From: Simon Glass
These functions should really be available outside the TPM code, so that
other callers can find out which version the TPM is. Rename them to have
a tpm_ prefix() and add them to the header file.
Signed-off-by: Simon Glass
---
Changes since V5: None
include/tpm_api.h | 10 +++
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 V5:
* Add some description about the reasoning
: Sughosh Ganu
---
Changes since V5: 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/mkeficapsule.1
+++ b/doc
://git.codelinaro.org/linaro/dependable-boot/mbfw/uploads/6f7ddfe3be24e18d4319e108a758d02e/mbfw.pdf
Signed-off-by: Sughosh Ganu
---
Changes since V5:
* Use capsule_type instead of capsule variable that was created
earlier to check for the type of capsule
* Remove use of payload variable in
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
---
Changes since V5:
* Do a metadata validity check by calling fwu_mdata_check() before
printing the FWU metadata as suggested by Michal
* Use ret and res
set the updated bank as active
bank to subsequently boot from.
Signed-off-by: Sughosh Ganu
---
Changes since V5:
* Use u"TrialStateCtr" as suggested by Patrick
include/fwu.h| 10 ++
lib/Kconfig | 6 +
lib/Makefile | 1 +
lib/
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.
Add these checks in the board initialisation sequence, invoked after
relocation.
Signed-off-by: Sughosh Ganu
---
Changes since V5:
* Use u"TrialSta
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
---
Changes since V5:
* Shuffled the location of the TAMP_FWU_* macros as suggested by
Patrick
arch/arm
Add helper functions needed for accessing the FWU metadata which
contains information on the updatable images. These functions have
been added for the STM32MP157C-DK2 board which has the updatable
images on the uSD card, formatted as GPT partitions.
Signed-off-by: Sughosh Ganu
---
Changes since
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 V5: None
board/st/stm32mp1/stm32mp1.c | 19
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
---
Changes since V5:
* Changed the logic to store the GPT partitioned block device through
a priv structure as suggested by Patrick
* Used dev_read_prop() to get the phandle_p instead of
ofnode_get_property() used earlier as suggested by
, 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
---
Changes since V5:
* Change the parameter to the function fwu_plat_get_alt_num to pass
the FWU udevice pointer inste
devices.
Signed-off-by: Sughosh Ganu
---
Changes since V5:
* Changed to yaml file from txt as per review comment
.../firmware/fwu-mdata.yaml | 32 +++
1 file changed, 32 insertions(+)
create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata.yaml
diff --git a
ed by Etienne
* Initialise the struct efi_capsule_header as suggested by Etienne
* Add some description about the reasoning for accept capsule needing
image GUID as suggested by Takahiro
Sughosh Ganu (13):
dt/bindings: Add bindings for FWU Metadata storage device
FWU: Add FWU metadata stru
hi Etienne,
On Thu, 23 Jun 2022 at 18:02, Etienne Carriere
wrote:
>
> Hi Sughosh,
>
> On Thu, 23 Jun 2022 at 11:46, Sughosh Ganu wrote:
> >
> > hi Etienne,
> >
> > On Tue, 21 Jun 2022 at 16:26, Etienne Carriere
> > wrote:
> > >
> > >
hi Etienne,
On Tue, 21 Jun 2022 at 16:26, Etienne Carriere
wrote:
>
> Hello Sughosh,
>
> On Thu, 9 Jun 2022 at 14:30, Sughosh Ganu wrote:
> >
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of the metadat
.
On Tue, 21 Jun 2022 at 15:04, Patrick DELAUNAY
wrote:
>
> Hi,
>
> On 6/9/22 14:29, Sughosh Ganu wrote:
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of the metadata, on a separate
> > partition. Add a driver f
hi Patrick,
On Tue, 21 Jun 2022 at 17:16, Patrick DELAUNAY
wrote:
>
> Hi,
>
>
> On 6/9/22 14:29, Sughosh Ganu wrote:
> > The FWU Multi Bank Update specification requires the Update Agent to
> > carry out certain checks at the time of platform boot. The Update
> >
hi Etienne,
On Tue, 21 Jun 2022 at 16:26, Etienne Carriere
wrote:
>
> Hi Sughosh,
>
> On Thu, 9 Jun 2022 at 14:31, Sughosh Ganu wrote:
> >
> > The FWU Multi Bank Update specification requires the Update Agent to
> > carry out certain checks at the time of platform
On Tue, 21 Jun 2022 at 16:57, Patrick DELAUNAY
wrote:
>
> Hi,
>
> On 6/9/22 14:29, Sughosh Ganu wrote:
> > The FWU Multi Bank Update feature allows the platform to boot the
> > firmware images from one of the partitions(banks). The first stage
> > bootloader(fsbl
hi Etienne,
On Tue, 21 Jun 2022 at 16:24, Etienne Carriere
wrote:
>
> Hello Sughosh,
>
>
>
> On Thu, 9 Jun 2022 at 14:30, Sughosh Ganu wrote:
> >
> > In the FWU Multi Bank Update feature, the information about the
> > updatable images is stored as part of th
On Tue, 21 Jun 2022 at 15:19, Patrick DELAUNAY
wrote:
>
> Hi,
>
> On 6/9/22 14:29, Sughosh Ganu wrote:
> > Add helper functions needed for accessing the FWU metadata which
> > contains information on the updatable images. These functions have
> > been added for the S
hi,
On Mon, 20 Jun 2022 at 23:42, Patrick DELAUNAY
wrote:
>
> Hi,
>
> On 6/9/22 14:29, Sughosh Ganu wrote:
> > The patchset adds support for the FWU Multi Bank Update[1]
> > feature. Certain aspects of the Dependable Boot[2] specification have
> > also been impl
1001 - 1100 of 1903 matches
Mail list logo