[PATCH 1/3] dts/upstream: write fdtfile path to /chosen/fdtfile

Tom Rini trini at konsulko.com
Thu Jun 12 20:37:02 CEST 2025


On Tue, Jun 10, 2025 at 06:23:33PM +0200, Casey Connolly wrote:

> Since we're using the upstream file structure, we know at build time
> the path to each DTB that we build. These same paths are used relative
> to some (maybe version specific) dtb directory on the boot partition
> or ESP.
> 
> By recording this path at build time and embedding it into the
> devicetree, we can set the fdtfile environment variable with 100%
> certainty that it is correct.
> 
> Devicetree file names are already treated as stable kernel API upstream,
> since they are used by OS loaders extensively.
> 
> Embedding the path into the devicetree itself just simplifies the
> process and allows U-Boot or the OS loader to select a devicetree of a
> different version for the specific board that U-Boot is running on.
> 
> Signed-off-by: Casey Connolly <casey.connolly at linaro.org>

My biggest and really only problem is that you need to work with
https://github.com/devicetree-org/dt-schema and to get the chosen.yaml
updated with fdtfile and then we can go ahead and do whatever that
resulting discussion is.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250612/2c83737a/attachment.sig>


More information about the U-Boot mailing list