summaryrefslogtreecommitdiffstats
path: root/meta-ti-bsp/recipes-ti
diff options
context:
space:
mode:
authorManorit Chawdhry <m-chawdhry@ti.com>2022-11-04 22:46:30 +0000
committerRyan Eatmon <reatmon@ti.com>2022-11-23 16:08:24 -0600
commit04705ec7f7c050f314828c7a35cd9d418f6939f6 (patch)
tree233c4dacfd72a97db1cbe324e5f8119318068c07 /meta-ti-bsp/recipes-ti
parent529bd52c5def63a02755640cb990c0f936c2b8a3 (diff)
downloadmeta-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.bb80
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
15PLAT_SFX = "" 15PLAT_SFX = ""
16PLAT_SFX:j7 = "j721e" 16PLAT_SFX:j7 = "j721e"
17PLAT_SFX:j721e-hs-evm = "j721e"
17PLAT_SFX:j7200-evm = "j7200" 18PLAT_SFX:j7200-evm = "j7200"
18PLAT_SFX:j7200-hs-evm = "j7200" 19PLAT_SFX:j7200-hs-evm = "j7200"
19PLAT_SFX:j721s2-evm = "j721s2" 20PLAT_SFX:j721s2-evm = "j721s2"
@@ -31,7 +32,7 @@ PV = "${CORESDK_RTOS_VERSION}"
31CLEANBROKEN = "1" 32CLEANBROKEN = "1"
32PR = "${INC_PR}.0" 33PR = "${INC_PR}.0"
33 34
34# Secure Build 35# Secure Build
35DEPENDS += "openssl-native" 36DEPENDS += "openssl-native"
36 37
37TI_SECURE_DEV_PKG ?= "" 38TI_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
141do_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
118do_install:j7200-evm() { 153do_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
259ALTERNATIVE:${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
224ALTERNATIVE:${PN}:j7 = "\ 278ALTERNATIVE:${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"
293TARGET_C66_1:j7 = "j7-c66_1-fw" 347TARGET_C66_1:j7 = "j7-c66_1-fw"
294TARGET_C7X_0:j7 = "j7-c71_0-fw" 348TARGET_C7X_0:j7 = "j7-c71_0-fw"
295 349
350TARGET_MAIN_R5FSS0_0_SIGNED:j721e-hs-evm = "j7-main-r5f0_0-fw-sec"
351TARGET_MAIN_R5FSS0_1_SIGNED:j721e-hs-evm = "j7-main-r5f0_1-fw-sec"
352TARGET_MAIN_R5FSS1_0_SIGNED:j721e-hs-evm = "j7-main-r5f1_0-fw-sec"
353TARGET_MAIN_R5FSS1_1_SIGNED:j721e-hs-evm = "j7-main-r5f1_1-fw-sec"
354TARGET_C66_0_SIGNED:j721e-hs-evm = "j7-c66_0-fw-sec"
355TARGET_C66_1_SIGNED:j721e-hs-evm = "j7-c66_1-fw-sec"
356TARGET_C7X_0_SIGNED:j721e-hs-evm = "j7-c71_0-fw-sec"
357
296TARGET_MCU_R5FSS0_0:j7200-evm = "j7200-mcu-r5f0_0-fw" 358TARGET_MCU_R5FSS0_0:j7200-evm = "j7200-mcu-r5f0_0-fw"
297TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw" 359TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw"
298TARGET_MAIN_R5FSS0_0:j7200-evm = "j7200-main-r5f0_0-fw" 360TARGET_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
343ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C66_1}" 405ALTERNATIVE_LINK_NAME[j7-c66_1-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C66_1}"
344ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C7X_0}" 406ALTERNATIVE_LINK_NAME[j7-c71_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_C7X_0}"
345 407
408ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0_SIGNED}"
409ALTERNATIVE_LINK_NAME[j7-main-r5f0_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1_SIGNED}"
410ALTERNATIVE_LINK_NAME[j7-main-r5f1_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0_SIGNED}"
411ALTERNATIVE_LINK_NAME[j7-main-r5f1_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1_SIGNED}"
412ALTERNATIVE_LINK_NAME[j7-c66_0-fw-sec] = "${base_libdir}/firmware/${TARGET_C66_0_SIGNED}"
413ALTERNATIVE_LINK_NAME[j7-c66_1-fw-sec] = "${base_libdir}/firmware/${TARGET_C66_1_SIGNED}"
414ALTERNATIVE_LINK_NAME[j7-c71_0-fw-sec] = "${base_libdir}/firmware/${TARGET_C7X_0_SIGNED}"
415
346ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" 416ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}"
347ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" 417ALTERNATIVE_LINK_NAME[j7200-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}"
348ALTERNATIVE_LINK_NAME[j7200-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" 418ALTERNATIVE_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
381ALTERNATIVE_TARGET[j7-c66_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66" 451ALTERNATIVE_TARGET[j7-c66_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66"
382ALTERNATIVE_TARGET[j7-c71_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71" 452ALTERNATIVE_TARGET[j7-c71_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71"
383 453
454ALTERNATIVE_TARGET[j7-main-r5f0_0-fw-sec] = "${base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f.signed"
455ALTERNATIVE_TARGET[j7-main-r5f0_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f.signed"
456ALTERNATIVE_TARGET[j7-main-r5f1_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f.signed"
457ALTERNATIVE_TARGET[j7-main-r5f1_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f.signed"
458ALTERNATIVE_TARGET[j7-c66_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_1_release_strip.xe66.signed"
459ALTERNATIVE_TARGET[j7-c66_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c66xdsp_2_release_strip.xe66.signed"
460ALTERNATIVE_TARGET[j7-c71_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71.signed"
461
384ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f" 462ALTERNATIVE_TARGET[j7200-mcu-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_testb_mcu1_0_release_strip.xer5f"
385ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f" 463ALTERNATIVE_TARGET[j7200-mcu-r5f0_1-fw] = "${nonarch_base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_1_release_strip.xer5f"
386ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f" 464ALTERNATIVE_TARGET[j7200-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/ethfw/app_remoteswitchcfg_server_strip.xer5f"