From: <rs@ti.com>
To: <robertcnelson@gmail.com>, <ayush@beagleboard.org>,
<Erik.Welsh@octavosystems.com>, <anshuld@ti.com>, <bb@ti.com>,
<trini@konsulko.com>, <afd@ti.com>, <xypron.glpk@gmx.de>,
<ilias.apalodimas@linaro.org>, <sjg@chromium.org>
Cc: <u-boot@lists.denx.de>
Subject: [PATCHv3 4/4] k3-am62-pocketbeagle2: add support for efi capsules
Date: Wed, 24 Jun 2026 16:19:49 -0500 [thread overview]
Message-ID: <20260624211949.327905-5-rs@ti.com> (raw)
In-Reply-To: <20260624211949.327905-1-rs@ti.com>
From: Randolph Sapp <rs@ti.com>
Add support for EFI capsules for this device. One large caveat is that
the partition holding boot binaries cannot be the ESP partition due to
the following ROM limitations.
- The boot disk must be MBR
- The boot partition must be labeled 0x0c with a boot flag
A separate ESP partition should be provided for EFI capabilities.
Signed-off-by: Randolph Sapp <rs@ti.com>
---
v3:
- Remove unnecessary dfu_alt_info_ram variable
---
.../arm/dts/k3-am62-pocketbeagle2-u-boot.dtsi | 29 +++++++++++++++++++
board/beagle/pocketbeagle2/pocketbeagle2.c | 26 +++++++++++++++++
configs/am62_pocketbeagle2_a53_defconfig | 1 +
include/configs/pocketbeagle2.h | 25 ++++++++++++++++
4 files changed, 81 insertions(+)
diff --git a/arch/arm/dts/k3-am62-pocketbeagle2-u-boot.dtsi b/arch/arm/dts/k3-am62-pocketbeagle2-u-boot.dtsi
index 452161115318..283e26380e48 100644
--- a/arch/arm/dts/k3-am62-pocketbeagle2-u-boot.dtsi
+++ b/arch/arm/dts/k3-am62-pocketbeagle2-u-boot.dtsi
@@ -181,6 +181,17 @@
};
};
};
+
+#include "k3-binman-capsule-r5.dtsi"
+
+// Capsule update GUIDs in string form. See pocketbeagle2.h
+#define POCKETBEAGLE2_TIBOOT3_IMAGE_GUID_STR "F0D53723-106E-5346-8A41-85EB2D07C720"
+
+&capsule_tiboot3 {
+ efi-capsule {
+ image-guid = POCKETBEAGLE2_TIBOOT3_IMAGE_GUID_STR;
+ };
+};
#endif /* CONFIG_TARGET_AM62X_R5_POCKETBEAGLE2 */
#if IS_ENABLED(CONFIG_TARGET_AM62X_A53_POCKETBEAGLE2)
@@ -304,4 +315,22 @@
};
};
};
+
+#include "k3-binman-capsule.dtsi"
+
+// Capsule update GUIDs in string form. See pocketbeagle2.h
+#define POCKETBEAGLE2_SPL_IMAGE_GUID_STR "C73FDEA2-3964-58C8-8A25-E55102172E1D"
+#define POCKETBEAGLE2_UBOOT_IMAGE_GUID_STR "520E1012-DE6C-5992-B43A-95D53D8332F2"
+
+&capsule_tispl {
+ efi-capsule {
+ image-guid = POCKETBEAGLE2_SPL_IMAGE_GUID_STR;
+ };
+};
+
+&capsule_uboot {
+ efi-capsule {
+ image-guid = POCKETBEAGLE2_UBOOT_IMAGE_GUID_STR;
+ };
+};
#endif /* CONFIG_TARGET_AM62X_A53_POCKETBEAGLE2 */
diff --git a/board/beagle/pocketbeagle2/pocketbeagle2.c b/board/beagle/pocketbeagle2/pocketbeagle2.c
index 8463d82ef9d8..b6a136a93c0a 100644
--- a/board/beagle/pocketbeagle2/pocketbeagle2.c
+++ b/board/beagle/pocketbeagle2/pocketbeagle2.c
@@ -7,6 +7,7 @@
* Copyright (C) 2025 Robert Nelson, BeagleBoard.org Foundation
*/
+#include <efi_loader.h>
#include <env.h>
#include <fdt_support.h>
#include <spl.h>
@@ -22,6 +23,31 @@
DECLARE_GLOBAL_DATA_PTR;
+struct efi_fw_image fw_images[] = {
+ {
+ .image_type_id = POCKETBEAGLE2_TIBOOT3_IMAGE_GUID,
+ .fw_name = u"POCKETBEAGLE2_TIBOOT3",
+ .image_index = 1,
+ },
+ {
+ .image_type_id = POCKETBEAGLE2_SPL_IMAGE_GUID,
+ .fw_name = u"POCKETBEAGLE2_SPL",
+ .image_index = 2,
+ },
+ {
+ .image_type_id = POCKETBEAGLE2_UBOOT_IMAGE_GUID,
+ .fw_name = u"POCKETBEAGLE2_UBOOT",
+ .image_index = 3,
+ }
+};
+
+struct efi_capsule_update_info update_info = {
+ .dfu_string = "mmc 1=tiboot3.bin fat 1 1;"
+ "tispl.bin fat 1 1;u-boot.img fat 1 1",
+ .num_images = ARRAY_SIZE(fw_images),
+ .images = fw_images,
+};
+
static int pocketbeagle2_get_ddr_size(void)
{
// check config overrides first
diff --git a/configs/am62_pocketbeagle2_a53_defconfig b/configs/am62_pocketbeagle2_a53_defconfig
index 8964cb3b1955..7428926a8ba6 100644
--- a/configs/am62_pocketbeagle2_a53_defconfig
+++ b/configs/am62_pocketbeagle2_a53_defconfig
@@ -122,3 +122,4 @@ CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
CONFIG_LZO=y
#include <configs/am62x_a53_usbdfu.config>
+#include <configs/k3_efi_capsule.config>
diff --git a/include/configs/pocketbeagle2.h b/include/configs/pocketbeagle2.h
index dd6956aa8b90..aed60d325742 100644
--- a/include/configs/pocketbeagle2.h
+++ b/include/configs/pocketbeagle2.h
@@ -8,6 +8,31 @@
#ifndef __CONFIG_POCKETBEAGLE2_H
#define __CONFIG_POCKETBEAGLE2_H
+/**
+ * define POCKETBEAGLE2_TIBOOT3_IMAGE_GUID - firmware GUID for PocketBeagle 2
+ * tiboot3.bin
+ * define POCKETBEAGLE2_SPL_IMAGE_GUID - firmware GUID for PocketBeagle 2 SPL
+ * define POCKETBEAGLE2_UBOOT_IMAGE_GUID - firmware GUID for PocketBeagle 2 UBOOT
+ *
+ * These GUIDs are used in capsules updates to identify the corresponding
+ * firmware object.
+ *
+ * Board developers using this as a starting reference should
+ * define their own GUIDs to ensure that firmware repositories (like
+ * LVFS) do not confuse them.
+ */
+#define POCKETBEAGLE2_TIBOOT3_IMAGE_GUID \
+ EFI_GUID(0xF0D53723, 0x106E, 0x5346, 0x8A, 0x41, 0x85, 0xEB, 0x2D, \
+ 0x07, 0xC7, 0x20)
+
+#define POCKETBEAGLE2_SPL_IMAGE_GUID \
+ EFI_GUID(0xC73FDEA2, 0x3964, 0x58C8, 0x8A, 0x25, 0xE5, 0x51, 0x02, \
+ 0x17, 0x2E, 0x1D)
+
+#define POCKETBEAGLE2_UBOOT_IMAGE_GUID \
+ EFI_GUID(0x520E1012, 0xDE6C, 0x5992, 0xB4, 0x3A, 0x95, 0xD5, 0x3D, \
+ 0x83, 0x32, 0xF2)
+
/* Now for the remaining common defines */
#include <configs/ti_armv7_common.h>
--
2.54.0
next prev parent reply other threads:[~2026-06-24 21:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-24 21:19 [PATCHv3 0/4] k3-am62-pocketbeagle2: add board and variant support rs
2026-06-24 21:19 ` [PATCHv3 1/4] arm: mach-k3: am62: add &main_uart6 to clock and pwr tree rs
2026-06-24 21:19 ` [PATCHv3 2/4] k3-am62-pocketbeagle2: add initial board support rs
2026-06-24 21:19 ` [PATCHv3 3/4] k3-am62-pocketbeagle2: add support for 1GB variant rs
2026-06-24 23:29 ` Randolph Sapp
2026-06-25 8:21 ` Anshul Dalal
2026-06-29 20:32 ` Randolph Sapp
2026-06-30 15:17 ` Bryan Brattlof
2026-06-24 21:19 ` rs [this message]
2026-06-26 17:59 ` [PATCHv3 0/4] k3-am62-pocketbeagle2: add board and variant support Marko Mäkelä
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260624211949.327905-5-rs@ti.com \
--to=rs@ti.com \
--cc=Erik.Welsh@octavosystems.com \
--cc=afd@ti.com \
--cc=anshuld@ti.com \
--cc=ayush@beagleboard.org \
--cc=bb@ti.com \
--cc=ilias.apalodimas@linaro.org \
--cc=robertcnelson@gmail.com \
--cc=sjg@chromium.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox