Friday, December 02, 2022

Re: U-Boot 2022.10 and dtb from Linux 6.0.8

> Date: Fri, 2 Dec 2022 18:44:27 +0000
> From: Peter Stuge <peter@stuge.se>
>
> Jan Stary wrote:
> > > > > Replacing the DTBs with those from the dtb package is not supposed to
> > > > > work.
> >
> > Is this specific to the Raspberry, or is that true in general?
>
> I think this was specifically in response to the test on an RPi.

No. My recommendation is that you don't use a separate DTB unless you
really need to. The DTB that is built into U-Boot should be good
enough.

> > The content of the dtb package is a bunch of DTBs unde /usr/local/share
> > - I am still not sure whether there is anything else to be done
> > with them besides copying them over to the msdos partition
> > (as created at install time).
>
> At least when using U-Boot there is nothing else to be done with them.
>
> The correct .dtb file is read by U-Boot, as Mark explained sometimes
> modified or extended by U-Boot, then handed to the kernel in RAM on boot.
>
> I don't think the kernel ever reads .dtb files from disk, only what it
> gets from the bootloader in RAM.
>
> It's not impossible for other software to also use the .dtb files but
> the intended flow at least with U-Boot is to place the right one on
> the msdos partition, tell U-Boot which one is right, let U-Boot read,
> modify and pass it to the kernel.
>
>
> //Peter
>
>

No comments:

Post a Comment