Received: from mailout4.zoneedit.com (mailout4.zoneedit.com [64.68.198.64]) by mx.groups.io with SMTP id smtpd.web09.3372.1637378776066608984 for ; Fri, 19 Nov 2021 19:26:16 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: denix.org, ip: 64.68.198.64, mailfrom: denis@denix.org) Received: from localhost (localhost [127.0.0.1]) by mailout4.zoneedit.com (Postfix) with ESMTP id B27C840C86 for ; Sat, 20 Nov 2021 03:26:14 +0000 (UTC) Received: from mailout4.zoneedit.com ([127.0.0.1]) by localhost (zmo14-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zhdfcrwKCw_d for ; Sat, 20 Nov 2021 03:26:14 +0000 (UTC) Received: from mail.denix.org (pool-100-15-86-127.washdc.fios.verizon.net [100.15.86.127]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout4.zoneedit.com (Postfix) with ESMTPSA id B7ED740C88 for ; Sat, 20 Nov 2021 03:26:12 +0000 (UTC) Received: from gimli.denix (unknown [192.168.30.6]) by mail.denix.org (Postfix) with ESMTP id 78BC71746DC for ; Fri, 19 Nov 2021 22:26:12 -0500 (EST) From: "Denys Dmytriyenko" To: meta-ti@lists.yoctoproject.org Subject: [master][PATCH v2 19/26] ti-rtos-firmware: Add j7200 hs support Date: Fri, 19 Nov 2021 22:26:04 -0500 Message-Id: <1637378771-24987-20-git-send-email-denis@denix.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1637378771-24987-1-git-send-email-denis@denix.org> References: <1637378771-24987-1-git-send-email-denis@denix.org> From: Yogesh Siraswar We cannot use j7200 keyword for match b'n j7200-evm and j7200-hs-evm due to existing j7 keyword, we need to duplicate all the j7200 entries for hs. Also sign the DM firmware for J7200 similar to J7 HS Signed-off-by: Yogesh Siraswar Signed-off-by: Denys Dmytriyenko --- recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 36 +++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb index 1248c9e..c0beb55 100644 --- a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb +++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb @@ -15,6 +15,7 @@ inherit update-alternatives PLAT_SFX = "" PLAT_SFX:j7 = "j721e" PLAT_SFX:j7200-evm = "j7200" +PLAT_SFX:j7200-hs-evm = "j7200" PLAT_SFX:am65xx = "am65xx" PLAT_SFX:am64xx = "am64xx" @@ -55,6 +56,15 @@ do_install:prepend:j7-hs-evm() { ) } +# J7 HS support +do_install:prepend:j7200-hs-evm() { + export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG} + ( cd ${RTOS_DM_FW_DIR}; \ + mv ${DM_FIRMWARE} ${DM_FIRMWARE}.unsigned; \ + ${TI_SECURE_DEV_PKG}/scripts/secure-binary-image.sh ${DM_FIRMWARE}.unsigned ${DM_FIRMWARE}; \ + ) +} + # Update the am64xx ipc binaries to be consistent with other platforms do_install:prepend:am64xx() { ( cd ${RTOS_IPC_FW_DIR}; \ @@ -68,7 +78,7 @@ do_install:prepend:am64xx() { #Install all R5 & DSP ipc echo test binaries in lib/firmware/pdk-ipc, with softlinks up a level do_install() { - + : } do_install:j7() { @@ -100,6 +110,18 @@ do_install:j7200-evm() { install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} } +do_install:j7200-hs-evm() { + install -d ${LEGACY_IPC_FW_DIR} + install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} + install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} + install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu2_1_release_strip.xer5f ${LEGACY_IPC_FW_DIR} + # DM Firmware + install -m 0644 ${RTOS_DM_FW_DIR}/ipc_echo_testb_mcu1_0_release_strip.xer5f ${LEGACY_DM_FW_DIR} + # ETH firmware + install -d ${LEGACY_ETH_FW_DIR} + install -m 0644 ${RTOS_ETH_FW_DIR}/app_remoteswitchcfg_server_strip.xer5f ${LEGACY_ETH_FW_DIR} +} + do_install:am65xx() { install -d ${LEGACY_IPC_FW_DIR} install -m 0644 ${RTOS_IPC_FW_DIR}/ipc_echo_test_mcu1_0_release_strip.xer5f ${LEGACY_IPC_FW_DIR} @@ -148,6 +170,13 @@ ALTERNATIVE:${PN}:j7200-evm = "\ j7200-main-r5f0_1-fw \ " +ALTERNATIVE:${PN}:j7200-hs-evm = "\ + j7200-mcu-r5f0_0-fw \ + j7200-mcu-r5f0_1-fw \ + j7200-main-r5f0_0-fw \ + j7200-main-r5f0_1-fw \ + " + # Set up link names for the firmwares TARGET_MCU_R5FSS0_0:am65xx = "am65x-mcu-r5f0_0-fw" @@ -174,6 +203,11 @@ TARGET_MCU_R5FSS0_1:j7200-evm = "j7200-mcu-r5f0_1-fw" TARGET_MAIN_R5FSS0_0:j7200-evm = "j7200-main-r5f0_0-fw" TARGET_MAIN_R5FSS0_1:j7200-evm = "j7200-main-r5f0_1-fw" +TARGET_MCU_R5FSS0_0:j7200-hs-evm = "j7200-mcu-r5f0_0-fw" +TARGET_MCU_R5FSS0_1:j7200-hs-evm = "j7200-mcu-r5f0_1-fw" +TARGET_MAIN_R5FSS0_0:j7200-hs-evm = "j7200-main-r5f0_0-fw" +TARGET_MAIN_R5FSS0_1:j7200-hs-evm = "j7200-main-r5f0_1-fw" + ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_0}" ALTERNATIVE_LINK_NAME[am65x-mcu-r5f0_1-fw] = "${base_libdir}/firmware/${TARGET_MCU_R5FSS0_1}" -- 2.7.4