diff options
author | Manorit Chawdhry <m-chawdhry@ti.com> | 2022-11-04 22:46:30 +0000 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2022-11-23 16:08:24 -0600 |
commit | 04705ec7f7c050f314828c7a35cd9d418f6939f6 (patch) | |
tree | 233c4dacfd72a97db1cbe324e5f8119318068c07 /meta-ti-bsp/recipes-ti | |
parent | 529bd52c5def63a02755640cb990c0f936c2b8a3 (diff) | |
download | meta-ti-04705ec7f7c050f314828c7a35cd9d418f6939f6.tar.gz |
ti-rtos-firmware: j721e-hs-evm: add secure firmware images
Adds support for secure firmware images in J721E HS EVM.
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/recipes-ti')
-rw-r--r-- | meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 80 |
1 files changed, 79 insertions, 1 deletions
diff --git a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb index 072a7c3c..d8f00ccd 100644 --- a/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +++ b/meta-ti-bsp/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | |||
@@ -14,6 +14,7 @@ inherit update-alternatives | |||
14 | 14 | ||
15 | PLAT_SFX = "" | 15 | PLAT_SFX = "" |
16 | PLAT_SFX:j7 = "j721e" | 16 | PLAT_SFX:j7 = "j721e" |
17 | PLAT_SFX:j721e-hs-evm = "j721e" | ||
17 | PLAT_SFX:j7200-evm = "j7200" | 18 | PLAT_SFX:j7200-evm = "j7200" |
18 | PLAT_SFX:j7200-hs-evm = "j7200" | 19 | PLAT_SFX:j7200-hs-evm = "j7200" |
19 | PLAT_SFX:j721s2-evm = "j721s2" | 20 | PLAT_SFX:j721s2-evm = "j721s2" |
@@ -31,7 +32,7 @@ PV = "${CORESDK_RTOS_VERSION}" | |||
31 | CLEANBROKEN = "1" | 32 | CLEANBROKEN = "1" |
32 | PR = "${INC_PR}.0" | 33 | PR = "${INC_PR}.0" |
33 | 34 | ||
34 | # Secure Build | 35 | # Secure Build |
35 | DEPENDS += "openssl-native" | 36 | DEPENDS += "openssl-native" |
36 | 37 | ||
37 | TI_SECURE_DEV_PKG ?= "" | 38 | TI_SECURE_DEV_PKG ?= "" |
@@ -55,6 +56,28 @@ do_install:prepend:j721e-hs-evm() { | |||
55 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ | 56 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ |
56 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ | 57 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ |
57 | ) | 58 | ) |
59 | ( | ||
60 | cd ${RTOS_IPC_FW_DIR}; \ | ||
61 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu2_0_release_strip.xer5f \ | ||
62 | ipc_echo_test_mcu2_0_release_strip.xer5f.signed; \ | ||
63 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu2_1_release_strip.xer5f \ | ||
64 | ipc_echo_test_mcu2_1_release_strip.xer5f.signed; \ | ||
65 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu3_0_release_strip.xer5f \ | ||
66 | ipc_echo_test_mcu3_0_release_strip.xer5f.signed; \ | ||
67 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu3_1_release_strip.xer5f \ | ||
68 | ipc_echo_test_mcu3_1_release_strip.xer5f.signed; \ | ||
69 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c66xdsp_1_release_strip.xe66 \ | ||
70 | ipc_echo_test_c66xdsp_1_release_strip.xe66.signed; \ | ||
71 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c66xdsp_2_release_strip.xe66 \ | ||
72 | ipc_echo_test_c66xdsp_2_release_strip.xe66.signed; \ | ||
73 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c7x_1_release_strip.xe71 \ | ||
74 | ipc_echo_test_c7x_1_release_strip.xe71.signed; \ | ||
75 | ) | ||
76 | ( | ||
77 | cd ${RTOS_ETH_FW_DIR}; \ | ||
78 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh app_remoteswitchcfg_server_strip.xer5f \ | ||
79 | app_remoteswitchcfg_server_strip.xer5f.signed; | ||
80 | ) | ||
58 | } | 81 | } |
59 | 82 | ||
60 | # J7 HS support | 83 | # J7 HS support |
@@ -115,6 +138,18 @@ do_install:j7() { | |||
115 | install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} | 138 | install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} |
116 | } | 139 | } |
117 | 140 | ||
141 | do_install:append:j721e-hs-evm() { | ||
142 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
143 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
144 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_0_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
145 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
146 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_1_release_strip.xe66.signed ${LEGACY_IPC_FW_DIR} | ||
147 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c66xdsp_2_release_strip.xe66.signed ${LEGACY_IPC_FW_DIR} | ||
148 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71.signed ${LEGACY_IPC_FW_DIR} | ||
149 | # ETH firmware | ||
150 | install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f.signed ${LEGACY_ETH_FW_DIR} | ||
151 | } | ||
152 | |||
118 | do_install:j7200-evm() { | 153 | do_install:j7200-evm() { |
119 | install -d ${LEGACY_IPC_FW_DIR} | 154 | install -d ${LEGACY_IPC_FW_DIR} |
120 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | 155 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} |
@@ -221,6 +256,25 @@ ALTERNATIVE:${PN}:am62xx = "\ | |||
221 | am62-main-r5f0_0-fw \ | 256 | am62-main-r5f0_0-fw \ |
222 | " | 257 | " |
223 | 258 | ||
259 | ALTERNATIVE:${PN}:j721e-hs-evm = "\ | ||
260 | j7-mcu-r5f0_0-fw \ | ||
261 | j7-mcu-r5f0_1-fw \ | ||
262 | j7-main-r5f0_0-fw \ | ||
263 | j7-main-r5f0_1-fw \ | ||
264 | j7-main-r5f1_0-fw \ | ||
265 | j7-main-r5f1_1-fw \ | ||
266 | j7-c66_0-fw \ | ||
267 | j7-c66_1-fw \ | ||
268 | j7-c71_0-fw\ | ||
269 | j7-main-r5f0_0-fw-sec \ | ||
270 | j7-main-r5f0_1-fw-sec \ | ||
271 | j7-main-r5f1_0-fw-sec \ | ||
272 | j7-main-r5f1_1-fw-sec \ | ||
273 | j7-c66_0-fw-sec \ | ||
274 | j7-c66_1-fw-sec \ | ||
275 | j7-c71_0-fw-sec \ | ||
276 | " | ||
277 | |||
224 | ALTERNATIVE:${PN}:j7 = "\ | 278 | ALTERNATIVE:${PN}:j7 = "\ |
225 | j7-mcu-r5f0_0-fw \ | 279 | j7-mcu-r5f0_0-fw \ |
226 | j7-mcu-r5f0_1-fw \ | 280 | j7-mcu-r5f0_1-fw \ |
@@ -293,6 +347,14 @@ TARGET_C66_0:j7 = "j7-c66_0-fw" | |||
293 | TARGET_C66_1:j7 = "j7-c66_1-fw" | 347 | TARGET_C66_1:j7 = "j7-c66_1-fw" |
294 | TARGET_C7X_0:j7 = "j7-c71_0-fw" | 348 | TARGET_C7X_0:j7 = "j7-c71_0-fw" |
295 | 349 | ||
350 | TARGET_MAIN_R5FSS0_0_SIGNED:j721e-hs-evm = "j7-main-r5f0_0-fw-sec" | ||
351 | TARGET_MAIN_R5FSS0_1_SIGNED:j721e-hs-evm = "j7-main-r5f0_1-fw-sec" | ||
352 | TARGET_MAIN_R5FSS1_0_SIGNED:j721e-hs-evm = "j7-main-r5f1_0-fw-sec" | ||
353 | TARGET_MAIN_R5FSS1_1_SIGNED:j721e-hs-evm = "j7-main-r5f1_1-fw-sec" | ||
354 | TARGET_C66_0_SIGNED:j721e-hs-evm = "j7-c66_0-fw-sec" | ||
355 | TARGET_C66_1_SIGNED:j721e-hs-evm = "j7-c66_1-fw-sec" | ||
356 | TARGET_C7X_0_SIGNED:j721e-hs-evm = "j7-c71_0-fw-sec" | ||
357 | |||
296 | TARGET_MCU_R5FSS0_0:j7200-evm = "j7200-mcu-r5f0_0-fw" | 358 | TARGET_MCU_R5FSS0_0:j7200-evm = "j7200-mcu-r5f0_0-fw" |
297 | TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw" | 359 | TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw" |
298 | TARGET_MAIN_R5FSS0_0:j7200-evm = "j7200-main-r5f0_0-fw" | 360 | TARGET_MAIN_R5FSS0_0:j7200-evm = "j7200-main-r5f0_0-fw" |
@@ -343,6 +405,14 @@ ALTERNATIVE_LINK_NAME[j7-c66_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C | |||
343 | ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C66_1}" | 405 | ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C66_1}" |
344 | ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C7X_0}" | 406 | ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C7X_0}" |
345 | 407 | ||
408 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0_SIGNED}" | ||
409 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1_SIGNED}" | ||
410 | ALTERNATIVE_LINK_NAME[j7-main-r5f1_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0_SIGNED}" | ||
411 | ALTERNATIVE_LINK_NAME[j7-main-r5f1_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1_SIGNED}" | ||
412 | ALTERNATIVE_LINK_NAME[j7-c66_0-fw-sec] = "${base_libdir}/firmware/${TARGET_C66_0_SIGNED}" | ||
413 | ALTERNATIVE_LINK_NAME[j7-c66_1-fw-sec] = "${base_libdir}/firmware/${TARGET_C66_1_SIGNED}" | ||
414 | ALTERNATIVE_LINK_NAME[j7-c71_0-fw-sec] = "${base_libdir}/firmware/${TARGET_C7X_0_SIGNED}" | ||
415 | |||
346 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | 416 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" |
347 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | 417 | ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" |
348 | ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | 418 | ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" |
@@ -381,6 +451,14 @@ ALTERNATIVE_TARGET[j7-c66_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_e | |||
381 | ALTERNATIVE_TARGET[j7-c66_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66" | 451 | ALTERNATIVE_TARGET[j7-c66_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66" |
382 | ALTERNATIVE_TARGET[j7-c71_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71" | 452 | ALTERNATIVE_TARGET[j7-c71_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71" |
383 | 453 | ||
454 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw-sec] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f.signed" | ||
455 | ALTERNATIVE_TARGET[j7-main-r5f0_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f.signed" | ||
456 | ALTERNATIVE_TARGET[j7-main-r5f1_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f.signed" | ||
457 | ALTERNATIVE_TARGET[j7-main-r5f1_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f.signed" | ||
458 | ALTERNATIVE_TARGET[j7-c66_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release_strip.xe66.signed" | ||
459 | ALTERNATIVE_TARGET[j7-c66_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66.signed" | ||
460 | ALTERNATIVE_TARGET[j7-c71_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71.signed" | ||
461 | |||
384 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" | 462 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" |
385 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" | 463 | ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" |
386 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" | 464 | ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" |