On Thu, Oct 26, 2023 at 8:44 PM Marek Vasut <ma...@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