Skip to contentSkip to conversation

omap-a15: Add dra7-ipu1-fw to boot

PATCH In review Aniket Limaye 3 participants 6 messages Dec 5, 2024 – Dec 7, 2024

lore
Share & tools
lore
#0 lore raw

cover omap-a15: Add dra7-ipu1-fw to boot

The firmware is required for early boot of the remoteproc from SPL stage of the bootloader. Copy the ipc firmware into the boot partition of the wic images, where the bootloader expects it to be.

For this, add a deploy task for the firmware binary and also include the file in IMAGE_BOOT_FILES for omap-a15.

Aniket Limaye (2):
meta-ti-extras: ti-ipc-rtos: Deploy ipc firmware
conf: machine: omap-a15.inc: include ipu1 firmware in the boot
partition

 meta-ti-bsp/conf/machine/include/omap-a15.inc    |  3 ++-
 meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | 14 ++++++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)
Signature · 1 line
2.47.0
#1 lore raw

PATCH 1/2 meta-ti-extras: ti-ipc-rtos: Deploy ipc firmware

Early boot of remote processors from SPL stage of bootloader requires the remoteproc firmware to be present in the boot partition. Deploy this rproc IPC firmware so that it can be copied to the boot partitions of the wic images.

---
 meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb +14 -0
index 999993ea..be769abb 100644
@@ -2,6 +2,8 @@ require recipes-ti/ipc/ti-ipc.inc
 require recipes-ti/ipc/ti-ipc-common.inc
 require ti-ipc-rtos.inc
 
+inherit deploy
+
 DEPENDS = "ti-xdctools-native ti-sysbios doxygen-native zip-native"
 
 PACKAGES =+ "${PN}-fw"
@@ -99,3 +101,15 @@ pkg_postinst:${PN}-fw:omapl138 () {
 pkg_postrm:${PN}-fw:omapl138 () {
   update-alternatives --remove rproc-dsp-fw ipc/ti_platforms_evmOMAPL138_DSP/messageq_single.xe674
 }
+
+do_deploy() {
+  install -d ${DEPLOYDIR}
+}
+
+do_deploy:append:omap-a15() {
+  install -d ${DEPLOYDIR}/ipc
+  install -m 0644 ${S}/packages/ti/ipc/tests/bin/ti_platforms_evmDRA7XX_ipu1/test_omx_ipu1_vayu.xem4 ${DEPLOYDIR}/ipc/dra7-ipu1-fw.xem4
+}
+
+addtask deploy after do_install
+
Signature · 1 line
2.47.0
#2 lore raw

PATCH 2/2 conf: machine: omap-a15.inc: include ipu1 firmware in the boot partition

In reply to Aniket Limaye

Early Boot of remote processors is supported at the SPL stage of the bootloader. Currently, SPL looks for the remoteproc firmwares in the boot partition.

Therefore, add the rproc firmware to the boot partition of wic images.

---
 meta-ti-bsp/conf/machine/include/omap-a15.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-ti-bsp/conf/machine/include/omap-a15.inc +2 -1
index 6187f2ea..09ee3a6a 100644
@@ -53,5 +53,6 @@ MACHINE_FEATURES = "apm usbgadget usbhost vfat ext2 screen alsa gpu mmip dsp gc3
 
 IMAGE_FSTYPES += "tar.xz wic.xz wic.bmap"
 WKS_FILE ?= "sdimage-2part.wks"
-IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES}"
+IMAGE_BOOT_FILES ?= "${SPL_BINARY} u-boot.${UBOOT_SUFFIX} ${UBOOT_EXTLINUX_BOOT_FILES} ipc/dra7-ipu1-fw.xem4;dra7-ipu1-fw.xem4"
 do_image_wic[depends] += "virtual/bootloader:do_deploy"
+do_image_wic[depends] += "ti-ipc-rtos:do_deploy"
Signature · 1 line
2.47.0
#3 lore raw
In reply to Aniket Limaye

As this platform still exists in scarthgap and master, should this patch also be applied to those branches as well?

Quoted 16 lines · Aniket Limaye

The firmware is required for early boot of the remoteproc from SPL stage of the bootloader. Copy the ipc firmware into the boot partition of the wic images, where the bootloader expects it to be.

For this, add a deploy task for the firmware binary and also include the file in IMAGE_BOOT_FILES for omap-a15.

Aniket Limaye (2):
meta-ti-extras: ti-ipc-rtos: Deploy ipc firmware
conf: machine: omap-a15.inc: include ipu1 firmware in the boot
partition

  meta-ti-bsp/conf/machine/include/omap-a15.inc    |  3 ++-
  meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | 14 ++++++++++++++
  2 files changed, 16 insertions(+), 1 deletion(-)
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#4 lore raw
Quoted 3 lines · Ryan Eatmon

As this platform still exists in scarthgap and master, should this patch also be applied to those branches as well?

Udit? Beleswar? Are we targeting the early boot feature in latest kernel, u-boot? (TI tree and upstream?)

Should I send this series for scarthgap/master wic images as well?

Thanks,
Aniket

Quoted 19 lines · Aniket Limaye
Quoted 16 lines

The firmware is required for early boot of the remoteproc from SPL stage of the bootloader. Copy the ipc firmware into the boot partition of the wic images, where the bootloader expects it to be.

For this, add a deploy task for the firmware binary and also include the file in IMAGE_BOOT_FILES for omap-a15.

Aniket Limaye (2):
   meta-ti-extras: ti-ipc-rtos: Deploy ipc firmware
   conf: machine: omap-a15.inc: include ipu1 firmware in the boot partition

  meta-ti-bsp/conf/machine/include/omap-a15.inc    |  3 ++- meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | 14 ++++++++++++++

  2 files changed, 16 insertions(+), 1 deletion(-)
#5 lore raw
Quoted 9 lines · Aniket
Quoted 3 lines · Ryan Eatmon

As this platform still exists in scarthgap and master, should this patch also be applied to those branches as well?

Udit? Beleswar? Are we targeting the early boot feature in latest kernel, u-boot? (TI tree and upstream?)

Upstream kernel and u-boot will be part of plan. But at present kernel patches are not in shape to be up streamed.

Quoted 1 line

Should I send this series for scarthgap/master wic images as well?

yes please send this patch for scarthgap/master as well

Quoted 24 lines

Thanks,
Aniket

Quoted 19 lines · Aniket Limaye
Quoted 16 lines

The firmware is required for early boot of the remoteproc from SPL stage of the bootloader. Copy the ipc firmware into the boot partition of the wic images, where the bootloader expects it to be.

For this, add a deploy task for the firmware binary and also include the file in IMAGE_BOOT_FILES for omap-a15.

Aniket Limaye (2):
   meta-ti-extras: ti-ipc-rtos: Deploy ipc firmware
   conf: machine: omap-a15.inc: include ipu1 firmware in the boot partition

  meta-ti-bsp/conf/machine/include/omap-a15.inc    |  3 ++- meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb | 14 ++++++++++++++

  2 files changed, 16 insertions(+), 1 deletion(-)