"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

boot: Warn users about fdt_high=~0 usage

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>

authored by

Marek Vasut and committed by
Tom Rini
9235da94 48e56ac2

+6
+6
boot/image-fdt.c
··· 189 189 /* All ones means use fdt in place */ 190 190 of_start = fdt_blob; 191 191 addr = map_to_sysmem(fdt_blob); 192 + printf("WARNING:\n" 193 + "The 'fdt_high' environment variable is set to ~0. This is known to cause\n" 194 + "boot failures due to placement of DT at non-8-byte-aligned addresses.\n" 195 + "This system will likely fail to boot. Unset the 'fdt_high' environment\n" 196 + "variable and submit a fix upstream.\n"); 197 + 192 198 err = lmb_alloc_mem(LMB_MEM_ALLOC_ADDR, 0, &addr, 193 199 of_len, LMB_NONE); 194 200 if (err) {