In case the 'fdt_high' environment variable is set to ~0, warn users
about the dangers of the fdt_high usage. This will hopefully lead to
removal of most of the fdt_high ~0 usage over time.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
/* All ones means use fdt in place */
of_start = fdt_blob;
addr = map_to_sysmem(fdt_blob);
+ printf("WARNING:\n"
+ "The 'fdt_high' environment variable is set to ~0. This is known to cause\n"
+ "boot failures due to placement of DT at non-8-byte-aligned addresses.\n"
+ "This system will likely fail to boot. Unset the 'fdt_high' environment\n"
+ "variable and submit a fix upstream.\n");
+
err = lmb_alloc_mem(LMB_MEM_ALLOC_ADDR, 0, &addr,
of_len, LMB_NONE);
if (err) {