* [meta-ti][dunfell/master][PATCH] ti-rtos-firmware: update the source to ti-linux-firmware
@ 2021-07-15 20:33 Yogesh Siraswar
2021-07-16 8:04 ` [EXTERNAL] " Vignesh Raghavendra
0 siblings, 1 reply; 3+ messages in thread
From: Yogesh Siraswar @ 2021-07-15 20:33 UTC (permalink / raw)
To: Denys Dmytriyenko, Praneeth Bajjuri, Nishant Menon, meta-ti
This is temporary change to pick the 08.00.00.026 firmware from
ti-linux-firmware repos:
1) Using the ti-sci-fw to pick the latest firmware and support AUTOREV
2) Kept the destination folder name same to avoid wide-spead changes to
other recipes. Since that will be changed as part of over-all clean-up
TODO:
1) Re-structure rtos firmware repo and update all dependent firmware recipes.
2) Fix the destination folder name to match src folder
Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
---
recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb | 107 ++++++++-------------
1 file changed, 42 insertions(+), 65 deletions(-)
diff --git a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
index e5a4c43b..54a99286 100644
--- a/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
+++ b/recipes-ti/ti-rtos-bin/ti-rtos-firmware.bb
@@ -11,90 +11,67 @@ INHIBIT_DEFAULT_DEPS = "1"
inherit deploy
-DEFAULT_METADATA_FILE ?= "metadata.inc"
-DEFAULT_METADATA_FILE_am64xx ?= "mcusdk_metadata.inc"
-
-# First, let's try including metadata.inc that could be fetched and deployed
-# by ti-rtos-metadata earlier and provide new set of CORESDK_RTOS_* variables
-include ${DEPLOY_DIR_IMAGE}/${DEFAULT_METADATA_FILE}
-
-# Set some defaults for when metadata.inc is not available
-DEFAULT_RTOS_FAMILY = "jacinto"
-DEFAULT_RTOS_VERSION = "07_03_00_29"
-DEFAULT_RTOS_VERSION_DOT = "07.03.00.29"
-
-DEFAULT_RTOS_VERSION_am64xx = "07_03_00_19"
-DEFAULT_RTOS_VERSION_DOT_am64xx = "07.03.00.19"
-
-DEFAULT_RTOS_VERSION_am65xx = "07_03_00_22"
-DEFAULT_RTOS_VERSION_DOT_am65xx = "07.03.00.22"
-
-DEFAULT_RTOS_SOC = "undefined"
-DEFAULT_RTOS_SOC_j7 = "j721e"
-DEFAULT_RTOS_SOC_j7200-evm = "j7200"
-DEFAULT_RTOS_SOC_am65xx = "am65xx"
-DEFAULT_RTOS_SOC_am64xx = "am64x"
-
-DEFAULT_RTOS_WEBLINK = "undefined"
-DEFAULT_RTOS_WEBLINK_j7 = "https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/firmware/${CORESDK_RTOS_VERSION}"
-DEFAULT_RTOS_WEBLINK_j7200-evm = "https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-j7200/firmware/${CORESDK_RTOS_VERSION}"
-DEFAULT_RTOS_WEBLINK_am65xx = "https://software-dl.ti.com/processor-sdk-rtos/esd/AM65X/firmware/${CORESDK_RTOS_VERSION}"
-DEFAULT_RTOS_WEBLINK_am64xx = "https://software-dl.ti.com/processor-sdk-rtos/esd/AM64X/firmware/${CORESDK_RTOS_VERSION}"
-
-DEFAULT_FIRMWARE_FILE = "coresdk_rtos_${CORESDK_RTOS_SOC}_${CORESDK_RTOS_VERSION}_firmware.tar.xz"
-DEFAULT_FIRMWARE_FILE_am64xx = "mcu_plus_sdk_${CORESDK_RTOS_SOC}_${CORESDK_RTOS_VERSION}_firmware.tar.xz"
-
-DEFAULT_FIRMWARE_URL = "file://empty"
-DEFAULT_FIRMWARE_URL_k3 = "${CORESDK_RTOS_WEBLINK}/${DEFAULT_FIRMWARE_FILE}"
-
-DEFAULT_FIRMWARE_SHA256SUM = "unknown"
-DEFAULT_FIRMWARE_SHA256SUM_j7 = "1e306065d7273c4ac6f803d5b404ba5ff0ddd55a1afa2911944fe5e696629193"
-DEFAULT_FIRMWARE_SHA256SUM_j7200-evm = "28fa4f5c57459ea0adc44e8c83b814a4adcfb887bee69769c5656adf628586b2"
-DEFAULT_FIRMWARE_SHA256SUM_am65xx = "61e0be08bea8ab1055645bd96504a6a29c70318c5b277237dee9981cd94d7f79"
-DEFAULT_FIRMWARE_SHA256SUM_am64xx = "5d1785cbdb91904a5ef3027378061041c59186c4198d7ebcfa660a1ff513d528"
-
-# Use weak assignment for CORESDK_RTOS_* variables to use defaults if not yet set
-CORESDK_RTOS_FAMILY ?= "${DEFAULT_RTOS_FAMILY}"
-CORESDK_RTOS_VERSION ?= "${DEFAULT_RTOS_VERSION}"
-CORESDK_RTOS_VERSION_DOT ?= "${DEFAULT_RTOS_VERSION_DOT}"
-CORESDK_RTOS_SOC ?= "${DEFAULT_RTOS_SOC}"
-CORESDK_RTOS_WEBLINK ?= "${DEFAULT_RTOS_WEBLINK}"
-CORESDK_RTOS_FIRMWARE_URL ?= "${DEFAULT_FIRMWARE_URL}"
-CORESDK_RTOS_FIRMWARE_SHA256SUM ?= "${DEFAULT_FIRMWARE_SHA256SUM}"
-CORESDK_RTOS_FILE_PREFIX ?= ""
-CORESDK_RTOS_FILE_SUFFIX ?= ""
-
-# Common code below
-S = "${WORKDIR}/lib"
-
-PV = "${CORESDK_RTOS_VERSION_DOT}"
-
-SRC_URI = "${CORESDK_RTOS_FIRMWARE_URL}${CORESDK_RTOS_FILE_SUFFIX}"
-SRC_URI[sha256sum] = "${CORESDK_RTOS_FIRMWARE_SHA256SUM}"
+PLAT_SFX = ""
+PLAT_SFX_j7 = "j721e"
+PLAT_SFX_j7200-evm = "j7200"
+PLAT_SFX_am65xx = "am65xx"
+require recipes-bsp/ti-sci-fw/ti-sci-fw.inc
+
+CORESDK_RTOS_VERSION="08.00.00.26"
+PV = "${CORESDK_RTOS_VERSION}"
+
+CLEANBROKEN = "1"
+PR = "r1"
+
+
+# Secure Build
DEPENDS += "openssl-native"
FILES_${PN} += "${base_libdir}"
TI_SECURE_DEV_PKG ?= ""
+RTOS_ETH_FW_DIR = "${S}/ti-eth/${PLAT_SFX}"
+RTOS_DM_FW_DIR = "${S}/ti-dm/${PLAT_SFX}"
+RTOS_IPC_FW_DIR = "${S}/ti-ipc/${PLAT_SFX}"
+
+# For back-ward compatability keeping legacy firmware folder name
+# TODO: fix this in next version
+LEGACY_ETH_FW_DIR = "${D}${base_libdir}/firmware/ethfw"
+LEGACY_IPC_FW_DIR = "${D}${base_libdir}/firmware/pdk-ipc"
+LEGACY_DM_FW_DIR = "${D}${base_libdir}/firmware/ethfw"
+
DM_FIRMWARE = "ipc_echo_testb_mcu1_0_release_strip.xer5f"
+# Install
do_install_prepend_j7-hs-evm() {
export TI_SECURE_DEV_PKG=${TI_SECURE_DEV_PKG}
- ( cd ${S}/firmware/pdk-ipc/; \
+ ( 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}; \
)
}
do_install() {
- CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
- install -d ${D}${base_libdir}
- cp ${CP_ARGS} ${S} ${D}
+ CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
+ install -d ${LEGACY_ETH_FW_DIR}
+ install -d ${LEGACY_IPC_FW_DIR}
+ cp ${CP_ARGS} "${RTOS_ETH_FW_DIR}/." ${LEGACY_ETH_FW_DIR}
+ cp ${CP_ARGS} "${RTOS_IPC_FW_DIR}/." ${LEGACY_IPC_FW_DIR}
+ cp ${CP_ARGS} "${RTOS_DM_FW_DIR}/." ${LEGACY_IPC_FW_DIR}
+}
+
+do_install_am65xx() {
+ CP_ARGS="-Prf --preserve=mode,timestamps --no-preserve=ownership"
+ install -d ${LEGACY_IPC_FW_DIR}
+ cp ${CP_ARGS} "${RTOS_IPC_FW_DIR}/." ${LEGACY_IPC_FW_DIR}
}
-FILES_${PN} = "${base_libdir}"
+
+# make sure that lib/firmware, and all its contents are part of the package
+FILES_${PN} += "${base_libdir}/firmware"
+
INHIBIT_PACKAGE_STRIP = "1"
INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [EXTERNAL] [meta-ti][dunfell/master][PATCH] ti-rtos-firmware: update the source to ti-linux-firmware
2021-07-15 20:33 [meta-ti][dunfell/master][PATCH] ti-rtos-firmware: update the source to ti-linux-firmware Yogesh Siraswar
@ 2021-07-16 8:04 ` Vignesh Raghavendra
2021-07-16 10:02 ` Yogesh Siraswar
0 siblings, 1 reply; 3+ messages in thread
From: Vignesh Raghavendra @ 2021-07-16 8:04 UTC (permalink / raw)
To: yogeshs, Denys Dmytriyenko, Praneeth Bajjuri, Nishant Menon, meta-ti
On 7/16/21 2:03 AM, Yogesh Siraswar via lists.yoctoproject.org wrote:
> This is temporary change to pick the 08.00.00.026 firmware from
> ti-linux-firmware repos:
ti-eth is @ 08.00.00.029 -> how is that taken care of?
> 1) Using the ti-sci-fw to pick the latest firmware and support AUTOREV
I thought we did not do AUTOREV on master branch in order for builds to
be reproducible?
> 2) Kept the destination folder name same to avoid wide-spead changes to
> other recipes. Since that will be changed as part of over-all clean-up
>
> TODO:
> 1) Re-structure rtos firmware repo and update all dependent firmware recipes.
> 2) Fix the destination folder name to match src folder
>
> Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
Regards
Vignesh
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [EXTERNAL] [meta-ti][dunfell/master][PATCH] ti-rtos-firmware: update the source to ti-linux-firmware
2021-07-16 8:04 ` [EXTERNAL] " Vignesh Raghavendra
@ 2021-07-16 10:02 ` Yogesh Siraswar
0 siblings, 0 replies; 3+ messages in thread
From: Yogesh Siraswar @ 2021-07-16 10:02 UTC (permalink / raw)
To: Vignesh Raghavendra, Denys Dmytriyenko, Praneeth Bajjuri,
Nishant Menon, meta-ti
On 7/16/2021 3:04 AM, Vignesh Raghavendra wrote:
>
>
> On 7/16/21 2:03 AM, Yogesh Siraswar via lists.yoctoproject.org wrote:
>> This is temporary change to pick the 08.00.00.026 firmware from
>> ti-linux-firmware repos:
>
> ti-eth is @ 08.00.00.029 -> how is that taken care of?
>
The SRCREV for the ti-sci-fw.inc will be updated to head after tagging.
Need to fix the PV to override from the ti-sci-fw. Will submit new patch
revision.
TODO: Will need to split ti-eth and ti-ipc recipes so that they can have
different versions. But that will be targeted for next release as part
of over-all clean-up.
>> 1) Using the ti-sci-fw to pick the latest firmware and support AUTOREV
>
> I thought we did not do AUTOREV on master branch in order for builds to
> be reproducible?
>
AUTOREV will be only for bleeding brand. Regular build will use the
SRCREV in ti-sci-fw.inc. This way you do not keep updating this recipe
as long as you can use the HEAD ti-linux-firmware branch. You can always
override in-case you want a specific version.
>> 2) Kept the destination folder name same to avoid wide-spead changes to
>> other recipes. Since that will be changed as part of over-all clean-up
>>
>> TODO:
>> 1) Re-structure rtos firmware repo and update all dependent firmware recipes.
>> 2) Fix the destination folder name to match src folder
>>
>> Signed-off-by: Yogesh Siraswar <yogeshs@ti.com>
>
> Regards
> Vignesh
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-07-16 10:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-15 20:33 [meta-ti][dunfell/master][PATCH] ti-rtos-firmware: update the source to ti-linux-firmware Yogesh Siraswar
2021-07-16 8:04 ` [EXTERNAL] " Vignesh Raghavendra
2021-07-16 10:02 ` Yogesh Siraswar
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.