diff options
-rw-r--r-- | recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 138 |
1 files changed, 138 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 68c93ae7..31212aae 100644 --- a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | |||
@@ -20,6 +20,7 @@ PLAT_SFX_j7200-hs-evm = "j7200" | |||
20 | PLAT_SFX_j721s2-evm = "j721s2" | 20 | PLAT_SFX_j721s2-evm = "j721s2" |
21 | PLAT_SFX_j721s2-hs-evm = "j721s2" | 21 | PLAT_SFX_j721s2-hs-evm = "j721s2" |
22 | PLAT_SFX_j784s4-evm = "j784s4" | 22 | PLAT_SFX_j784s4-evm = "j784s4" |
23 | PLAT_SFX_j784s4-hs-evm = "j784s4" | ||
23 | PLAT_SFX_am65xx = "am65xx" | 24 | PLAT_SFX_am65xx = "am65xx" |
24 | PLAT_SFX_am64xx = "am64xx" | 25 | PLAT_SFX_am64xx = "am64xx" |
25 | PLAT_SFX_am62xx = "am62xx" | 26 | PLAT_SFX_am62xx = "am62xx" |
@@ -128,6 +129,38 @@ do_install_prepend_j721s2-hs-evm() { | |||
128 | ) | 129 | ) |
129 | } | 130 | } |
130 | 131 | ||
132 | # J784S4 support | ||
133 | do_install_prepend_j784s4-hs-evm() { | ||
134 | export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} | ||
135 | ( cd ${RTOS_DM_FW_DIR}; \ | ||
136 | mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ | ||
137 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ | ||
138 | ) | ||
139 | ( | ||
140 | cd ${RTOS_IPC_FW_DIR}; \ | ||
141 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu2_0_release_strip.xer5f \ | ||
142 | ipc_echo_test_mcu2_0_release_strip.xer5f.signed; \ | ||
143 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu2_1_release_strip.xer5f \ | ||
144 | ipc_echo_test_mcu2_1_release_strip.xer5f.signed; \ | ||
145 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu3_0_release_strip.xer5f \ | ||
146 | ipc_echo_test_mcu3_0_release_strip.xer5f.signed; \ | ||
147 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu3_1_release_strip.xer5f \ | ||
148 | ipc_echo_test_mcu3_1_release_strip.xer5f.signed; \ | ||
149 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu4_0_release_strip.xer5f \ | ||
150 | ipc_echo_test_mcu4_0_release_strip.xer5f.signed; \ | ||
151 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_mcu4_1_release_strip.xer5f \ | ||
152 | ipc_echo_test_mcu4_1_release_strip.xer5f.signed; \ | ||
153 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c7x_1_release_strip.xe71 \ | ||
154 | ipc_echo_test_c7x_1_release_strip.xe71.signed; \ | ||
155 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c7x_2_release_strip.xe71 \ | ||
156 | ipc_echo_test_c7x_2_release_strip.xe71.signed; \ | ||
157 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c7x_3_release_strip.xe71 \ | ||
158 | ipc_echo_test_c7x_3_release_strip.xe71.signed; \ | ||
159 | ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ipc_echo_test_c7x_4_release_strip.xe71 \ | ||
160 | ipc_echo_test_c7x_4_release_strip.xe71.signed; \ | ||
161 | ) | ||
162 | } | ||
163 | |||
131 | # Update the am64xx ipc binaries to be consistent with other platforms | 164 | # Update the am64xx ipc binaries to be consistent with other platforms |
132 | do_install_prepend_am64xx() { | 165 | do_install_prepend_am64xx() { |
133 | ( cd ${RTOS_IPC_FW_DIR}; \ | 166 | ( cd ${RTOS_IPC_FW_DIR}; \ |
@@ -248,6 +281,37 @@ do_install_j721s2-hs-evm() { | |||
248 | # install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} | 281 | # install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} |
249 | } | 282 | } |
250 | 283 | ||
284 | do_install_j784s4-hs-evm() { | ||
285 | install -d ${LEGACY_IPC_FW_DIR} | ||
286 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
287 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
288 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
289 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
290 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
291 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu4_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
292 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu4_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | ||
293 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71 ${LEGACY_IPC_FW_DIR} | ||
294 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_2_release_strip.xe71 ${LEGACY_IPC_FW_DIR} | ||
295 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_3_release_strip.xe71 ${LEGACY_IPC_FW_DIR} | ||
296 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_4_release_strip.xe71 ${LEGACY_IPC_FW_DIR} | ||
297 | # Signed firmware | ||
298 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
299 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
300 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_0_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
301 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu3_1_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
302 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu4_0_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
303 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu4_1_release_strip.xer5f.signed ${LEGACY_IPC_FW_DIR} | ||
304 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_1_release_strip.xe71.signed ${LEGACY_IPC_FW_DIR} | ||
305 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_2_release_strip.xe71.signed ${LEGACY_IPC_FW_DIR} | ||
306 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_3_release_strip.xe71.signed ${LEGACY_IPC_FW_DIR} | ||
307 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_c7x_4_release_strip.xe71.signed ${LEGACY_IPC_FW_DIR} | ||
308 | # DM Firmware | ||
309 | install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR} | ||
310 | # ETH firmware | ||
311 | install -d ${LEGACY_ETH_FW_DIR} | ||
312 | install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} | ||
313 | } | ||
314 | |||
251 | do_install_j784s4-evm() { | 315 | do_install_j784s4-evm() { |
252 | install -d ${LEGACY_IPC_FW_DIR} | 316 | install -d ${LEGACY_IPC_FW_DIR} |
253 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} | 317 | install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} |
@@ -408,6 +472,34 @@ ALTERNATIVE_${PN}_j784s4-evm = "\ | |||
408 | j784s4-c71_3-fw \ | 472 | j784s4-c71_3-fw \ |
409 | " | 473 | " |
410 | 474 | ||
475 | ALTERNATIVE_${PN}_j784s4-hs-evm = "\ | ||
476 | j784s4-mcu-r5f0_0-fw \ | ||
477 | j784s4-mcu-r5f0_1-fw \ | ||
478 | j784s4-main-r5f0_0-fw \ | ||
479 | j784s4-main-r5f0_1-fw \ | ||
480 | j784s4-main-r5f1_0-fw \ | ||
481 | j784s4-main-r5f1_1-fw \ | ||
482 | j784s4-main-r5f2_0-fw \ | ||
483 | j784s4-main-r5f2_1-fw \ | ||
484 | j784s4-c71_0-fw \ | ||
485 | j784s4-c71_1-fw \ | ||
486 | j784s4-c71_2-fw \ | ||
487 | j784s4-c71_3-fw \ | ||
488 | " | ||
489 | |||
490 | ALTERNATIVE_${PN}_j784s4-hs-evm += "\ | ||
491 | j784s4-main-r5f0_0-fw-sec \ | ||
492 | j784s4-main-r5f0_1-fw-sec \ | ||
493 | j784s4-main-r5f1_0-fw-sec \ | ||
494 | j784s4-main-r5f1_1-fw-sec \ | ||
495 | j784s4-main-r5f2_0-fw-sec \ | ||
496 | j784s4-main-r5f2_1-fw-sec \ | ||
497 | j784s4-c71_0-fw-sec \ | ||
498 | j784s4-c71_1-fw-sec \ | ||
499 | j784s4-c71_2-fw-sec \ | ||
500 | j784s4-c71_3-fw-sec \ | ||
501 | " | ||
502 | |||
411 | # Set up link names for the firmwares | 503 | # Set up link names for the firmwares |
412 | 504 | ||
413 | TARGET_MCU_R5FSS0_0_am65xx = "am65x-mcu-r5f0_0-fw" | 505 | TARGET_MCU_R5FSS0_0_am65xx = "am65x-mcu-r5f0_0-fw" |
@@ -491,6 +583,30 @@ TARGET_C7X_1_j784s4-evm = "j784s4-c71_1-fw" | |||
491 | TARGET_C7X_2_j784s4-evm = "j784s4-c71_2-fw" | 583 | TARGET_C7X_2_j784s4-evm = "j784s4-c71_2-fw" |
492 | TARGET_C7X_3_j784s4-evm = "j784s4-c71_3-fw" | 584 | TARGET_C7X_3_j784s4-evm = "j784s4-c71_3-fw" |
493 | 585 | ||
586 | TARGET_MCU_R5FSS0_0_j784s4-hs-evm = "j784s4-mcu-r5f0_0-fw" | ||
587 | TARGET_MCU_R5FSS0_1_j784s4-hs-evm = "j784s4-mcu-r5f0_1-fw" | ||
588 | TARGET_MAIN_R5FSS0_0_j784s4-hs-evm = "j784s4-main-r5f0_0-fw" | ||
589 | TARGET_MAIN_R5FSS0_1_j784s4-hs-evm = "j784s4-main-r5f0_1-fw" | ||
590 | TARGET_MAIN_R5FSS1_0_j784s4-hs-evm = "j784s4-main-r5f1_0-fw" | ||
591 | TARGET_MAIN_R5FSS1_1_j784s4-hs-evm = "j784s4-main-r5f1_1-fw" | ||
592 | TARGET_MAIN_R5FSS2_0_j784s4-hs-evm = "j784s4-main-r5f2_0-fw" | ||
593 | TARGET_MAIN_R5FSS2_1_j784s4-hs-evm = "j784s4-main-r5f2_1-fw" | ||
594 | TARGET_C7X_0_j784s4-hs-evm = "j784s4-c71_0-fw" | ||
595 | TARGET_C7X_1_j784s4-hs-evm = "j784s4-c71_1-fw" | ||
596 | TARGET_C7X_2_j784s4-hs-evm = "j784s4-c71_2-fw" | ||
597 | TARGET_C7X_3_j784s4-hs-evm = "j784s4-c71_3-fw" | ||
598 | |||
599 | TARGET_MAIN_R5FSS0_0_SIGNED_j784s4-hs-evm = "j784s4-main-r5f0_0-fw-sec" | ||
600 | TARGET_MAIN_R5FSS0_1_SIGNED_j784s4-hs-evm = "j784s4-main-r5f0_1-fw-sec" | ||
601 | TARGET_MAIN_R5FSS1_0_SIGNED_j784s4-hs-evm = "j784s4-main-r5f1_0-fw-sec" | ||
602 | TARGET_MAIN_R5FSS1_1_SIGNED_j784s4-hs-evm = "j784s4-main-r5f1_1-fw-sec" | ||
603 | TARGET_MAIN_R5FSS2_0_SIGNED_j784s4-hs-evm = "j784s4-main-r5f2_0-fw-sec" | ||
604 | TARGET_MAIN_R5FSS2_1_SIGNED_j784s4-hs-evm = "j784s4-main-r5f2_1-fw-sec" | ||
605 | TARGET_C7X_0_SIGNED_j784s4-hs-evm = "j784s4-c71_0-fw-sec" | ||
606 | TARGET_C7X_1_SIGNED_j784s4-hs-evm = "j784s4-c71_1-fw-sec" | ||
607 | TARGET_C7X_2_SIGNED_j784s4-hs-evm = "j784s4-c71_2-fw-sec" | ||
608 | TARGET_C7X_3_SIGNED_j784s4-hs-evm = "j784s4-c71_3-fw-sec" | ||
609 | |||
494 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" | 610 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" |
495 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" | 611 | ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" |
496 | 612 | ||
@@ -558,6 +674,17 @@ ALTERNATIVE_LINK_NAME[j784s4-c71_1-fw] = "${base_libdir}/firmware/${TARGET_C7X_1 | |||
558 | ALTERNATIVE_LINK_NAME[j784s4-c71_2-fw] = "${base_libdir}/firmware/${TARGET_C7X_2}" | 674 | ALTERNATIVE_LINK_NAME[j784s4-c71_2-fw] = "${base_libdir}/firmware/${TARGET_C7X_2}" |
559 | ALTERNATIVE_LINK_NAME[j784s4-c71_3-fw] = "${base_libdir}/firmware/${TARGET_C7X_3}" | 675 | ALTERNATIVE_LINK_NAME[j784s4-c71_3-fw] = "${base_libdir}/firmware/${TARGET_C7X_3}" |
560 | 676 | ||
677 | ALTERNATIVE_LINK_NAME[j784s4-main-r5f0_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0_SIGNED}" | ||
678 | ALTERNATIVE_LINK_NAME[j784s4-main-r5f0_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_1_SIGNED}" | ||
679 | ALTERNATIVE_LINK_NAME[j784s4-main-r5f1_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_0_SIGNED}" | ||
680 | ALTERNATIVE_LINK_NAME[j784s4-main-r5f1_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS1_1_SIGNED}" | ||
681 | ALTERNATIVE_LINK_NAME[j784s4-main-r5f2_0-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS2_0_SIGNED}" | ||
682 | ALTERNATIVE_LINK_NAME[j784s4-main-r5f2_1-fw-sec] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS2_1_SIGNED}" | ||
683 | ALTERNATIVE_LINK_NAME[j784s4-c71_0-fw-sec] = "${base_libdir}/firmware/${TARGET_C7X_0_SIGNED}" | ||
684 | ALTERNATIVE_LINK_NAME[j784s4-c71_1-fw-sec] = "${base_libdir}/firmware/${TARGET_C7X_1_SIGNED}" | ||
685 | ALTERNATIVE_LINK_NAME[j784s4-c71_2-fw-sec] = "${base_libdir}/firmware/${TARGET_C7X_2_SIGNED}" | ||
686 | ALTERNATIVE_LINK_NAME[j784s4-c71_3-fw-sec] = "${base_libdir}/firmware/${TARGET_C7X_3_SIGNED}" | ||
687 | |||
561 | # Create the firmware alternatives | 688 | # Create the firmware alternatives |
562 | 689 | ||
563 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f" | 690 | ALTERNATIVE_TARGET[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu1_0_release_strip.xer5f" |
@@ -627,6 +754,17 @@ ALTERNATIVE_TARGET[j784s4-c71_1-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_ | |||
627 | ALTERNATIVE_TARGET[j784s4-c71_2-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_3_release_strip.xe71" | 754 | ALTERNATIVE_TARGET[j784s4-c71_2-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_3_release_strip.xe71" |
628 | ALTERNATIVE_TARGET[j784s4-c71_3-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_4_release_strip.xe71" | 755 | ALTERNATIVE_TARGET[j784s4-c71_3-fw] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_4_release_strip.xe71" |
629 | 756 | ||
757 | ALTERNATIVE_TARGET[j784s4-main-r5f0_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_0_release_strip.xer5f.signed" | ||
758 | ALTERNATIVE_TARGET[j784s4-main-r5f0_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu2_1_release_strip.xer5f.signed" | ||
759 | ALTERNATIVE_TARGET[j784s4-main-r5f1_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_0_release_strip.xer5f.signed" | ||
760 | ALTERNATIVE_TARGET[j784s4-main-r5f1_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu3_1_release_strip.xer5f.signed" | ||
761 | ALTERNATIVE_TARGET[j784s4-main-r5f2_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu4_0_release_strip.xer5f.signed" | ||
762 | ALTERNATIVE_TARGET[j784s4-main-r5f2_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_mcu4_1_release_strip.xer5f.signed" | ||
763 | ALTERNATIVE_TARGET[j784s4-c71_0-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_1_release_strip.xe71.signed" | ||
764 | ALTERNATIVE_TARGET[j784s4-c71_1-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_2_release_strip.xe71.signed" | ||
765 | ALTERNATIVE_TARGET[j784s4-c71_2-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_3_release_strip.xe71.signed" | ||
766 | ALTERNATIVE_TARGET[j784s4-c71_3-fw-sec] = "${base_libdir}/firmware/pdk-ipc/ipc_echo_test_c7x_4_release_strip.xe71.signed" | ||
767 | |||
630 | ALTERNATIVE_PRIORITY = "10" | 768 | ALTERNATIVE_PRIORITY = "10" |
631 | 769 | ||
632 | # make sure that lib/firmware, and all its contents are part of the package | 770 | # make sure that lib/firmware, and all its contents are part of the package |