Skip to contentSkip to conversation

conf: am62l: Add ECDSA key signing

PATCH In review Ryan Eatmon 2 participants 3 messages Nov 20

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 conf: am62l: Add ECDSA key signing

Add support for signing the u-boot files with an ECDSA key.

---
 meta-ti-bsp/conf/machine/am62lxx-evm.conf | 24 ++++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)
meta-ti-bsp/conf/machine/am62lxx-evm.conf +23 -1
index 7a422617..0bec33d6 100644
@@ -16,7 +16,29 @@ KERNEL_DEVICETREE_PREFIX = " \
 
 KERNEL_DEVICETREE = ""
 
-UBOOT_MACHINE = "am62lx_evm_defconfig"
+UBOOT_MACHINE = ""
+
+UBOOT_ECDSA_SIGN_CONFIG ?= "ecdsa"
+UBOOT_ECDSA_SIGN_CONFIG:bsp-ti-6_12 = ""
+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_12 = ""
+ECDSA_BOOT_FILES:bsp-ti-6_6 = ""
+ECDSA_BOOT_FILES:bsp-next = ""
+ECDSA_BOOT_FILES:bsp-mainline = ""
+
+UBOOT_CONFIG = "${UBOOT_ECDSA_SIGN_CONFIG} main"
+
+UBOOT_CONFIG[main] = "am62lx_evm_defconfig"
+UBOOT_CONFIG[ecdsa] = "am62lx_evm_defconfig"
+
+UBOOT_CONFIG_MAKE_OPTS[ecdsa] = "${TI_SIGN_WITH_ECDSA_KEY}"
+
+IMAGE_BOOT_FILES += "${ECDSA_BOOT_FILES}"
+
 FIT_CONF_DEFAULT_DTB = "ti/k3-am62l3-evm.dtb"
 UBOOT_LOADADDRESS = "0x82400000"
 UBOOT_ENTRYPOINT = "0x82400000"
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/2 u-boot: Fix uboot_config for am62lxx

We need to adjust the code for copying tiboot3* files when running under the UBOOT_CONFIG flow for am62lxx.

---
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc | 22 +++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)
meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc +21 -1
index 3d6769bf..7f2c1143 100644
@@ -167,6 +167,26 @@ uboot_compile_config_copy_binary:k3r5 () {
     fi
 }
 
+uboot_compile_config_copy_binary:am62lxx () {
+    config=$1
+    type=$2
+    binary=$3
+
+    builddir="${builddir}"
+
+    if ! [ -L ${B}/${builddir}/${binary} ] && ! [ -f ${B}/${builddir}/${binary} ]; then
+        ln -s ${B}/${builddir}/spl/u-boot-spl.${UBOOT_SUFFIX} ${B}/${builddir}/${binary}
+    fi
+
+    if ! [ -L ${B}/${builddir}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} ] && ! [ -f ${B}/${builddir}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX} ]; then
+        tgt="${B}/${builddir}/${binary}"
+        if [ -L ${B}/${builddir}/${binary} ]; then
+            tgt=$(realpath ${B}/${builddir}/${binary})
+        fi
+        ln -s ${tgt} ${B}/${builddir}/${UBOOT_BINARYNAME}-${type}.${UBOOT_SUFFIX}
+    fi
+}
+
 uboot_install_config:append () {
     if [ "x${SPL_UART_BINARY}" != "x" ]; then
         install ${B}/${builddir}/spl/${SPL_UART_BINARY} ${D}/boot/${SPL_UART_IMAGE}-${type}
@@ -271,7 +291,7 @@ uboot_deploy_config:append:k3r5 () {
 }
 
 uboot_deploy_config:append:am62lxx () {
-	for f in ${B}/${builddir}/tiboot3-*.bin; do
+	for f in ${B}/${builddir}/tiboot3*.bin; do
 		if [ -f "$f" ]; then
 			f_base=$(basename $f)
 			install -m 644 $f ${DEPLOYDIR}/${f_base}-${type}
Signature · 1 line
2.43.0
#2 lore raw
In reply to Ryan Eatmon

meta-ti / na / 20261120214058.1819929-1-reatmon

PRC Results: PASS

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

WARN: Commit message should not include directory path to recipe: conf: am62l: 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/wrynose][PATCH 1/2] conf: am62l: Add ECDSA key signing
- Submitter: From: Ryan Eatmon <[email protected]>
- Date: Date: Fri, 20 Nov 2026 15:40:57 -0600
- Num Patches: 2
- Mailing List (public inbox) Commit SHA: ce4e4a2798c91469a04520dd66c8f89d850f0767

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: master-wip
- Commit Author: Ryan Eatmon <[email protected]>
- Commit Subject: TEST: linux-ti-staging: Add testing dtbo and build command
- Commit SHA: 3fa492d8d22e348e7a1ea4058dec805aa1d3e6a5

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

wrynose
=====================
Summary:
- Patch Series: [meta-ti][master/wrynose][PATCH 1/2] conf: am62l: Add ECDSA key signing
- Submitter: From: Ryan Eatmon <[email protected]>
- Date: Date: Fri, 20 Nov 2026 15:40:57 -0600
- Num Patches: 2
- Mailing List (public inbox) Commit SHA: ce4e4a2798c91469a04520dd66c8f89d850f0767

Applied to:
- Repository: lcpd-prc-meta-ti
- Base Branch: wrynose-next
- Commit Author: LCPD Automation Script <[email protected]>
- Commit Subject: CI/CD Auto-Merger: cicd.wrynose.202611191800
- Commit SHA: 06c8a2a00684d88aba4719f646c51b44c1424b76

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

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

wrynose
=====================
PASS

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

wrynose - PASS
=====================
All checks passed