diff options
author | Hannes Schmelzer <hannes.schmelzer@br-automation.com> | 2016-09-20 18:10:43 +0200 |
---|---|---|
committer | Luke Go <sangch.go@gmail.com> | 2020-06-12 14:34:48 +0900 |
commit | 0b6bf33fea7abf83541c35e6512b6e0cf550a4ca (patch) | |
tree | 898ec9120412e73092bb38713ae3cf9a95c21f2a /common/image-fdt.c | |
parent | 994747fa520eb0ae0d481d32803e306f4bca92ce (diff) | |
download | u-boot-odroid-c1-0b6bf33fea7abf83541c35e6512b6e0cf550a4ca.tar.gz |
cmd/fdt: add possibilty to have 'extrasize' on fdt resize
Sometimes devicetree nodes and or properties are added out of the u-boot
console, maybe through some script or manual interaction.
The devicetree as loaded or embedded is quite small, so the devicetree
has to be resized to take up those new nodes/properties.
In original the devicetree was only extended by effective
4 * add_mem_rsv.
With this commit we can add an argument to the "fdt resize" command,
which takes the extrasize to be added.
Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Acked-by: Simon Glass <sjg@chromium.org>
Change-Id: I39d5ebf8404ee4f8b114753f2179c8789b4366fa
Diffstat (limited to 'common/image-fdt.c')
-rw-r--r-- | common/image-fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index 14ec22509a..0f126dc969 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -525,7 +525,7 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob, lmb_free(lmb, (phys_addr_t)(u32)(uintptr_t)blob, (phys_size_t)fdt_totalsize(blob)); - ret = fdt_shrink_to_minimum(blob); + ret = fdt_shrink_to_minimum(blob, 0); if (ret < 0) goto err; of_size = ret; |