]> git.baikalelectronics.ru Git - uboot.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)
commit6254dc6dd0175b85607e78f101dd5102166b5ae8
treec1b8043f58c041c33888729916a405e8adb45d7b
parent701866574f86ae434112c9d2a05348316f5ab549
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