[PATCH v2] board_f: Relocate fdt even if GD_FLG_SKIP_RELOC is set

Tom Rini trini at konsulko.com
Sat Jul 15 17:03:32 CEST 2023


On Tue, Jun 20, 2023 at 07:50:48PM +0900, Kunihiko Hayashi wrote:

> In case of OF_SEPARATE (!OF_EMBED), the devicetree blob is placed
> after _end, and fdt_find_separate() always returns _end. There is
> a .bss section after _end and the section is cleared before relocation.
> 
> When GD_FLG_SKIP_RELOC is set, relocation is skipped, so the blob is
> still in .bss section, but will be cleared. As a result, the devicetree
> become invalid.
> 
> To avoid this issue, should relocate it regardless of GD_FLG_SKIP_RELOC
> in reloc_fdt().
> 
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko at socionext.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
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/20230715/fa65ad82/attachment.sig>


More information about the U-Boot mailing list