mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
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>
This commit is contained in:
committed by
Simon Glass
parent
c69f6d04ec
commit
ef47683646
@@ -503,7 +503,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;
|
||||
|
Reference in New Issue
Block a user