Skip to contentSkip to conversation

Semi-Falcon Boot Support

PATCH Superseded Gokul Praveen 3 participants 10 messages Aug 14 – Aug 18

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

cover Semi-Falcon Boot Support

Semi-Falcon Mode is a hybrid boot approach that bypasses
the A72 SPL while retaining U-Boot in the boot flow. This mode provides faster boot times compared to normal boot while maintaining U-Boot's flexibility for kernel loading and system configuration..

Boot logs link :

https://gist.github.com/GokulPraveen2001/fef407a482e2dad30272006de557627c

Gokul Praveen (3):
configs: add semi-falcon mode fragment for k3 devices
arm: k3-binman: add tisemifalcon.bin for semi-falcon mode
doc: ti: document semi-falcon mode for J784S4 EVM

 Makefile                               |   2 +-
 arch/arm/dts/k3-binman.dtsi            |  47 ++++++++
 arch/arm/dts/k3-j784s4-binman.dtsi     |  65 +++++++++++
 arch/arm/dts/k3-j784s4-evm-u-boot.dtsi |  14 +++
 configs/k3_a72_semifalcon.config       |   1 +
 configs/k3_r5_semifalcon.config        |   1 +
 doc/board/ti/j784s4_evm.rst            | 143 +++++++++++++++++++++++++
 7 files changed, 272 insertions(+), 1 deletion(-)
 create mode 100644 configs/k3_a72_semifalcon.config
 create mode 100644 configs/k3_r5_semifalcon.config
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/3 configs: add semi-falcon mode fragment for k3 devices

This fragment enables semi-falcon mode for K3 platforms by modifying the file to be loaded by R5 SPL and updating the UBOOT proper load address to A Core SPL load address so that R5 SPL can load UBOOT from that address as A Core SPL is not present in semi-falcon mode.

---
 configs/k3_a72_semifalcon.config | 1 +
 configs/k3_r5_semifalcon.config  | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 configs/k3_a72_semifalcon.config
 create mode 100644 configs/k3_r5_semifalcon.config
configs/k3_a72_semifalcon.config new file +1 -0
new file mode 100644
index 00000000000..7522acab950
@@ -0,0 +1 @@
+CONFIG_TEXT_BASE=0x80080000
configs/k3_r5_semifalcon.config new file +1 -0
new file mode 100644
index 00000000000..0217ebc81a8
@@ -0,0 +1 @@
+CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="tisemifalcon.bin"
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH 1/3] configs: add semi-falcon mode fragment for k3 devices

Hi Gokul

Quoted 3 lines · Gokul Praveen

This fragment enables semi-falcon mode for K3 platforms by modifying the file to be loaded by R5 SPL and updating the UBOOT proper load address to A Core SPL load address so that

Slightly confusing wording, but understood.

Quoted 24 lines

R5 SPL can load UBOOT from that address as A Core SPL is not present in semi-falcon mode.

---
 configs/k3_a72_semifalcon.config | 1 +
 configs/k3_r5_semifalcon.config  | 1 +
 2 files changed, 2 insertions(+)
 create mode 100644 configs/k3_a72_semifalcon.config
 create mode 100644 configs/k3_r5_semifalcon.config
configs/k3_a72_semifalcon.config new file +1 -0
new file mode 100644
index 00000000000..7522acab950
@@ -0,0 +1 @@
+CONFIG_TEXT_BASE=0x80080000
configs/k3_r5_semifalcon.config new file +0 -0
new file mode 100644
index 00000000000..0217ebc81a8

configs/k3_r5_semifalcon.config line 1

Quoted 1 line
configs/k3_r5_semifalcon.config new file +1 -0
@@ -0,0 +1 @@
+CONFIG_SPL_FS_LOAD_PAYLOAD_NAME="tisemifalcon.bin"

Reviewed-by Neha Malcom Francis <[email protected]

Signature · 2 lines
Thanking You
Neha Malcom Francis
#3 lore raw

PATCH 2/3 arm: k3-binman: add tisemifalcon.bin for semi-falcon mode

In reply to Gokul Praveen

This patch adds creation of tisemifalcon.bin for J784S4 EVM.

The contents are the same as the existing tispl.bin but A72's SPL and the FDT have been removed as they are not needed in semi-falcon mode and instead UBOOT and its FDT are added.

This reduces boot time since A72 SPL is skipped.

tispl.bin = TFA + TEE + DM + A72 SPL + FDT(A72 SPL) tifalcon.bin = TFA + TEE + DM + UBOOT + FDT(UBOOT)

---
 Makefile                               |  2 +-
 arch/arm/dts/k3-binman.dtsi            | 47 +++++++++++++++++++
 arch/arm/dts/k3-j784s4-binman.dtsi     | 65 ++++++++++++++++++++++++++
 arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 14 ++++++
 4 files changed, 127 insertions(+), 1 deletion(-)
Makefile +1 -1
index c6253670a94..ce2501602f4 100644
@@ -2556,7 +2556,7 @@ CLEAN_FILES += include/autoconf.mk* include/bmp_logo.h include/bmp_logo_data.h \
 	       idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \
 	       Test* capsule*.*.efi-capsule capsule*.map mkimage.imx-boot.spl \
 	       mkimage.imx-boot.u-boot mkimage-out.imx-boot.spl mkimage-out.imx-boot.u-boot \
-	       imx9image* m33-oei-ddrfw* tifalcon.bin
+	       imx9image* m33-oei-ddrfw* tifalcon.bin tisemifalcon.bin
 
 # Directories & files removed with 'make mrproper'
 MRPROPER_FILES  += include/config include/generated spl tpl vpl \
arch/arm/dts/k3-binman.dtsi +47 -0

53 lines not on this page · raw message

arch/arm/dts/k3-j784s4-binman.dtsi +65 -0

69 lines not on this page · raw message

arch/arm/dts/k3-j784s4-evm-u-boot.dtsi +14 -0
index cc0b562d27e..d22cdc09a7e 100644
@@ -87,6 +87,20 @@
 	u-boot-unsigned {
 		insert-template = <&u_boot_unsigned>;
 	};
+
+	ti-semifalcon {
+		insert-template = <&ti_semifalcon>;
+
+		fit {
+			images {
+				dm {
+					ti-dm {
+						filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
+					};
+				};
+			};
+		};
+	};
 };
 
 #endif
Signature · 1 line
2.34.1
Reviewed-by on v1 2/3
#4 lore raw

Re: [PATCH 2/3] arm: k3-binman: add tisemifalcon.bin for semi-falcon mode

Quoted 179 lines · Gokul Praveen

This patch adds creation of tisemifalcon.bin for J784S4 EVM.

The contents are the same as the existing tispl.bin but A72's SPL and the FDT have been removed as they are not needed in semi-falcon mode and instead UBOOT and its FDT are added.

This reduces boot time since A72 SPL is skipped.

tispl.bin = TFA + TEE + DM + A72 SPL + FDT(A72 SPL) tifalcon.bin = TFA + TEE + DM + UBOOT + FDT(UBOOT)

---
 Makefile                               |  2 +-
 arch/arm/dts/k3-binman.dtsi            | 47 +++++++++++++++++++
 arch/arm/dts/k3-j784s4-binman.dtsi     | 65 ++++++++++++++++++++++++++
 arch/arm/dts/k3-j784s4-evm-u-boot.dtsi | 14 ++++++
 4 files changed, 127 insertions(+), 1 deletion(-)
Makefile +1 -1
index c6253670a94..ce2501602f4 100644
@@ -2556,7 +2556,7 @@ CLEAN_FILES += include/autoconf.mk* include/bmp_logo.h include/bmp_logo_data.h \
 	       idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \
 	       Test* capsule*.*.efi-capsule capsule*.map mkimage.imx-boot.spl \
 	       mkimage.imx-boot.u-boot mkimage-out.imx-boot.spl mkimage-out.imx-boot.u-boot \
-	       imx9image* m33-oei-ddrfw* tifalcon.bin
+	       imx9image* m33-oei-ddrfw* tifalcon.bin tisemifalcon.bin
 
 # Directories & files removed with 'make mrproper'
 MRPROPER_FILES  += include/config include/generated spl tpl vpl \
arch/arm/dts/k3-binman.dtsi +47 -0
index ad127663d03..d82b8630554 100644
@@ -543,6 +543,53 @@
 		};
 	};
 
+	ti_semifalcon_template: template-16 {
+		filename = "tisemifalcon.bin";
+		pad-byte = <0xff>;
+
+		fit {
+			description = "Configuration for semi-falcon boot";
+			#address-cells = <1>;
+
+			images {
+				atf {
+					description = "ARM Trusted Firmware";
+					type = "firmware";
+					arch = "arm64";
+					compression = "none";
+					os = "arm-trusted-firmware";
+					load = <CONFIG_K3_ATF_LOAD_ADDR>;
+					entry = <CONFIG_K3_ATF_LOAD_ADDR>;
+					atf-bl31 {
+						filename = "bl31.bin";
+					};
+				};
+				tee {
+					description = "OP-TEE";
+					type = "tee";
+					arch = "arm64";
+					compression = "none";
+					os = "tee";
+					load = <CONFIG_K3_OPTEE_LOAD_ADDR>;
+					entry = <CONFIG_K3_OPTEE_LOAD_ADDR>;
+					tee-os {
+						filename = "tee-raw.bin";
+						optional;
+					};
+				};
+				dm {
+					description = "DM binary";
+					type = "firmware";
+					arch = "arm32";
+					compression = "none";
+					os = "DM";
+					load = <0x89000000>;
+					entry = <0x89000000>;
+				};
+			};
+		};
+	};
+
 };
 
 #endif
arch/arm/dts/k3-j784s4-binman.dtsi +65 -0
index 34b2cc1e681..d109b3d460c 100644
@@ -317,4 +317,69 @@
 		};
 	};
 };
+
+&binman{
+	ti_semifalcon: template-17{
+		insert-template = <&ti_semifalcon_template>;
+
+		fit {
+			images {
+				dm {
+					ti-dm {
+					};
+				};
+
+				uboot {
+					description = UBOOT_BOARD_DESCRIPTION;
+					type = "firmware";
+					os = "u-boot";
+					arch = "arm";
+					compression = "none";
+					load = <CONFIG_TEXT_BASE>;
+					ti-secure {
+						content = <&u_boot_nodtb_semifalcon>;
+						keyfile = "custMpk.pem";
+					};
+					u_boot_nodtb_semifalcon: blob-ext {
+						filename = "u-boot-nodtb.bin";
+					};
+					hash {
+						algo = "crc32";
+					};
+				};
+
+				fdt-0 {
+					description = BOARD_DESCRIPTION;
+					type = "flat_dt";
+					arch = "arm";
+					compression = "none";
+
+					ti-secure {
+						content = <&j784s4_evm_dtb_semifalcon>;
+						keyfile = "custMpk.pem";
+					};
+
+					j784s4_evm_dtb_semifalcon: blob-ext {
+						filename = "u-boot.dtb";
+					};
+
+					hash {
+						algo = "crc32";
+					};
+				};
+			};
+
+			configurations {
+				default = "conf-0";
+
+				conf-0 {
+					description = BOARD_DESCRIPTION;
+					firmware = "atf";
+					loadables = "tee", "dm", "uboot";
+					fdt = "fdt-0";
+				};
+			};
+		};
+	};
+};
 #endif
arch/arm/dts/k3-j784s4-evm-u-boot.dtsi +7 -0
index cc0b562d27e..d22cdc09a7e 100644
@@ -87,6 +87,20 @@
 	u-boot-unsigned {
 		insert-template = <&u_boot_unsigned>;
 	};
+
+	ti-semifalcon {
+		insert-template = <&ti_semifalcon>;
+
+		fit {
+			images {
+				dm {

arch/arm/dts/k3-j784s4-evm-u-boot.dtsi line 106

Quoted 10 lines
arch/arm/dts/k3-j784s4-evm-u-boot.dtsi +7 -0
+					ti-dm {
+						filename = "ti-dm/j784s4/ipc_echo_testb_mcu1_0_release_strip.xer5f";
+					};
+				};
+			};
+		};
+	};
 };
 
 #endif
Signature · 2 lines
Thanking You
Neha Malcom Francis
#5 lore raw

PATCH 3/3 doc: ti: document semi-falcon mode for J784S4 EVM

In reply to Gokul Praveen

This patch adds user documentation for semi-falcon mode for J784S4 EVM. Boot flow and steps to build semi-falcon support and usage have been documented.

---
 doc/board/ti/j784s4_evm.rst | 143 ++++++++++++++++++++++++++++++++++++
 1 file changed, 143 insertions(+)
doc/board/ti/j784s4_evm.rst +143 -0
index ec82228ab90..c0b3fc98eb6 100644
@@ -637,6 +637,149 @@ to the J784S4 endpoint:
 This program copies the boot image to the PCIe endpoint's memory region and
 writes the necessary control words to signal image transfer completion.
 
+Semi-Falcon Mode
+----------------
+
+Semi-Falcon Mode on J784S4 platforms is a hybrid boot approach that bypasses
+the A72 SPL while retaining U-Boot in the boot flow. This mode provides faster
+boot times compared to normal boot while maintaining U-Boot's flexibility for
+kernel loading and system configuration.
+
+**Key differences from Normal Boot:**
+
+* Skips A72 SPL execution
+* U-Boot binary included in tisemifalcon.bin alongside TFA, OP-TEE, and DM
+* U-Boot loads at CONFIG_TEXT_BASE=0x80080000(sA72 SPL earlier load location)
+
+Boot Flow
+^^^^^^^^^
+
+**Normal boot flow:**
+
+.. code-block::
+
+             | tiboot3.bin |         tispl.bin          | u-boot.img |  Image  |
+             |-------------+----------------------------+------------+---------|
+    R5 Core  |    SPL      |                            |            |         |
+    ---------|       \     |                            |            |         |
+    A72 Core |        ------> TFA -> OP-TEE -> A72 SPL -->  U-Boot  --> Kernel |
+
+**With semi-falcon mode:**
+
+.. code-block::
+
+             | tiboot3.bin |      tisemifalcon.bin       |  Image  |
+             |-------------+-----------------------------+---------|
+    R5 Core  |    SPL      |                             |         |
+    ---------|       \     |                             |         |
+    A72 Core |        ------> TFA -> OP-TEE -> DM -> U-Boot --> Kernel |
+
+Build Process
+^^^^^^^^^^^^^
+
+Enabling semi-falcon mode requires re-building U-Boot as follows:
+
+0. Setup environment variables:
+"""""""""""""""""""""""""""""""
+
+Refer to the build procedure above for setting up the environment variables.
+
+1. U-Boot:
+""""""""""
+
+* **1.1 R5:**
+
+.. prompt:: bash $
+
+ # use the semi-falcon config fragment for K3 platforms
+ export UBOOT_SEMIFALCON_CFG_FRAGMENTR="k3_r5_semifalcon.config"
+ export UBOOT_CFG_CORTEXR="${UBOOT_CFG_CORTEXR} ${UBOOT_SEMIFALCON_CFG_FRAGMENTR}"
+
+.. include::  k3.rst
+    :start-after: .. k3_rst_include_start_build_steps_spl_r5
+    :end-before: .. k3_rst_include_end_build_steps_spl_r5
+
+* **1.2 A72:**
+
+.. prompt:: bash $
+
+ # use the semi-falcon config fragment for A72
+ export UBOOT_SEMIFALCON_CFG_FRAGMENTA="k3_a72_semifalcon.config"
+ export UBOOT_CFG_CORTEXA="${UBOOT_CFG_CORTEXA} ${UBOOT_SEMIFALCON_CFG_FRAGMENTA}"
+
+.. include::  k3.rst
+    :start-after: .. k3_rst_include_start_build_steps_uboot
+    :end-before: .. k3_rst_include_end_build_steps_uboot
+
+.. note::
+
+    The ``tisemifalcon.bin`` file is automatically generated by binman during
+    the A72 U-Boot build process. This binary contains TFA, OP-TEE, DM, and
+    the U-Boot binary with its device tree.
+
+Usage
+^^^^^
+
+Semi-Falcon Mode uses a specialized binary called ``tisemifalcon.bin`` which
+contains all necessary components to boot directly to U-Boot without loading
+the A72 SPL.
+
+**tisemifalcon.bin structure:**
+
+The tisemifalcon.bin is a FIT image containing:
+
+* **ATF (ARM Trusted Firmware)** - loaded at CONFIG_K3_ATF_LOAD_ADDR
+* **OP-TEE** - loaded at CONFIG_K3_OPTEE_LOAD_ADDR
+* **DM (Device Manager)** - loaded at 0x89000000
+* **U-Boot** - loaded at CONFIG_TEXT_BASE (0x80080000)
+* **DTB (Device Tree Blob)** - U-Boot device tree
+
+The R5 SPL requires both ``tiboot3.bin`` and ``tisemifalcon.bin`` to be present
+in the boot partition (first partition) of the MMC device. By default, the SD
+card boot partition is used (``mmcdev=1``). The ``bootpart`` environment variable
+defaults to 1:2, specifying the second partition of the SD card.
+
+To use eMMC instead of SD as the boot media, rebuild the R5 SPL with the
+following diff:
+
+.. code-block:: diff
+
+    diff --git a/board/ti/j784s4/j784s4.env b/board/ti/j784s4/j784s4.env
+    index 82b9f0741bb..73d59ac425c 100644
+    --- a/board/ti/j784s4/j784s4.env
+    +++ b/board/ti/j784s4/j784s4.env
+    @@ -17,8 +17,8 @@ run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
+
+     boot_targets=mmc1 mmc0 usb pxe dhcp
+     boot=mmc
+    -mmcdev=1
+    -bootpart=1:2
+    +mmcdev=0
+    +bootpart=0:2
+     bootdir=/boot
+     rd_spec=-
+
+**List of files required on SD/eMMC for Semi-Falcon Mode:**
+
+.. list-table::
+   :widths: 10 15 10 25
+   :header-rows: 1
+
+   * - File
+     - Copy path on SD/eMMC
+     - Partition
+     - Description
+
+   * - ``tiboot3.bin``
+     - Boot partition (raw)
+     - 1st partition (FAT32)
+     - R5 SPL binary
+
+   * - ``tisemifalcon.bin``
+     - Boot partition (raw)
+     - 1st partition (FAT32)
+     - Combined binary with TFA, OP-TEE, DM, and U-Boot
+
 Debugging U-Boot
 ----------------
 
Signature · 1 line
2.34.1
#6 lore raw
In reply to Gokul Praveen
Quoted 5 lines · Gokul Praveen

Semi-Falcon Mode is a hybrid boot approach that bypasses
the A72 SPL while retaining U-Boot in the boot flow. This mode provides faster boot times compared to normal boot while maintaining U-Boot's flexibility for kernel loading and system configuration..

Quoted 8 lines

Boot logs link :

https://gist.github.com/GokulPraveen2001/fef407a482e2dad30272006de557627c

Gokul Praveen (3):
configs: add semi-falcon mode fragment for k3 devices
arm: k3-binman: add tisemifalcon.bin for semi-falcon mode
doc: ti: document semi-falcon mode for J784S4 EVM

This is just doing what many other aarch64 platforms do, of skipping the SPL phase in Cortex-A because something else has already done any required initialization, unless I'm reading all of this wrong. So my feedback is:
- It's not "semi-falcon", it's just "no SPL". Naming differences, if any, should be done with that in mind.
- You should make sure to structure this so any K3 platform *could* take advantage. I seem to recall part of the rationale for the current approach is that some variants might only have a little SRAM (512k? 256k?) while others might have 1-2M and so easily fit U-Boot in SRAM prior to relocation. It sounds like this specific family has a large enough lower memory bound.

Signature · 1 line
Tom
#7 lore raw

Hi Tom,

Quoted 15 lines · Tom Rini
Quoted 5 lines · Gokul Praveen

Semi-Falcon Mode is a hybrid boot approach that bypasses
the A72 SPL while retaining U-Boot in the boot flow. This mode provides faster boot times compared to normal boot while maintaining U-Boot's flexibility for kernel loading and system configuration..

Quoted 8 lines

Boot logs link :

https://gist.github.com/GokulPraveen2001/fef407a482e2dad30272006de557627c

Gokul Praveen (3):
configs: add semi-falcon mode fragment for k3 devices
arm: k3-binman: add tisemifalcon.bin for semi-falcon mode
doc: ti: document semi-falcon mode for J784S4 EVM

Quoted 6 lines

This is just doing what many other aarch64 platforms do, of skipping the SPL phase in Cortex-A because something else has already done any required initialization, unless I'm reading all of this wrong. So my feedback is:
- It's not "semi-falcon", it's just "no SPL". Naming differences, if any, should be done with that in mind.

Actually, there is an SPL in Cortex-R5 which is still present in the semi-falcon bootflow.

Its only the Cortex-A SPL which is avoided, which is why I did not name it as "no SPL"

*Normal K3 Bootflow*: R5 SPL + TFA + OPTEE + DM + Cortex-A SPL + UBOOT + Kernel

*Semi-Falcon* *boot flow* is : R5 SPL + TFA + OPTEE + DM + UBOOT + Kernel

Quoted 7 lines

- You should make sure to structure this so any K3 platform *could* take advantage. I seem to recall part of the rationale for the current approach is that some variants might only have a little SRAM (512k? 256k?) while others might have 1-2M and so easily fit U-Boot in SRAM prior to relocation. It sounds like this specific family has a large enough lower memory bound.

Yes, this is structured in a way that all K3 platforms can take advantage of this approach and changes.

Additionally, as there is an SPL running in cortex-R5 even with this bootflow(semi-falcon).

this bootflow can be used on all variants irrespective of whether they have less or more

memory.

Thanking you

Yours respectfully

Gokul Praveen

#8 lore raw
Quoted 25 lines · Gokul Praveen

Hi Tom,

Quoted 15 lines · Tom Rini
Quoted 5 lines · Gokul Praveen

Semi-Falcon Mode is a hybrid boot approach that bypasses
the A72 SPL while retaining U-Boot in the boot flow. This mode provides faster boot times compared to normal boot while maintaining U-Boot's flexibility for kernel loading and system configuration..

Quoted 8 lines

Boot logs link :

https://gist.github.com/GokulPraveen2001/fef407a482e2dad30272006de557627c

Gokul Praveen (3):
configs: add semi-falcon mode fragment for k3 devices
arm: k3-binman: add tisemifalcon.bin for semi-falcon mode
doc: ti: document semi-falcon mode for J784S4 EVM

Quoted 6 lines

This is just doing what many other aarch64 platforms do, of skipping the SPL phase in Cortex-A because something else has already done any required initialization, unless I'm reading all of this wrong. So my feedback is:
- It's not "semi-falcon", it's just "no SPL". Naming differences, if any, should be done with that in mind.

Quoted 2 lines

Actually, there is an SPL in Cortex-R5 which is still present in the semi-falcon bootflow.

Yes. But it's not "semi-falcon", at all, as "falcon" refers to booting directly to Linux.

Quoted 7 lines

Its only the Cortex-A SPL which is avoided, which is why I did not name it as "no SPL"

*Normal K3 Bootflow*: R5 SPL + TFA + OPTEE + DM + Cortex-A SPL + UBOOT + Kernel

*Semi-Falcon* *boot flow* is : R5 SPL + TFA + OPTEE + DM + UBOOT + Kernel

Yes, and this is similar to other platforms, where the Cortex-R or similar isn't exposed in the same fashion as it is for TI.

Quoted 7 lines
Quoted 7 lines

- You should make sure to structure this so any K3 platform *could* take advantage. I seem to recall part of the rationale for the current approach is that some variants might only have a little SRAM (512k? 256k?) while others might have 1-2M and so easily fit U-Boot in SRAM prior to relocation. It sounds like this specific family has a large enough lower memory bound.

Quoted 8 lines

Yes, this is structured in a way that all K3 platforms can take advantage of this approach and changes.

Additionally, as there is an SPL running in cortex-R5 even with this bootflow(semi-falcon).

this bootflow can be used on all variants irrespective of whether they have less or more memory.

OK good. Just come up with a different way of describing this that doesn't say "falcon", thanks.

Signature · 1 line
Tom
#9 lore raw

Hi Tom,

Quoted 25 lines · Tom Rini
Quoted 24 lines · Gokul Praveen

Hi Tom,

Quoted 21 lines · Tom Rini
Quoted 5 lines · Gokul Praveen

Semi-Falcon Mode is a hybrid boot approach that bypasses
the A72 SPL while retaining U-Boot in the boot flow. This mode provides faster boot times compared to normal boot while maintaining U-Boot's flexibility for kernel loading and system configuration..

Quoted 8 lines

Boot logs link :

https://gist.github.com/GokulPraveen2001/fef407a482e2dad30272006de557627c

Gokul Praveen (3):
configs: add semi-falcon mode fragment for k3 devices
arm: k3-binman: add tisemifalcon.bin for semi-falcon mode
doc: ti: document semi-falcon mode for J784S4 EVM

This is just doing what many other aarch64 platforms do, of skipping the SPL phase in Cortex-A because something else has already done any required initialization, unless I'm reading all of this wrong. So my feedback is:
- It's not "semi-falcon", it's just "no SPL". Naming differences, if any, should be done with that in mind.

Quoted 4 lines
Quoted 2 lines

Actually, there is an SPL in Cortex-R5 which is still present in the semi-falcon bootflow.

Yes. But it's not "semi-falcon", at all, as "falcon" refers to booting directly to Linux.

Oh, sure, I will change the naming convention then.

Quoted 20 lines
Quoted 7 lines

Its only the Cortex-A SPL which is avoided, which is why I did not name it as "no SPL"

*Normal K3 Bootflow*: R5 SPL + TFA + OPTEE + DM + Cortex-A SPL + UBOOT + Kernel

*Semi-Falcon* *boot flow* is : R5 SPL + TFA + OPTEE + DM + UBOOT + Kernel

Yes, and this is similar to other platforms, where the Cortex-R or similar isn't exposed in the same fashion as it is for TI.

Quoted 10 lines
Quoted 7 lines

- You should make sure to structure this so any K3 platform *could* take advantage. I seem to recall part of the rationale for the current approach is that some variants might only have a little SRAM (512k? 256k?) while others might have 1-2M and so easily fit U-Boot in SRAM prior to relocation. It sounds like this specific family has a large enough lower memory bound.

Yes, this is structured in a way that all K3 platforms can take advantage of this approach and changes.

Quoted 7 lines
Quoted 5 lines

Additionally, as there is an SPL running in cortex-R5 even with this bootflow(semi-falcon).

this bootflow can be used on all variants irrespective of whether they have less or more memory.

OK good. Just come up with a different way of describing this that doesn't say "falcon", thanks.

Sure.

Best  Regards

Gokul Praveen