Skip to contentSkip to conversation

u-boot: Add alternative key signing

PATCH In review Ryan Eatmon 2 participants 3 messages Feb 2

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 u-boot: Add alternative key signing

Provide framework for how to sign the uboot files with different keys so that customers can see how it is done. We have provided an ECDSA key and follow on patches will show how to point to it.

---
 meta-ti-bsp/recipes-bsp/u-boot/files/custMpk_ecdsa.key | 6 ++++++
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc           | 2 ++
 2 files changed, 8 insertions(+)
 create mode 100644 meta-ti-bsp/recipes-bsp/u-boot/files/custMpk_ecdsa.key
meta-ti-bsp/recipes-bsp/u-boot/files/custMpk_ecdsa.key new file +6 -0
new file mode 100644
index 00000000..83dffcda
@@ -0,0 +1,6 @@
+-----BEGIN EC PRIVATE KEY-----
+MIGkAgEBBDBDO9fzBU2LoKaYgji4m3ZCHKUBF9CTVnU6ClfNPJsTo0SKZpCsmyr0
+TKUNkk16vwGgBwYFK4EEACKhZANiAATCv6ftwnJW91fP5wpLpLAxt3u732oNnKr8
+pLbZUzi/s8/e7QiISJ8QKYGaWMnjORW82cM3UJKlCw8GOrb3ZrEXYWRKxkPWql0+
+BOhDQA5b21GtL9HQPvuCPz471ZaxGYA=
+-----END EC PRIVATE KEY-----
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +2 -0
index 773fa1e2..678f3bcf 100644
@@ -416,3 +416,5 @@ PACKAGES:prepend:am62pxx-evm = "${FALCON_PKG} "
 PACKAGES:prepend:am62xx-lp-evm = "${FALCON_PKG} "
 
 TOOLCHAIN = "gcc"
+
+TI_SIGN_WITH_ECDSA_KEY ?= "KEY_PATH=${THISDIR}/files/custMpk_ecdsa.key"
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 conf: am62p: Add ECDSA key signing

Use the new framework to add alternative key signing for the am62p platform as an example.

---
 .../conf/machine/am62pxx-evm-k3r5.conf        | 15 +++++++++++----
 meta-ti-bsp/conf/machine/am62pxx-evm.conf     | 19 ++++++++++++++++++-
 2 files changed, 29 insertions(+), 5 deletions(-)
meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf +11 -4
index bf82849a..292b658b 100644
@@ -4,15 +4,22 @@
 
 require conf/machine/include/k3r5.inc
 
-UBOOT_MACHINE = "am62px_evm_r5_defconfig"
-UBOOT_MACHINE:tie-test-builds = ""
+UBOOT_MACHINE = ""
 
-UBOOT_CONFIG = ""
-UBOOT_CONFIG:tie-test-builds = "usbdfu main"
+UBOOT_ECDSA_SIGN_CONFIG ?= "ecdsa"
+UBOOT_ECDSA_SIGN_CONFIG:bsp-ti-6_6 = ""
+UBOOT_ECDSA_SIGN_CONFIG:bsp-next = ""
+UBOOT_ECDSA_SIGN_CONFIG:bsp-mainline = ""
+
+UBOOT_CONFIG = "${UBOOT_ECDSA_SIGN_CONFIG} main"
+UBOOT_CONFIG:prepend:tie-test-builds = "usbdfu "
 
 UBOOT_CONFIG[main] = "am62px_evm_r5_defconfig"
+UBOOT_CONFIG[ecdsa] = "am62px_evm_r5_defconfig"
 UBOOT_CONFIG[usbdfu] = "am62px_evm_r5_defconfig"
 
+UBOOT_CONFIG_MAKE_OPTS[ecdsa] = "${TI_SIGN_WITH_ECDSA_KEY}"
+
 UBOOT_CONFIG_FRAGMENTS[usbdfu] = "am62x_r5_usbdfu.config"
 
 UBOOT_FRAGMENTS:ti-falcon = "k3_r5_falcon.config"
meta-ti-bsp/conf/machine/am62pxx-evm.conf +18 -1
index 4bebe510..bc056e6b 100644
@@ -23,7 +23,24 @@ KERNEL_DEVICETREE = " \
 
 FIT_CONF_DEFAULT_DTB = "k3-am62p5-sk.dtb"
 
-UBOOT_MACHINE = "am62px_evm_a53_defconfig"
+UBOOT_ECDSA_SIGN_CONFIG ?= "ecdsa"
+UBOOT_ECDSA_SIGN_CONFIG:bsp-ti-6_6 = ""
+UBOOT_ECDSA_SIGN_CONFIG:bsp-next = ""
+UBOOT_ECDSA_SIGN_CONFIG:bsp-mainline = ""
+
+ECDSA_BOOT_FILES ?= "tiboot3.bin-ecdsa tiboot3-*-evm.bin-ecdsa tispl.bin-ecdsa u-boot.img-ecdsa"
+ECDSA_BOOT_FILES:bsp-ti-6_6 = ""
+ECDSA_BOOT_FILES:bsp-next = ""
+ECDSA_BOOT_FILES:bsp-mainline = ""
+
+UBOOT_MACHINE = ""
+UBOOT_CONFIG = "${UBOOT_ECDSA_SIGN_CONFIG} main"
+UBOOT_CONFIG[main] = "am62px_evm_a53_defconfig"
+UBOOT_CONFIG[ecdsa] = "am62px_evm_a53_defconfig"
+
+UBOOT_CONFIG_MAKE_OPTS[ecdsa] = "${TI_SIGN_WITH_ECDSA_KEY}"
+
+IMAGE_BOOT_FILES += "${ECDSA_BOOT_FILES}"
 
 # UBOOT_FRAGMENTS holds the list of u-boot config fragments which has to be build
 # along with the base defconfig mentioned in UBOOT_MACHINE. Refer u-boot-mergeconfig.inc
Signature · 1 line
2.43.0
#2 lore raw
In reply to Ryan Eatmon

meta-ti / na / 20260202195158.1912610-1-reatmon

PRC Results: PASS

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
WARN - [meta-ti][master][PATCH 2/2] conf: am62p: Add ECDSA key signing
WARN: Commit message does not include file/recipe name: conf: am62p: Add ECDSA key signing. (COMMIT-MESSAGE-2)
patch

WARN: Commit message should not include directory path to recipe: conf: am62p: Add ECDSA key signing.
conf (COMMIT-MESSAGE-3)
patch

For details on the above errors/warnings visit: https://lists.yoctoproject.org/g/meta-ti/wiki/40887

=========================================================
apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-ti][master][PATCH 1/2] u-boot: Add alternative key signing
- Submitter: From: Ryan Eatmon <[email protected]>
- Date: Date: Mon, 2 Feb 2026 13:51:57 -0600
- Num Patches: 2
- Mailing List (public inbox) Commit SHA: 3cd0d84f0816a182e1b4c2bc9215d21599a8dfb9

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: master
- Commit Author: LCPD Automation Script <[email protected]>
- Commit Subject: CI/CD Auto-Merger: cicd.master-ltsprep.202602021018
- Commit SHA: 22e889c2057e86800522f69ac4d263b17101b2c8

Patches
----------------------------------------
All patches applied

=========================================================
check-yocto-repo: PASS
=========================================================
master
=====================
PASS

=========================================================
yocto-check-layers: PASS
=========================================================
master - PASS
=====================
All checks passed