diff options
| author | Beleswar Padhi <b-padhi@ti.com> | 2025-08-19 15:53:49 +0530 |
|---|---|---|
| committer | Ryan Eatmon <reatmon@ti.com> | 2025-08-21 09:21:06 -0500 |
| commit | 5d7b8ae7b28ffaaa6335e184fd95397c7a14f128 (patch) | |
| tree | 796f5e5071ea6524af07d4ed89fa85ce7cd7dfec | |
| parent | 667145ff7ec641a06130729bb8ca1a0b8011ad96 (diff) | |
| download | meta-ti-5d7b8ae7b28ffaaa6335e184fd95397c7a14f128.tar.gz | |
ti-rtos-messageq-test-fw: Add a recipe to package prebuilt IPC firmware
The messageq IPC firmware example for AM57xx SoCs is available in
ti-linux-firmware repository. Add a recipe to package the prebuilt
messageq firmware into the rootfs.
Additionally, make sure the firmware for IPU1 rproc is copied into boot
partition by updating the dependency in omap-a15 machine conf to the
above recipe. This is needed for Early Boot use cases and gets rid of
dependency on meta-ti-extras layer.
There is no need to deploy the vayu IPC firmware anymore. Remove
the deploy task from ti-ipc-rtos recipe.
Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
4 files changed, 69 insertions, 13 deletions
diff --git a/meta-ti-bsp/conf/machine/include/omap-a15.inc b/meta-ti-bsp/conf/machine/include/omap-a15.inc index 3b8eb0fd..2179476f 100644 --- a/meta-ti-bsp/conf/machine/include/omap-a15.inc +++ b/meta-ti-bsp/conf/machine/include/omap-a15.inc | |||
| @@ -48,4 +48,4 @@ IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap" | |||
| 48 | WKS_FILE ?= "sdimage-2part.wks" | 48 | WKS_FILE ?= "sdimage-2part.wks" |
| 49 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES} ipc/dra7-ipu1-fw.xem4;dra7-ipu1-fw.xem4" | 49 | IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES} ipc/dra7-ipu1-fw.xem4;dra7-ipu1-fw.xem4" |
| 50 | do_image_wic[depends] += "virtual/bootloader:do_deploy" | 50 | do_image_wic[depends] += "virtual/bootloader:do_deploy" |
| 51 | do_image_wic[depends] += "ti-ipc-rtos:do_deploy" | 51 | do_image_wic[depends] += "ti-rtos-messageq-test-fw:do_deploy" |
diff --git a/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc index 61696a00..afecf72c 100644 --- a/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc +++ b/meta-ti-bsp/recipes-bsp/ti-linux-fw/ti-linux-fw.inc | |||
| @@ -19,6 +19,7 @@ TI_SYSFW_VERSION = "11.01.05" | |||
| 19 | TI_HSM_DEMO_FW_VERSION = "11.00.09" | 19 | TI_HSM_DEMO_FW_VERSION = "11.00.09" |
| 20 | TAD5212_FW_VERSION = "1.0.0.0" | 20 | TAD5212_FW_VERSION = "1.0.0.0" |
| 21 | TI_PKA_FW_VERSION = "2.1.0" | 21 | TI_PKA_FW_VERSION = "2.1.0" |
| 22 | TI_IPC_EXAMPLES_FW_VERSION = "3.52.00.01" | ||
| 22 | 23 | ||
| 23 | TI_LINUX_FW_SRCREV ?= "6506f9e1e5d8d62e9dd70123fae04bd07b90bcd5" | 24 | TI_LINUX_FW_SRCREV ?= "6506f9e1e5d8d62e9dd70123fae04bd07b90bcd5" |
| 24 | SRCREV = "${TI_LINUX_FW_SRCREV}" | 25 | SRCREV = "${TI_LINUX_FW_SRCREV}" |
diff --git a/meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-messageq-test-fw_git.bb b/meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-messageq-test-fw_git.bb new file mode 100644 index 00000000..980fe5cc --- /dev/null +++ b/meta-ti-bsp/recipes-bsp/ti-rtos-fw/ti-rtos-messageq-test-fw_git.bb | |||
| @@ -0,0 +1,67 @@ | |||
| 1 | SUMMARY = "TI MessageQ prebuilt binary firmware images" | ||
| 2 | |||
| 3 | LICENSE = "TI-TFL" | ||
| 4 | LIC_FILES_CHKSUM = "file://${THISDIR}/../../licenses/TI-TFL;md5=a1b59cb7ba626b9dbbcbf00f3fbc438a" | ||
| 5 | |||
| 6 | COMPATIBLE_MACHINE = "am57xx" | ||
| 7 | |||
| 8 | inherit update-alternatives | ||
| 9 | inherit deploy | ||
| 10 | |||
| 11 | require recipes-bsp/ti-linux-fw/ti-linux-fw.inc | ||
| 12 | |||
| 13 | PV = "${TI_IPC_EXAMPLES_FW_VERSION}" | ||
| 14 | PR = "${INC_PR}.0" | ||
| 15 | |||
| 16 | INSTALL_IPC_FW_DIR = "${nonarch_base_libdir}/firmware/ipc" | ||
| 17 | |||
| 18 | IPU_1_FW = "messageq_server_ipu1.xem4" | ||
| 19 | IPU_2_FW = "messageq_server_ipu2.xem4" | ||
| 20 | DSP_1_FW = "messageq_server_dsp1.xe66" | ||
| 21 | DSP_2_FW = "messageq_server_dsp2.xe66" | ||
| 22 | |||
| 23 | IPU_1_FW_DIR = "ti_platforms_evmDRA7XX_ipu1" | ||
| 24 | IPU_2_FW_DIR = "ti_platforms_evmDRA7XX_ipu2" | ||
| 25 | DSP_1_FW_DIR = "ti_platforms_evmDRA7XX_dsp1" | ||
| 26 | DSP_2_FW_DIR = "ti_platforms_evmDRA7XX_dsp2" | ||
| 27 | |||
| 28 | do_install() { | ||
| 29 | # Install Firmware | ||
| 30 | install -d ${D}${INSTALL_IPC_FW_DIR}/${IPU_1_FW_DIR} | ||
| 31 | install -d ${D}${INSTALL_IPC_FW_DIR}/${IPU_2_FW_DIR} | ||
| 32 | install -d ${D}${INSTALL_IPC_FW_DIR}/${DSP_1_FW_DIR} | ||
| 33 | install -d ${D}${INSTALL_IPC_FW_DIR}/${DSP_2_FW_DIR} | ||
| 34 | |||
| 35 | install -m 0644 ${S}/ti-ipc/am57xx/${IPU_1_FW} ${D}${INSTALL_IPC_FW_DIR}/${IPU_1_FW_DIR} | ||
| 36 | install -m 0644 ${S}/ti-ipc/am57xx/${IPU_2_FW} ${D}${INSTALL_IPC_FW_DIR}/${IPU_2_FW_DIR} | ||
| 37 | install -m 0644 ${S}/ti-ipc/am57xx/${DSP_1_FW} ${D}${INSTALL_IPC_FW_DIR}/${DSP_1_FW_DIR} | ||
| 38 | install -m 0644 ${S}/ti-ipc/am57xx/${DSP_2_FW} ${D}${INSTALL_IPC_FW_DIR}/${DSP_2_FW_DIR} | ||
| 39 | } | ||
| 40 | |||
| 41 | do_deploy() { | ||
| 42 | install -d ${DEPLOYDIR}/ipc | ||
| 43 | install -m 0644 ${S}/ti-ipc/am57xx/${IPU_1_FW} ${DEPLOYDIR}/ipc/dra7-ipu1-fw.xem4 | ||
| 44 | } | ||
| 45 | |||
| 46 | addtask deploy after do_install | ||
| 47 | |||
| 48 | # Set up names for the firmwares | ||
| 49 | |||
| 50 | ALTERNATIVE:${PN} = "\ | ||
| 51 | dra7-ipu1-fw.xem4 \ | ||
| 52 | dra7-ipu2-fw.xem4 \ | ||
| 53 | dra7-dsp1-fw.xe66 \ | ||
| 54 | dra7-dsp2-fw.xe66 \ | ||
| 55 | " | ||
| 56 | |||
| 57 | ALTERNATIVE_LINK_NAME[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu1-fw.xem4" | ||
| 58 | ALTERNATIVE_LINK_NAME[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/dra7-ipu2-fw.xem4" | ||
| 59 | ALTERNATIVE_LINK_NAME[dra7-dsp1-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp1-fw.xe66" | ||
| 60 | ALTERNATIVE_LINK_NAME[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/dra7-dsp2-fw.xe66" | ||
| 61 | |||
| 62 | ALTERNATIVE_TARGET[dra7-ipu1-fw.xem4] = "${INSTALL_IPC_FW_DIR}/${IPU_1_FW_DIR}/${IPU_1_FW}" | ||
| 63 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${INSTALL_IPC_FW_DIR}/${IPU_2_FW_DIR}/${IPU_2_FW}" | ||
| 64 | ALTERNATIVE_TARGET[dra7-dsp1-fw.xe66] = "${INSTALL_IPC_FW_DIR}/${DSP_1_FW_DIR}/${DSP_1_FW}" | ||
| 65 | ALTERNATIVE_TARGET[dra7-dsp2-fw.xe66] = "${INSTALL_IPC_FW_DIR}/${DSP_2_FW_DIR}/${DSP_2_FW}" | ||
| 66 | |||
| 67 | ALTERNATIVE_PRIORITY = "30" | ||
diff --git a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb index 853fa117..d2ac6276 100644 --- a/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb +++ b/meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | |||
| @@ -2,7 +2,6 @@ require recipes-ti/ipc/ti-ipc.inc | |||
| 2 | require recipes-ti/ipc/ti-ipc-common.inc | 2 | require recipes-ti/ipc/ti-ipc-common.inc |
| 3 | require ti-ipc-rtos.inc | 3 | require ti-ipc-rtos.inc |
| 4 | 4 | ||
| 5 | inherit deploy | ||
| 6 | inherit update-alternatives | 5 | inherit update-alternatives |
| 7 | 6 | ||
| 8 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" | 7 | DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native" |
| @@ -100,17 +99,6 @@ ALTERNATIVE_TARGET[dra7-dsp2-fw.xe66] = "${nonarch_base_libdir}/firmware/ipc/ti_ | |||
| 100 | ALTERNATIVE_TARGET[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4" | 99 | ALTERNATIVE_TARGET[dra7-ipu1-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4" |
| 101 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4" | 100 | ALTERNATIVE_TARGET[dra7-ipu2-fw.xem4] = "${nonarch_base_libdir}/firmware/ipc/ti_platforms_evmDRA7XX_ipu2/test_omx_ipu2_vayu.xem4" |
| 102 | 101 | ||
| 103 | do_deploy() { | ||
| 104 | install -d ${DEPLOYDIR} | ||
| 105 | } | ||
| 106 | |||
| 107 | do_deploy:append:omap-a15() { | ||
| 108 | install -d ${DEPLOYDIR}/ipc | ||
| 109 | install -m 0644 ${S}/packages/ti/ipc/tests/bin/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${DEPLOYDIR}/ipc/dra7-ipu1-fw.xem4 | ||
| 110 | } | ||
| 111 | |||
| 112 | addtask deploy after do_install | ||
| 113 | |||
| 114 | # Disable the "buildpaths" check while we figure out how we are | 102 | # Disable the "buildpaths" check while we figure out how we are |
| 115 | # going to address this issue. | 103 | # going to address this issue. |
| 116 | # | 104 | # |
