hi Heinrich,
On Fri, 19 Apr 2024 at 13:01, Heinrich Schuchardt wrote:
>
> On 19.04.24 08:55, Sughosh Ganu wrote:
> > The UEFI capsule can now be generated by specifying the capsule
> > parameters through a config file. Highlight these changes in the
> > documenta
hi Heinrich,
On Fri, 19 Apr 2024 at 12:44, Heinrich Schuchardt wrote:
>
> On 19.04.24 08:55, Sughosh Ganu wrote:
> > Add support for specifying the parameters needed for capsule
> > generation through a config file, instead of passing them through
> > command-line.
On Fri, 19 Apr 2024 at 17:23, Chintan Vankar wrote:
>
>
>
> On 19/04/24 17:04, Sughosh Ganu wrote:
> > On Fri, 19 Apr 2024 at 16:04, Chintan Vankar wrote:
> >>
> >>
> >>
> >> On 18/04/24 17:30, Sughosh Ganu wrote:
>
On Fri, 19 Apr 2024 at 16:04, Chintan Vankar wrote:
>
>
>
> On 18/04/24 17:30, Sughosh Ganu wrote:
> > On Thu, 18 Apr 2024 at 16:08, Chintan Vankar wrote:
> >>
> >>
> >>
> >> On 17/04/24 21:34, Tom Rini wrote:
> >>> On Wed, Apr 1
Add logic to generate capsules through a config file while testing the
EFI capsule update functionality. Capsule generation through config
file is enabled on the sandbox variant.
Signed-off-by: Sughosh Ganu
---
test/py/tests/test_efi_capsule/capsule_gen_binman.dts | 2 ++
test/py/tests
the config file on the sandbox
variant.
Signed-off-by: Sughosh Ganu
---
configs/sandbox_defconfig | 2 +
.../test_efi_capsule/sandbox_capsule_cfg.txt | 73 +++
2 files changed, 75 insertions(+)
create mode 100644 test/py/tests/test_efi_capsule
The UEFI capsule can now be generated by specifying the capsule
parameters through a config file. Highlight these changes in the
documentation.
Signed-off-by: Sughosh Ganu
---
doc/develop/uefi/uefi.rst | 70 +++
1 file changed, 70 insertions(+)
diff --git
.
The config file can be passed to the mkeficapsule tool in such manner
$ ./tools/mkeficapsule -f
Signed-off-by: Sughosh Ganu
---
tools/Kconfig | 15 ++
tools/Makefile | 1 +
tools/eficapsule.h | 114
tools/mkeficapsule.c | 87
-November/538223.html
[2] - https://lists.denx.de/pipermail/u-boot/2024-March/548126.html
Sughosh Ganu (4):
tools: mkeficapsule: Add support for parsing capsule params from
config file
doc: Document capsule generation through a config file
sandbox: capsule: Add a config file for generating
On Thu, 18 Apr 2024 at 16:08, Chintan Vankar wrote:
>
>
>
> On 17/04/24 21:34, Tom Rini wrote:
> > On Wed, Apr 17, 2024 at 05:48:31PM +0530, Sughosh Ganu wrote:
> >> hi Chintan,
> >>
> >> On Wed, 17 Apr 2024 at 13:21, Chintan Vankar wrote:
> &
hi Chintan,
On Wed, 17 Apr 2024 at 13:21, Chintan Vankar wrote:
>
>
>
> On 16/04/24 22:30, Tom Rini wrote:
> > On Tue, Apr 16, 2024 at 05:52:58PM +0530, Chintan Vankar wrote:
> >>
> >>
> >> On 12/04/24 03:37, Tom Rini wrote:
> >>> On Wed, Apr 03, 2024 at 06:18:01PM +0530, Chintan Vankar wrote:
>
On Fri, 29 Mar 2024 at 14:04, Jon Humphreys wrote:
>
> Sughosh Ganu writes:
>
> > On Thu, 28 Mar 2024 at 09:34, Jon Humphreys wrote:
> >>
> >> Sughosh Ganu writes:
> >>
> >> > hi Jonathan,
> >> >
> >> > On Wed,
On Thu, 28 Mar 2024 at 09:34, Jon Humphreys wrote:
>
> Sughosh Ganu writes:
>
> > hi Jonathan,
> >
> > On Wed, 27 Mar 2024 at 08:05, Jonathan Humphreys wrote:
> >>
> >> When CONFIG_OF_UPSTREAM is enabled, DTS files are in SOC subdirectories
> &g
A certain set of capsule files are now generated as part of the
sandbox build. Add these files to the CLEAN_FILES list for deletion on
invoking any of the cleanup targets.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion
The sandbox platform build now generates a set of capsules. Put the
related files generated into gitignore.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
.gitignore | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.gitignore b/.gitignore
index 3301481192..94dbeb053c 100644
for generating capsules as part of a platform's
build.
Make corresponding change in the capsule test's configuration to get
these capsules from the build directory.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Fix the typo in the commit message about raw capsules being
generated as part
-by: Sughosh Ganu
---
Changes since V1: None
configs/sandbox64_defconfig | 5 -
configs/sandbox_noinst_defconfig | 2 --
configs/sandbox_spl_defconfig| 2 --
configs/sandbox_vpl_defconfig| 2 --
4 files changed, 11 deletions(-)
diff --git a/configs/sandbox64_defconfig b/configs
generated as part of the build, and not signed capsules.
Sughosh Ganu (4):
sandbox: capsule: remove capsule related configs
sandbox: capsule: binman: generate some capsules as part of build
capsule: add the generated capsules to gitignore
capsule: Makefile: add the generated files
hi Jonathan,
On Wed, 27 Mar 2024 at 08:05, Jonathan Humphreys wrote:
>
> When CONFIG_OF_UPSTREAM is enabled, DTS files are in SOC subdirectories (vs
> the
> top level dts directory), but when CONFIG_EFI_CAPSULE_AUTHENTICATE is enabled,
> the dynamically created dtsi file containing the capsule
A certain set of capsule files are now generated as part of the
sandbox build. Add these files to the CLEAN_FILES list for deletion on
invoking any of the cleanup targets.
Signed-off-by: Sughosh Ganu
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b
The sandbox platform build now generates a set of capsules. Put the
related files generated into gitignore.
Signed-off-by: Sughosh Ganu
---
.gitignore | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.gitignore b/.gitignore
index 3301481192..94dbeb053c 100644
--- a/.gitignore
+++ b
capsules as part of a platform's build.
Make corresponding change in the capsule test's configuration to get
these signed capsules from the build directory.
Signed-off-by: Sughosh Ganu
---
arch/sandbox/dts/sandbox.dts | 4 +
arch/sandbox/dts/sandbox_capsule.dtsi | 169
-by: Sughosh Ganu
---
configs/sandbox64_defconfig | 5 -
configs/sandbox_noinst_defconfig | 2 --
configs/sandbox_spl_defconfig| 2 --
configs/sandbox_vpl_defconfig| 2 --
4 files changed, 11 deletions(-)
diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig
index
of the
capsule configs from all the sandbox variants which do not run the
capsule update tests. This restricts the generation of capsules only
on the two variants which are used for testing the functionality.
Sughosh Ganu (4):
sandbox: capsule: remove capsule related configs
sandbox: capsule: binman
Now that support for FWU metadata version 2 has been added, the
feature can be enabled on platforms which had enabled it. A new config
symbol for selecting the metadata version for the platform is also
being added.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* Add config symbol
Add an entry for the FWU Multi Bank Update feature.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* New patch
MAINTAINERS | 8
1 file changed, 8 insertions(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index cd9b2d42e8..5409b1d78a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1147,6
The FWU Update Agent in U-Boot supports both versions of the FWU
metadata. Make changes in the documentation to reflect this.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* Changes to indicate support for both v1 and v2 instead of only v2.
doc/board/socionext/developerbox.rst | 7
to the tool's manpage.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* Added documentation changes.
doc/mkfwumdata.1 | 7
tools/mkfwumdata.c | 99 +++---
2 files changed, 91 insertions(+), 15 deletions(-)
diff --git a/doc/mkfwumdata.1 b/doc
Make changes to the FWU metadata access tests corresponding to the
changes in the FWU metadata access code.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* Make changes to have the test work with v1 metadata.
* Make changes to have the test work with updated logic in fwu code.
test/dm
Add support for generating the FWU metadata version 2. The tool now
requires the version to be provided as a command-line option. Make
corresponding changes to the tool's manpage.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* Support both metadata versions instead of only v2.
doc
Add support for displaying data specific to FWU metadata version
2. Because the size of the v2 metadata structure is read from the
structure itself, allocate memory for the metadata structure by first
getting the size of the structure.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* Earlier
.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* New patch
lib/fwu_updates/fwu_mtd.c | 14 +-
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/lib/fwu_updates/fwu_mtd.c b/lib/fwu_updates/fwu_mtd.c
index f4e0e3107b..e8211dd5ba 100644
--- a/lib/fwu_updates/fwu_mtd.c
+++ b
Information about FWU images on MTD partitions is now stored with the
corresponding driver instead of a global variable. Get this
information from the driver.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* New patch
lib/fwu_updates/fwu_mtd.c | 17 +++--
1 file changed, 11
The third argument passed to the function gen_image_alt_info() is not
used and is superfluous. Remove this unused argument from the function
call.
Fixes: 4898679e190 (FWU: Add FWU metadata access driver for MTD storage regions)
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* New patch
lib
Support has been added for version 2 of the FWU metadata
structure. Add config symbols to enable either of the two versions.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* New patch
lib/fwu_updates/Kconfig | 14 ++
lib/fwu_updates/Makefile | 2 ++
2 files changed, 16
to the counter, the bank_state field of the FWU metadata is
also updated to Valid.
For transitioning the platform to Regular State, no action is needed
with version 1 of the FWU metadata structure, while for version 2, the
bank_state field is set to Accepted.
Signed-off-by: Sughosh Ganu
---
Changes
agnostic structure.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* New patch
include/fwu.h | 49 +-
lib/fwu_updates/fwu.c | 204 --
2 files changed, 186 insertions(+), 67 deletions(-)
diff --git a/include/fwu.h b/include/fwu.h
index
-by: Sughosh Ganu
---
Changes since V2:
* New patch
include/fwu.h| 57 +
lib/fwu_updates/fwu_v1.c | 167 +
lib/fwu_updates/fwu_v2.c | 260 +++
3 files changed, 484 insertions(+)
create mode 100644 lib/fwu_updates
specific code is then responsible for arranging the data
as per the corresponding metadata structure before it gets written to
the metadata partitions.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* New patch
include/fwu.h | 18 ++
1 file changed, 18 insertions(+)
diff
for image
identification to reflect the fact that these are GUIDs, and not
UUIDs.
Signed-off-by: Sughosh Ganu
---
Changes since V2:
* New patch which retains support for V1 of metadata
include/fwu_mdata.h | 71 +
1 file changed, 65 insertions(+), 6 deletions
of the driver's private structure, instead of using a global variable.
Signed-off-by: Sughosh Ganu
---
Changes since V2: None
drivers/fwu-mdata/raw_mtd.c | 68 +++--
include/fwu.h | 9 +
2 files changed, 52 insertions(+), 25 deletions(-)
diff
to indicate
the number of bytes to be accessed. This is then used to either read
the entire structure, or only the top level structure.
Signed-off-by: Sughosh Ganu
---
Changes since V2: None
drivers/fwu-mdata/fwu-mdata-uclass.c | 10 ++
drivers/fwu-mdata/gpt_blk.c | 23
image")
Signed-off-by: Sughosh Ganu
---
Changes since V2: None
tools/mkfwumdata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/mkfwumdata.c b/tools/mkfwumdata.c
index 9732a8ddc5..b2d90ca7c9 100644
--- a/tools/mkfwumdata.c
+++ b/tools/mkfwumdata.c
@@ -25
Support is to be added in the following commits for the FWU metadata
version 2. Disable the FWU feature on platforms that enable it for the
V2 addition work.
Signed-off-by: Sughosh Ganu
---
Changes since V2: None
configs/corstone1000_defconfig | 2 --
configs/sandbox64_defconfig
and v2 instead of only v2.
* Add config symbol for selecting either of the two metadata versions.
Sughosh Ganu (20):
configs: fwu: remove FWU configs for metadata V2 support
tools: mkfwumdata: fix the size parameter to the fwrite call
drivers: fwu: add the size parameter to the metadata access
I
need to send some changes which Simon has asked for. Once those
changes go through, these patches also should be merged. Will work on
this task. Thanks for letting me know.
-sughosh
>
> Thanks,
> Bence
>
> On Tue, Nov 21, 2023 at 12:30:24PM +0530, Sughosh Ganu wrote:
> >
>
ed in the field yet, I would say a clean migration is
better.
-sughosh
>
> [1]
> https://gitlab.arm.com/firmware/SCP-firmware/-/blob/v2.11.0/product/synquacer/include/fwu_mdata.h
> [2]
> https://review.trustedfirmware.org/plugins/gitiles/TF-A/trusted-firmware-a/+/refs/tags/v2.7/include/driv
hi Michal,
On Thu, 15 Feb 2024 at 20:01, Michal Simek wrote:
>
> Hi,
>
> On 2/12/24 08:47, Sughosh Ganu wrote:
> > Migrate the metadata generation tool to generate the version 2
> > metadata.
> >
> > Signed-off-by: Sughosh Ganu
> > ---
> >
> &
Make changes to the FWU documentation to reflect the changes made with
migration of the FWU metadata to version 2.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
doc/board/socionext/developerbox.rst | 9 +++--
doc/develop/uefi/fwu_updates.rst | 12 +---
doc/usage/cmd
Now that the migration to the FWU metadata version 2 is complete, the
feature can be re-enabled on platforms which had it enabled.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
configs/corstone1000_defconfig | 2 ++
configs/sandbox64_defconfig | 1 +
configs
image")
Signed-off-by: Sughosh Ganu
---
Changes since V1: New patch
tools/mkfwumdata.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/mkfwumdata.c b/tools/mkfwumdata.c
index ab07623e25..426d221ac7 100644
--- a/tools/mkfwumdata.c
+++ b/tools/mkfwumdata.c
@@ -33
The version 2 of the FWU metadata allows for appending opaque vendor
specific data to the metadata structure. Add support for appending
this data to the metadata. The vendor specific data needs to be
provided through a file, passed through a command-line parameter.
Signed-off-by: Sughosh Ganu
Migrate the metadata generation tool to generate the version 2
metadata.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Compute location of struct fwu_fw_store_desc using pointer
arithmetic.
tools/mkfwumdata.c | 45 ++---
1 file changed, 34
With the migration to the FWU metadata version 2 structure, the values
of number of banks and number of images per bank are now obtained from
the metadata at runtime. Remove the now superfluous config symbols.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
arch/sandbox/Kconfig
With the FWU metadata support having been migrated to version 2, make
corresponding changes to the test for accessing the FWU metadata.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Use the helper functions from the previous patch to access the
image information in the metadata.
test
Make changes to the fwu_mdata_read command to have it align with the
metadata version 2.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Use the helper functions from the previous patch to access the
image information in the metadata.
cmd/fwu_mdata.c | 45
With the migration of the FWU metadata to version 2, the number of
banks are now obtained at runtime, instead of the config symbols. Make
use of the API to get the number of banks in the versioning
functions.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
lib/efi_loader/efi_firmware.c
The FWU metadata is being read for populating the firmware image's
version information. The sandbox platform does not have the FWU
metadata on any of it's storage devices. Skip attempting to read the
FWU metadata on the sandbox platform.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
the FWU MTD driver's private structure.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Use the helper functions from the previous patch to access the
image information in the metadata.
lib/fwu_updates/fwu_mtd.c | 81 +--
1 file changed, 61 insertions
), or once the images in
the bank have been accepted.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
lib/efi_loader/efi_capsule.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c
index 0e6a38b441..422bb11162 100644
the TrialStateCtr variable by calling the
fwu_trial_state_start() function.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
include/fwu.h| 12 +---
lib/efi_loader/efi_capsule.c | 2 +-
lib/fwu_updates/fwu.c| 54 ++--
3 files changed, 54
With migration of the FWU metadata access code to version 2, the size
of the metadata is obtained at runtime. Allocate memory for both the
metadata copies from the driver's probe function.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
drivers/fwu-mdata/gpt_blk.c | 4
drivers/fwu
of the driver's private structure, instead of using a global variable.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
drivers/fwu-mdata/raw_mtd.c | 71 -
include/fwu.h | 9 +
2 files changed, 55 insertions(+), 25 deletions(-)
diff
There are certain fields added in version 2 of the FWU metadata
structure. Also, information like number of banks and number of images
per bank are also part of the metadata structure. Add functions to
access fields of the version 2 of the metadata structure.
Signed-off-by: Sughosh Ganu
structure, instead
of using build-time value.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Use the helper functions from the previous patch to access the
image information in the metadata.
include/fwu.h | 6 +-
lib/fwu_updates/fwu.c | 145
and struct fwu_image_bank_info) need to be
computed at runtime. Add helper functions to get addresses of these
structures.
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* New patch needed based on comments from Ilias on the earlier
version.
include/fwu.h | 45
to indicate
the number of bytes to be accessed. This is then used to either read
the entire structure, or only the top level structure.
Signed-off-by: Sughosh Ganu
---
Changes since V1: None
drivers/fwu-mdata/fwu-mdata-uclass.c | 10 ++
drivers/fwu-mdata/gpt_blk.c | 23
- Number of banks and images per bank values part of the structure
Migrate to the version 2 of the metadata structure.
[1] - https://developer.arm.com/documentation/den0118/latest/
Signed-off-by: Sughosh Ganu
---
Changes since V1:
* Do not define flexible array members inside the structures.
include
The FWU metadata is to be migrated to version 2. Disable the FWU
feature on platforms that enable it for the migration.
Signed-off-by: Sughosh Ganu
Reviewed-by: Ilias Apalodimas
---
Changes since V1: None
configs/corstone1000_defconfig | 2 --
configs/sandbox64_defconfig
array members inside the structures.
* Access the image information related fields in the metadata using
the helper functions defined in an earlier patch.
* Access fwu_fw_store_desc structure using pointer arithmetic.
Sughosh Ganu (21):
configs: fwu: remove FWU configs for metadata V2 migration
hi Michal,
On Fri, 26 Jan 2024 at 20:40, Michal Simek wrote:
>
> Hi Sughosh,
>
> po 22. 1. 2024 v 12:55 odesílatel Sughosh Ganu
> napsal:
> >
> >
> > The following patches migrate the FWU metadata access code to version
> > 2 of the structure. Th
hi Ilias,
On Tue, 23 Jan 2024 at 21:53, Ilias Apalodimas
wrote:
>
> Hi Sughosh,
>
> On Tue, Nov 21, 2023 at 12:30:26PM +0530, Sughosh Ganu wrote:
> > The UEFI capsule can now be generate by specifying the capsule
> > parameters through a config file. Additi
Make changes to the FWU documentation to reflect the changes made with
migration of the FWU metadata to version 2.
Signed-off-by: Sughosh Ganu
---
doc/board/socionext/developerbox.rst | 9 +++--
doc/develop/uefi/fwu_updates.rst | 12 +---
doc/usage/cmd/fwu_mdata.rst
Now that the migration to the FWU metadata version 2 is complete, the
feature can be re-enabled on platforms which had it enabled.
Signed-off-by: Sughosh Ganu
---
configs/corstone1000_defconfig | 2 ++
configs/sandbox64_defconfig | 1 +
configs
Migrate the metadata generation tool to generate the version 2
metadata.
Signed-off-by: Sughosh Ganu
---
tools/mkfwumdata.c | 43 ---
1 file changed, 32 insertions(+), 11 deletions(-)
diff --git a/tools/mkfwumdata.c b/tools/mkfwumdata.c
index 9732a8ddc5
With the migration to the FWU metadata version 2 structure, the values
of number of banks and number of images per bank are now obtained from
the metadata at runtime. Remove the now superfluous config symbols.
Signed-off-by: Sughosh Ganu
---
arch/sandbox/Kconfig | 6
With the FWU metadata support having been migrated to version 2, make
corresponding changes to the test for accessing the FWU metadata.
Signed-off-by: Sughosh Ganu
---
test/dm/fwu_mdata.c| 56 ---
test/dm/fwu_mdata_disk_image.h | 124 ++---
2
Make changes to the fwu_mdata_read command to have it align with the
metadata version 2.
Signed-off-by: Sughosh Ganu
---
cmd/fwu_mdata.c | 43 ++-
1 file changed, 34 insertions(+), 9 deletions(-)
diff --git a/cmd/fwu_mdata.c b/cmd/fwu_mdata.c
index
With the migration of the FWU metadata to version 2, the number of
banks are now obtained at runtime, instead of the config symbols. Make
use of the API to get the number of banks in the versioning
functions.
Signed-off-by: Sughosh Ganu
---
lib/efi_loader/efi_firmware.c | 14 ++
1
The FWU metadata is being read for populating the firmware image's
version information. The sandbox platform does not have the FWU
metadata on any of it's storage devices. Skip attempting to read the
FWU metadata on the sandbox platform.
Signed-off-by: Sughosh Ganu
---
lib/efi_loader
the FWU MTD driver's private structure.
Signed-off-by: Sughosh Ganu
---
lib/fwu_updates/fwu_mtd.c | 76 +--
1 file changed, 58 insertions(+), 18 deletions(-)
diff --git a/lib/fwu_updates/fwu_mtd.c b/lib/fwu_updates/fwu_mtd.c
index 69cd3d7001..a82133de2e 100644
), or once the images in
the bank have been accepted.
Signed-off-by: Sughosh Ganu
---
lib/efi_loader/efi_capsule.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/lib/efi_loader/efi_capsule.c b/lib/efi_loader/efi_capsule.c
index 0e6a38b441..422bb11162 100644
--- a/lib/efi_loader
the TrialStateCtr variable by calling the
fwu_trial_state_start() function.
Signed-off-by: Sughosh Ganu
---
include/fwu.h| 12 +---
lib/efi_loader/efi_capsule.c | 2 +-
lib/fwu_updates/fwu.c| 54 ++--
3 files changed, 54 insertions(+), 14 deletions
With migration of the FWU metadata access code to version 2, the size
of the metadata is obtained at runtime. Allocate memory for both the
metadata copies from the driver's probe function.
Signed-off-by: Sughosh Ganu
---
drivers/fwu-mdata/gpt_blk.c | 4
drivers/fwu-mdata/raw_mtd.c | 4
of the driver's private structure, instead of using a global variable.
Signed-off-by: Sughosh Ganu
---
drivers/fwu-mdata/raw_mtd.c | 71 -
include/fwu.h | 9 +
2 files changed, 55 insertions(+), 25 deletions(-)
diff --git a/drivers/fwu
of banks and number of images per bank from the
metadata at runtime, instead of using config values.
- Get the size of the metadata from the metadata structure, instead
of using build-time value.
Signed-off-by: Sughosh Ganu
---
include/fwu.h | 6 ++-
lib/fwu_updates/fwu.c | 112
There are certain fields added in version 2 of the FWU metadata
structure. Also, information like number of banks and number of images
per bank are also part of the metadata structure. Add functions to
access fields of the version 2 of the metadata structure.
Signed-off-by: Sughosh Ganu
to indicate
the number of bytes to be accessed. This is then used to either read
the entire structure, or only the top level structure.
Signed-off-by: Sughosh Ganu
---
drivers/fwu-mdata/fwu-mdata-uclass.c | 10 ++
drivers/fwu-mdata/gpt_blk.c | 23 +--
drivers
- Number of banks and images per bank values part of the structure
Migrate to the version 2 of the metadata structure.
[1] - https://developer.arm.com/documentation/den0118/latest/
Signed-off-by: Sughosh Ganu
---
include/fwu_mdata.h | 56 +
1 file changed
The FWU metadata is to be migrated to version 2. Disable the FWU
feature on platforms that enable it for the migration.
Signed-off-by: Sughosh Ganu
---
configs/corstone1000_defconfig | 2 --
configs/sandbox64_defconfig | 1 -
configs/synquacer_developerbox_defconfig | 4
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
hi Simon,
On Wed, 27 Dec 2023 at 23:19, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Mon, Dec 4, 2023 at 7:15 AM Sughosh Ganu wrote:
> >
> > hi Simon,
> >
> > On Sat, 2 Dec 2023 at 00:02, Simon Glass wrote:
> > >
> > > Hi Sughosh,
hi Simon,
On Sat, 2 Dec 2023 at 00:02, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Thu, 30 Nov 2023 at 23:39, Sughosh Ganu wrote:
> >
> > hi Simon,
> >
> > On Thu, 30 Nov 2023 at 08:16, Simon Glass wrote:
> > >
> > > Hi Sughosh,
hi Simon,
On Thu, 30 Nov 2023 at 08:16, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Wed, 22 Nov 2023 at 00:40, Sughosh Ganu wrote:
> >
> > hi Ilias,
> >
> > On Wed, 22 Nov 2023 at 13:06, Ilias Apalodimas
> > wrote:
> > >
> > > Hi
hi Ilias,
On Wed, 22 Nov 2023 at 13:06, Ilias Apalodimas
wrote:
>
> Hi all,
>
> On Wed, 22 Nov 2023 at 07:23, Sughosh Ganu wrote:
> >
> > hi Simon,
> >
> > On Wed, 22 Nov 2023 at 03:42, Simon Glass wrote:
> > >
> > > Hi Sughosh,
hi Tom,
On Wed, 22 Nov 2023 at 03:54, Tom Rini wrote:
>
> On Tue, Nov 21, 2023 at 03:11:50PM -0700, Simon Glass wrote:
> > Hi Sughosh,
> >
> > On Tue, 21 Nov 2023 at 00:02, Sughosh Ganu wrote:
> > >
> > > Add support for specifying the parameters n
hi Simon,
On Wed, 22 Nov 2023 at 03:42, Simon Glass wrote:
>
> Hi Sughosh,
>
> On Tue, 21 Nov 2023 at 00:02, Sughosh Ganu wrote:
> >
> > Add support for specifying the parameters needed for capsule
> > generation through a config file, instead of passing
.
The config file can then be passed to the mkeficapsule tool in such
manner
$ ./tools/mkeficapsule -f
Signed-off-by: Sughosh Ganu
---
tools/Kconfig | 15 ++
tools/Makefile | 1 +
tools/eficapsule.h | 114
tools/mkeficapsule.c | 87
Add logic to generate capsules through a config file while testing the
EFI capsule update functionality. Capsule generation through config
file is enabled on the sandbox variant.
Signed-off-by: Sughosh Ganu
---
test/py/tests/test_efi_capsule/capsule_gen_binman.dts | 2 ++
test/py/tests
the config file on the sandbox
variant.
Signed-off-by: Sughosh Ganu
---
configs/sandbox_defconfig | 2 +
.../test_efi_capsule/sandbox_capsule_cfg.txt | 162 ++
2 files changed, 164 insertions(+)
create mode 100644 test/py/tests/test_efi_capsule
1 - 100 of 1494 matches
Mail list logo