Hi Andrew,

On 14:44-20250203, Andrew Davis wrote:
> On 1/6/25 3:34 AM, Manorit Chawdhry wrote:
> > From: Neha Malcom Francis <n-fran...@ti.com>
> > 
> > Clean up templatized boot binaries for j784s4 soc. This includes
> > modifying the k3-j784s4-binman.dtsi to use SPL_BOARD_DTB,
> > BOARD_DESCRIPTION and UBOOT_BOARD_DESCRIPTION from the files that
> > include it to further reuse code.
> > 
> > k3-j784s4-binman.dtsi will contain only templates. Only required boot
> > binaries can be built from the templates in the boards' respective
> > -u-boot.dtsi file (or k3-<board>-binman.dtsi if it exists). This allows
> > clear distinction between the SoC common stuff vs. what is additionally
> > needed to boot up a specific board.
> > 
> > Signed-off-by: Neha Malcom Francis <n-fran...@ti.com>
> > [ Do it only for j784s4 ]
> > Signed-off-by: Manorit Chawdhry <m-chawd...@ti.com>
> > ---
> >   arch/arm/dts/k3-am69-sk-u-boot.dtsi    | 123 
> > +++++++++++++++++++++++++++------
> >   arch/arm/dts/k3-j784s4-binman.dtsi     | 116 
> > +++++++++----------------------
> >   arch/arm/dts/k3-j784s4-evm-u-boot.dtsi |  75 ++++++++++++++++++++
> >   3 files changed, 206 insertions(+), 108 deletions(-)
> > 
> > diff --git a/arch/arm/dts/k3-am69-sk-u-boot.dtsi 
> > b/arch/arm/dts/k3-am69-sk-u-boot.dtsi
> > index 
> > 4a82d2fd222669c4b390d4d877bc15329eab8894..adcd89b18ba9df9c72bf2e0fb0600b2bc7d1658c
> >  100644
> > --- a/arch/arm/dts/k3-am69-sk-u-boot.dtsi
> > +++ b/arch/arm/dts/k3-am69-sk-u-boot.dtsi
> > @@ -1,10 +1,109 @@
> >   // SPDX-License-Identifier: GPL-2.0-only
> >   /*
> > - * Copyright (C) 2022-2023 Texas Instruments Incorporated - 
> > https://www.ti.com/
> > + * Copyright (C) 2022-2024 Texas Instruments Incorporated - 
> > https://www.ti.com/
> >    */
> > +#define SPL_BOARD_DTB "spl/dts/ti/k3-am69-sk.dtb"
> > +#define BOARD_DESCRIPTION "k3-am69-sk"
> > +#define UBOOT_BOARD_DESCRIPTION "U-Boot for AM69 board"
> > +
> >   #include "k3-j784s4-binman.dtsi"
> > +#if defined(CONFIG_CPU_V7R)
> > +
> > +&binman {
> > +   tiboot3-am69-hs {
> > +           insert-template = <&tiboot3_j784s4_hs>;
> > +           filename = "tiboot3-am69-hs-sk.bin";
> 
> I think there might be some confusion around the name of this file.
> The format is tiboot3-<SYSFW name>-<SYSFW board config>.bin.
> 
> <SYSFW name> is the name of the SYSFW binary that is packaged
> with this file, so should be "j784s4-hs" as this uses:
> "ti-fs-firmware-j784s4-hs-enc.bin".
> 
> <SYSFW board config> is the name of the board configs used.
> For both TI EVMs and SK boards there is just one common board config
> we use call "evm". Other board vendors can use custom board configs,
> take Toradex for example, they have a different board config which they
> call "verdin" and they then correctly use that label for their tiboot3
> filename[0]. We should follow our own standard, use "evm" here.
> 
> Andrew
> 
> [0] 
> https://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/dts/k3-am625-verdin-wifi-dev-binman.dtsi

The following is not some mistake and an intended change honestly.. we
use am69_sk_r5_defconfig as the defconfig name and that giving j784s4 as
the binary name is just counterintuitive, the naming should be based on
the defconfig IMO to avoid confusions.

Regards,
Manorit

Reply via email to