Skip to contentSkip to conversation

u-boot-ti: J721e: update HS build to include DM signing

PATCH In review praneeth 2 participants 2 messages Mar 26, 2021

lore
Share & tools
lore

praneeth

author
#0 lore raw

PATCH 1/1 u-boot-ti: J721e: update HS build to include DM signing

From: Praneeth Bajjuri <[email protected]>

DM firmware is added now as part of the uboot build process. This patch fixes HS signing and build including the new DM firmware.

---
 recipes-bsp/u-boot/u-boot-ti.inc | 8 ++++++++
 1 file changed, 8 insertions(+)
recipes-bsp/u-boot/u-boot-ti.inc +8 -0
index e5f92f4b..5cae1c15 100644
@@ -57,6 +57,14 @@ S = "${WORKDIR}/git"
 TI_SECURE_DEV_PKG ?= ""
 export TI_SECURE_DEV_PKG
 
+do_compile_prepend_j7-hs-evm() {
+        ( cd ${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/pdk-ipc/; \
+                mv ipc_echo_testb_mcu1_0_release_strip.xer5f ipc_echo_testb_mcu1_0_release_strip.xer5f.unsigned; \
+                ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_testb_mcu1_0_release_strip.xer5f.unsigned ipc_echo_testb_mcu1_0_release_strip.xer5f; \
+        )
+}
+
+
 SYSROOT_DIRS += "/boot"
 
 # SPL (Second Program Loader) to be loaded over UART
Signature · 1 line
2.17.1
#1 lore raw

Praneeth,

I know we discussed doing signing in u-boot do_compile, but it appears not optimal and to avoid any corner cases it's better to do signing in ti-rtos-firmware do_install. That way signing is done once and can be used by other packages that need it. See the modified patch I sent.

Signature · 1 line
Denys
Quoted 32 lines · praneeth via lists.yoctoproject.org

From: Praneeth Bajjuri <[email protected]>

DM firmware is added now as part of the uboot build process. This patch fixes HS signing and build including the new DM firmware.

---
 recipes-bsp/u-boot/u-boot-ti.inc | 8 ++++++++
 1 file changed, 8 insertions(+)
recipes-bsp/u-boot/u-boot-ti.inc +8 -0
index e5f92f4b..5cae1c15 100644
@@ -57,6 +57,14 @@ S = "${WORKDIR}/git"
 TI_SECURE_DEV_PKG ?= ""
 export TI_SECURE_DEV_PKG
 
+do_compile_prepend_j7-hs-evm() {
+        ( cd ${STAGING_DIR_HOST}${nonarch_base_libdir}/firmware/pdk-ipc/; \
+                mv ipc_echo_testb_mcu1_0_release_strip.xer5f ipc_echo_testb_mcu1_0_release_strip.xer5f.unsigned; \
+                ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_testb_mcu1_0_release_strip.xer5f.unsigned ipc_echo_testb_mcu1_0_release_strip.xer5f; \
+        )
+}
+
+
 SYSROOT_DIRS += "/boot"
 
 # SPL (Second Program Loader) to be loaded over UART
Signature · 1 line
2.17.1