]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_selftest: dtbdump support EFI_DT_FIXUP_PROTOCOL
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 13 Dec 2020 18:13:57 +0000 (19:13 +0100)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 13 Jan 2021 01:38:01 +0000 (02:38 +0100)
commit8e70f1cb3f2c18d574b087d4fc1d79e68ce98fa9
treec1b8043f58c041c33888729916a405e8adb45d7b
parent94686f60a2b9fd87842f473a5cdca316668765c3
efi_selftest: dtbdump support EFI_DT_FIXUP_PROTOCOL

The dtbdump.efi binary can already be used to dump the configuration table
with the device-tree to a file.

With this patch a device-tree file can be loaded. The EFI_DT_FIXUP_PROTOCOL
is called to

* apply U-Boot's fix-ups
* let U-Boot make memory reservations as required by the device-tree
* install the new device-tree as configuration table

In a next step this configuration table can be dumped.

A dtbdump.efi session would look like:

    DTB Dump
    ========

    => load test.dtb
    device-tree installed
    => save fixed-up.dtb
    fixed-up.dtb written
    => exit

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_selftest/dtbdump.c