]> Git Repo - u-boot.git/commit
spl: LOAD_FIT_FULL: Relocate FDT for u-boot payloads
authorAlexandru Gagniuc <[email protected]>
Thu, 1 Apr 2021 18:25:28 +0000 (13:25 -0500)
committerTom Rini <[email protected]>
Wed, 14 Apr 2021 20:02:43 +0000 (16:02 -0400)
commit60138aa87cb3281dafebf25125d546718beb3969
treeb4c6f70672a711d73e37f840bc0069f1291f2c8b
parent2eaae17bc90ec524dbddc52a85ff3705727d7c5a
spl: LOAD_FIT_FULL: Relocate FDT for u-boot payloads

U-Boot expects the FDT to be located right after the _end
linker symbol (see fdtdec.c: board_fdt_blob_setup())

The "basic" LOAD_FIT path is aware of this limitation, and relocates
the FDT at the expected location. Guessing the expected location
probably only works reliably on 32-bit arm, and it feels like a hack.
One proposal would be to pass the FDT address to u-boot
(e.g. using 'r2' on arm platforms).

The variable is named "fdt_hack" to remind future contributors that,
"hey! we should fix the underlying problem". However, that is beyond
the scope of this patch.

Signed-off-by: Alexandru Gagniuc <[email protected]>
common/spl/spl.c
This page took 0.03404 seconds and 4 git commands to generate.