Files
u-boot/common
Alexandru Gagniuc 18fd663c63 spl: LOAD_FIT_FULL: Fix selection of the "fdt" node
The correct FDT to use is described by the "fdt" property of the
configuration node. When the fit_unamep argument to fit_image_load()
is "fdt", we get the "/images/fdt" node. This is incorrect, as it
ignores the "fdt" property of the config node, and in most cases,
the "/images/fdt" node doesn't exist.

Use NULL for the 'fit_unamep' argument. With NULL, fit_image_load()
uses the IH_TYPE_FLATDT value to read the config property "fdt",
which points to the correct FDT node(s).

fit_image_load() should probably be split into a function that reads
an image by name, and one that reads an image by config reference. I
don't make those decisions, I just point out the craziness.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-04-14 15:23:01 -04:00
..
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2021-03-29 18:00:21 -04:00
2021-04-06 16:33:19 +12:00
2021-03-12 17:41:35 -05:00
2021-03-12 17:41:35 -05:00
2021-04-12 17:44:55 -04:00
2021-04-12 17:44:55 -04:00
2020-10-22 09:54:53 -04:00