
2 May
2023
2 May
'23
3:24 p.m.
On 5/2/23 15:11, Andreas Schwab wrote:
On Mai 02 2023, Matthias Brugger wrote:
I'm not sure I get your point. The devicetree will be passed to the kernel via a pointer in a register, the kernel does not need to load the devicetree into memory, it will use the one passed by U-Boot.
But U-Boot needs to load it, and the kernel is the authority in providing it.
To make it a bit clearer:
Several U-Boot boot methods use the value of environment variable $fdtfile to load a device-tree from file. The same holds true for the boot.scr file created by Debian's flash-kernel package.
A good solution would be to read the EEPROM to determine the exact board version, to set $fdtfile accordingly and update U-Boots control dtb as needed.
Best regards
Heinrich