* [PATCH] board: xilinx: Update ESRT after copying GUID
@ 2025-11-04 12:57 Padmarao Begari
2025-11-26 8:08 ` Michal Simek
0 siblings, 1 reply; 2+ messages in thread
From: Padmarao Begari @ 2025-11-04 12:57 UTC (permalink / raw)
To: u-boot; +Cc: git, michal.simek
The EFI System Resource Table (ESRT) is updated after the firmware
image GUID is copied to the fw_images structure. This ensures that
the ESRT accurately reflects the current firmware resources.
Signed-off-by: Padmarao Begari <padmarao.begari@amd.com>
---
board/xilinx/common/board.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 26facb6daea..ab50a795e6b 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -766,6 +766,17 @@ int fwu_platform_hook(struct udevice *dev, struct fwu_data *data)
/* Copy image type GUID */
memcpy(&fw_images[0].image_type_id, &img_entry->image_type_guid, 16);
+ if (IS_ENABLED(CONFIG_EFI_ESRT)) {
+ efi_status_t ret;
+
+ /* Rebuild the ESRT to reflect any updated FW images. */
+ ret = efi_esrt_populate();
+ if (ret != EFI_SUCCESS) {
+ log_warning("ESRT update failed\n");
+ return ret;
+ }
+ }
+
return 0;
}
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] board: xilinx: Update ESRT after copying GUID
2025-11-04 12:57 [PATCH] board: xilinx: Update ESRT after copying GUID Padmarao Begari
@ 2025-11-26 8:08 ` Michal Simek
0 siblings, 0 replies; 2+ messages in thread
From: Michal Simek @ 2025-11-26 8:08 UTC (permalink / raw)
To: Padmarao Begari, u-boot; +Cc: git
On 11/4/25 13:57, Padmarao Begari wrote:
> The EFI System Resource Table (ESRT) is updated after the firmware
> image GUID is copied to the fw_images structure. This ensures that
> the ESRT accurately reflects the current firmware resources.
>
> Signed-off-by: Padmarao Begari <padmarao.begari@amd.com>
> ---
> board/xilinx/common/board.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
> index 26facb6daea..ab50a795e6b 100644
> --- a/board/xilinx/common/board.c
> +++ b/board/xilinx/common/board.c
> @@ -766,6 +766,17 @@ int fwu_platform_hook(struct udevice *dev, struct fwu_data *data)
> /* Copy image type GUID */
> memcpy(&fw_images[0].image_type_id, &img_entry->image_type_guid, 16);
>
> + if (IS_ENABLED(CONFIG_EFI_ESRT)) {
> + efi_status_t ret;
> +
> + /* Rebuild the ESRT to reflect any updated FW images. */
> + ret = efi_esrt_populate();
> + if (ret != EFI_SUCCESS) {
> + log_warning("ESRT update failed\n");
> + return ret;
> + }
> + }
> +
> return 0;
> }
>
Applied.
M
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-26 8:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-04 12:57 [PATCH] board: xilinx: Update ESRT after copying GUID Padmarao Begari
2025-11-26 8:08 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox