[PATCH 3/3] arm: rmobile: rzg2_beacon: Auto select Linux device tree by SoC

Adam Ford aford173 at gmail.com
Fri Oct 27 04:12:52 CEST 2023


On Thu, Oct 26, 2023 at 8:44 PM Marek Vasut <marex at denx.de> wrote:
>
> On 10/26/23 01:13, Adam Ford wrote:
> > There is a function inside the board file to autodetect which device
> > tree is needed by U-Boot to properly load its own device tree, but
> > it currently defaults to always loading RZ/G2M for Linux.  This is
> > not correct for other SoC variants.  Add board_late_init function
> > to query the SoC name and use that to determine which device tree
> > is loaded for booting Linux.
>
> Can't this be scripted in environment instead ?

Do you have a recommendation for how to read the SoC type from a script?

adam


More information about the U-Boot mailing list