mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
cmd: add resize for FDT in bootelf
In some FDTs, there is not enough free memory to add nodes, so this operation fails. Signed-off-by: Maxim Moskalets <maximmosk4@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
72e77ab1c9
commit
8d57f46ab0
@@ -68,6 +68,8 @@ int do_bootelf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
|
||||
log_debug("Setting up FDT at 0x%08lx ...\n", fdt_addr);
|
||||
flush();
|
||||
|
||||
fdt_set_totalsize((void *)fdt_addr,
|
||||
fdt_totalsize(fdt_addr) + CONFIG_SYS_FDT_PAD);
|
||||
if (image_setup_libfdt(&img, (void *)fdt_addr, NULL))
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user