mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
efi_loader: Call fdt preparation functions
We have a nice framework around image fils to prepare a device tree for OS execution. That one patches in missing device tree nodes and fixes up the memory range bits. We need to call that one from the EFI boot path too to get all those nice fixups. This patch adds the call. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
@@ -502,8 +502,9 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
|
||||
fdt_fixup_ethernet(blob);
|
||||
|
||||
/* Delete the old LMB reservation */
|
||||
lmb_free(lmb, (phys_addr_t)(u32)(uintptr_t)blob,
|
||||
(phys_size_t)fdt_totalsize(blob));
|
||||
if (lmb)
|
||||
lmb_free(lmb, (phys_addr_t)(u32)(uintptr_t)blob,
|
||||
(phys_size_t)fdt_totalsize(blob));
|
||||
|
||||
ret = fdt_shrink_to_minimum(blob);
|
||||
if (ret < 0)
|
||||
@@ -515,7 +516,8 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,
|
||||
fdt_set_totalsize(blob, of_size);
|
||||
}
|
||||
/* Create a new LMB reservation */
|
||||
lmb_reserve(lmb, (ulong)blob, of_size);
|
||||
if (lmb)
|
||||
lmb_reserve(lmb, (ulong)blob, of_size);
|
||||
|
||||
fdt_initrd(blob, *initrd_start, *initrd_end);
|
||||
if (!ft_verify_fdt(blob))
|
||||
|
Reference in New Issue
Block a user