mbox series

[v3,0/4] add support for falcon mode builds

Message ID 20250425152613.2470204-1-anshuld@ti.com
Headers show
Series add support for falcon mode builds | expand

Message

Anshul Dalal April 25, 2025, 3:26 p.m. UTC
Falcon mode[1] in u-boot enables us to bypass proper u-boot when booting hence
reducing boot time.

This patch set adds support for falcon mode on am62 evms depending on the
`ti-falcon` distro override which can be added by appending to local.conf with
the follows:

  DISTROOVERRIDES:append = ":ti-falcon"

Build process remains un-changed if the override is not present.

The override enables the usage of the falcon config fragment during r5 build
process as well as deploying the associated tispl_falcon.bin to rootfs's boot
directory.

For secure boot since the R5 core is slower compared to A53 cores,
authenticating as well as decompressing the signed fitImage from oe-core takes
multiple seconds, therefore we opt for using legacyhs-fitimage instead which
allows the authentication to be deferred to tifs.

[1]:
https://docs.u-boot.org/en/latest/develop/falcon.html

Signed-off-by: Anshul Dalal <anshuld@ti.com>
---
Changes in v3:
 * Better handling of u-boot-ti-staging-falcon package for non ti-falcon builds
 * Add TFA build commands since upstream changes were rejected:
   https://lore.kernel.org/u-boot/20250417113013.mrlhl65farooaiq2@extradite/
v2:
https://lore.kernel.org/yocto-meta-ti/20250417113614.1780603-1-anshuld@ti.com/
Changes in v2:
 * Add cover letter describing the patch set
 * Add default empty string for 'FALCON_INCLUDE' preventing recipie parsing
   error when ti-falcon is not set
v1:
https://lore.kernel.org/yocto-meta-ti/20250415093645.435281-1-anshuld@ti.com/

Anshul Dalal (4):
  am62: apply u-boot config fragment on ti-falcon
  bsp: conf: machine: add ti-falcon.inc
  bsp: u-boot: deploy tispl_falcon.bin to rootfs
  bsp: tfa: add build flags for ti-falcon

 meta-ti-bsp/conf/machine/am62axx-evm-k3r5.conf     |  2 ++
 meta-ti-bsp/conf/machine/am62pxx-evm-k3r5.conf     |  2 ++
 meta-ti-bsp/conf/machine/am62xx-evm-k3r5.conf      |  2 ++
 meta-ti-bsp/conf/machine/am62xx-lp-evm-k3r5.conf   |  2 ++
 meta-ti-bsp/conf/machine/include/k3.inc            |  5 +++++
 meta-ti-bsp/conf/machine/include/ti-falcon.inc     |  6 ++++++
 .../trusted-firmware-a/trusted-firmware-a-ti.inc   |  1 +
 meta-ti-bsp/recipes-bsp/u-boot/u-boot-ti.inc       | 14 ++++++++++++++
 8 files changed, 34 insertions(+)
 create mode 100644 meta-ti-bsp/conf/machine/include/ti-falcon.inc