diff options
author | Manorit Chawdhry <m-chawdhry@ti.com> | 2022-09-09 11:20:55 +0530 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2022-09-15 15:24:37 -0500 |
commit | c00cd10f46196bf70bf4ea1b5368aa0a9571e36b (patch) | |
tree | 77035424d7dc38a0084085f2150010213ffadde3 /recipes-ti | |
parent | 29a6be88478a5ddeb65de8c06bb3dbbb57c0e9cf (diff) | |
download | meta-ti-c00cd10f46196bf70bf4ea1b5368aa0a9571e36b.tar.gz |
ti-rtos-firmware: j721s2-hs-evm: add secure firmware images
Adds support for secure firmware images in J721S2 HS EVM.
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'recipes-ti')
-rw-r--r-- | recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb index f7a28218..afff8d15 100644 --- a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | |||
@@ -110,6 +110,21 @@ do_install_prepend_j721s2-hs-evm() { | |||
110 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ | 110 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ |
111 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ | 111 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ |
112 | ) | 112 | ) |
113 | ( | ||
114 | cd ${RTOS_IPC_FW_DIR}; \ | ||
115 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu2_0_release_strip.xer5f \ | ||
116 | ipc_echo_test_mcu2_0_release_strip.xer5f.signed; \ | ||
117 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu2_1_release_strip.xer5f \ | ||
118 | ipc_echo_test_mcu2_1_release_strip.xer5f.signed; \ | ||
119 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu3_0_release_strip.xer5f \ | ||
120 | ipc_echo_test_mcu3_0_release_strip.xer5f.signed; \ | ||
121 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu3_1_release_strip.xer5f \ | ||
122 | ipc_echo_test_mcu3_1_release_strip.xer5f.signed; \ | ||
123 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c7x_1_release_strip.xe71 \ | ||
124 | ipc_echo_test_c7x_1_release_strip.xe71.signed; \ | ||
125 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c7x_2_release_strip.xe71 \ | ||
126 | ipc_echo_test_c7x_2_release_strip.xe71.signed; \ | ||
127 | ) | ||
113 | } | 128 | } |
114 | 129 | ||
115 | # Update the am64xx ipc binaries to be consistent with other platforms | 130 | # Update the am64xx ipc binaries to be consistent with other platforms |
@@ -218,6 +233,13 @@ do_install_j721s2-hs-evm() { | |||
218 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | 233 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} |
219 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71 ${LEGACY_IPC_FW_DIR} | 234 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71 ${LEGACY_IPC_FW_DIR} |
220 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_2_release_strip.xe71 ${LEGACY_IPC_FW_DIR} | 235 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_2_release_strip.xe71 ${LEGACY_IPC_FW_DIR} |
236 | # Signed firmware | ||
237 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
238 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
239 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_0_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
240 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
241 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71.signed ${LEGACY_IPC_FW_DIR} | ||
242 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_2_release_strip.xe71.signed ${LEGACY_IPC_FW_DIR} | ||
221 | # DM Firmware | 243 | # DM Firmware |
222 | install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR} | 244 | install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR} |
223 | # ETH firmware | 245 | # ETH firmware |
@@ -342,6 +364,12 @@ ALTERNATIVE_${PN}_j721s2-hs-evm = "\ | |||
342 | j721s2-main-r5f1_1-fw \ | 364 | j721s2-main-r5f1_1-fw \ |
343 | j721s2-c71_0-fw \ | 365 | j721s2-c71_0-fw \ |
344 | j721s2-c71_1-fw \ | 366 | j721s2-c71_1-fw \ |
367 | j721s2-main-r5f0_0-fw-sec \ | ||
368 | j721s2-main-r5f0_1-fw-sec \ | ||
369 | j721s2-main-r5f1_0-fw-sec \ | ||
370 | j721s2-main-r5f1_1-fw-sec \ | ||
371 | j721s2-c71_0-fw-sec \ | ||
372 | j721s2-c71_1-fw-sec \ | ||
345 | " | 373 | " |
346 | 374 | ||
347 | # Set up link names for the firmwares | 375 | # Set up link names for the firmwares |
@@ -407,6 +435,13 @@ TARGET_MAIN_R5FSS1_1_j721s2-hs-evm = "j721s2-main-r5f1_1-fw" | |||
407 | TARGET_C7X_0_j721s2-hs-evm = "j721s2-c71_0-fw" | 435 | TARGET_C7X_0_j721s2-hs-evm = "j721s2-c71_0-fw" |
408 | TARGET_C7X_1_j721s2-hs-evm = "j721s2-c71_1-fw" | 436 | TARGET_C7X_1_j721s2-hs-evm = "j721s2-c71_1-fw" |
409 | 437 | ||
438 | TARGET_MAIN_R5FSS0_0_SIGNED_j721s2-hs-evm = "j721s2-main-r5f0_0-fw-sec" | ||
439 | TARGET_MAIN_R5FSS0_1_SIGNED_j721s2-hs-evm = "j721s2-main-r5f0_1-fw-sec" | ||
440 | TARGET_MAIN_R5FSS1_0_SIGNED_j721s2-hs-evm = "j721s2-main-r5f1_0-fw-sec" | ||
441 | TARGET_MAIN_R5FSS1_1_SIGNED_j721s2-hs-evm = "j721s2-main-r5f1_1-fw-sec" | ||
442 | TARGET_C7X_0_SIGNED_j721s2-hs-evm = "j721s2-c71_0-fw-sec" | ||
443 | TARGET_C7X_1_SIGNED_j721s2-hs-evm = "j721s2-c71_1-fw-sec" | ||
444 | |||
410 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | 445 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" |
411 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | 446 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" |
412 | 447 | ||
@@ -454,6 +489,13 @@ ALTERNATIVE_LINK_NAME[j721s2-main-r5f1_1-fw] = "${base_libdir}/firmware/${TARGET | |||
454 | ALTERNATIVE_LINK_NAME[j721s2-c71_0-fw] = "${base_libdir}/firmware/${TARGET_C7X_0}" | 489 | ALTERNATIVE_LINK_NAME[j721s2-c71_0-fw] = "${base_libdir}/firmware/${TARGET_C7X_0}" |
455 | ALTERNATIVE_LINK_NAME[j721s2-c71_1-fw] = "${base_libdir}/firmware/${TARGET_C7X_1}" | 490 | ALTERNATIVE_LINK_NAME[j721s2-c71_1-fw] = "${base_libdir}/firmware/${TARGET_C7X_1}" |
456 | 491 | ||
492 | ALTERNATIVE_LINK_NAME[j721s2-main-r5f0_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0_SIGNED}" | ||
493 | ALTERNATIVE_LINK_NAME[j721s2-main-r5f0_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1_SIGNED}" | ||
494 | ALTERNATIVE_LINK_NAME[j721s2-main-r5f1_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0_SIGNED}" | ||
495 | ALTERNATIVE_LINK_NAME[j721s2-main-r5f1_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1_SIGNED}" | ||
496 | ALTERNATIVE_LINK_NAME[j721s2-c71_0-fw-sec] = "${base_libdir}/firmware/${TARGET_C7X_0_SIGNED}" | ||
497 | ALTERNATIVE_LINK_NAME[j721s2-c71_1-fw-sec] = "${base_libdir}/firmware/${TARGET_C7X_1_SIGNED}" | ||
498 | |||
457 | # Create the firmware alternatives | 499 | # Create the firmware alternatives |
458 | 500 | ||
459 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f" | 501 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f" |
@@ -503,6 +545,13 @@ ALTERNATIVE_TARGET[j721s2-main-r5f1_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc | |||
503 | ALTERNATIVE_TARGET[j721s2-c71_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71" | 545 | ALTERNATIVE_TARGET[j721s2-c71_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71" |
504 | ALTERNATIVE_TARGET[j721s2-c71_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_2_release_strip.xe71" | 546 | ALTERNATIVE_TARGET[j721s2-c71_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_2_release_strip.xe71" |
505 | 547 | ||
548 | ALTERNATIVE_TARGET[j721s2-main-r5f0_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_0_release_strip.xer5f.signed" | ||
549 | ALTERNATIVE_TARGET[j721s2-main-r5f0_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f.signed" | ||
550 | ALTERNATIVE_TARGET[j721s2-main-r5f1_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f.signed" | ||
551 | ALTERNATIVE_TARGET[j721s2-main-r5f1_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f.signed" | ||
552 | ALTERNATIVE_TARGET[j721s2-c71_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71.signed" | ||
553 | ALTERNATIVE_TARGET[j721s2-c71_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_2_release_strip.xe71.signed" | ||
554 | |||
506 | ALTERNATIVE_PRIORITY = "10" | 555 | ALTERNATIVE_PRIORITY = "10" |
507 | 556 | ||
508 | # make sure that lib/firmware, and all its contents are part of the package | 557 | # make sure that lib/firmware, and all its contents are part of the package |