[Buildroot] [PATCH v11 00/17] Add support for AM62x-SK HS-FS devices

Heiko Thiery heiko.thiery at gmail.com
Thu Apr 4 11:46:59 UTC 2024


Hi,

Am Do., 4. Apr. 2024 um 13:04 Uhr schrieb Michael Walle <michael at walle.cc>:
>
> Hi Romain,
>
> thanks for working on the series!
>
> > > I know there are some discussions ongoing about the handling of the
> > > BR2_PACKAGE_TI_K3_SECTYPE_X and BR2_PACKAGE_TI_K3_SOC_X. I see that
> > > these variables are only used for selecting the right value for
> > > BR2_TARGET_TI_K3_R5_LOADER_TIBOOT3_BIN.  Since we can set this value
> > > directly for each defconfig I think we can get rid of all this stuff.
> > > Nevertheless there is a problem with the
> > > BR2_TARGET_TI_K3_R5_LOADER_TIBOOT3_BIN since it is not possible to
> > > select a value in menuconfig because of the missing help text.
> >
> > It seems easier to select the SoC variant and the Sectype using two boolean than
> > letting the user to provide the right file name in
> > BR2_TARGET_TI_K3_R5_LOADER_TIBOOT3_BIN from the defconfig.
>
> Doesn't seem easier to me to update the package each time a new SoC
> is introduced. Besides..
>
> > Is a use case where the we must use a custom tiboot3*.bin name ?
>
> ..you are literally encoding the board name "-evm" of the TI EVM
> into that name. So it is unusable for any other board. E.g.  there
> is already this board upstream:
> https://elixir.bootlin.com/u-boot/v2024.04/source/arch/arm/dts/k3-am625-phycore-som-binman.dtsi#L14
>
> As I said, that filename is just a free form type of filename and
> the dtsi author is free to choose its naming.
>
> IMHO with the removal of the image gen package, there is no need
> for the SOC and SECTYPE choice anymore, as it is just used to
> assemble the board specific filename which will end up being the
> tiboot3.bin. But u-boot is already choosing the default tiboot3.bin
> for you:
> https://elixir.bootlin.com/u-boot/v2024.04/source/arch/arm/dts/k3-am625-phycore-som-binman.dtsi#L60
>
> Sorry for being so persistent, I really don't think this is the
> correct approach. Just defaulting the binary name to tiboot3.bin
> will probably handle most cases and for the oddballs, just set the
> filename in the defconfig.

Michael is right at this point. This option only can select the TI evm
specific tiboot3 files defined in the U-Boot binman dtsi files. I just
checked and in U-Boot are 3 other boards that use different names
than the one used by TI. And at least one other will come in the near future.

>
> -michael


--
Heiko



More information about the buildroot mailing list