git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72e77ab
)
cmd: add resize for FDT in bootelf
author
Maxim Moskalets
<maximmosk4@gmail.com>
Fri, 28 Jun 2024 08:34:11 +0000
(11:34 +0300)
committer
Tom Rini
<trini@konsulko.com>
Wed, 10 Jul 2024 19:36:16 +0000
(13:36 -0600)
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>
cmd/elf.c
patch
|
blob
|
history
diff --git
a/cmd/elf.c
b/cmd/elf.c
index
32b7462
..
673c6c3
100644
(file)
--- a/
cmd/elf.c
+++ b/
cmd/elf.c
@@
-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;
}