]> git.ipfire.org Git - thirdparty/grub.git/commit
loader/efi/fdt: Add fdtdump command to access device tree
authorTobias Heider <tobias.heider@canonical.com>
Mon, 17 Jun 2024 15:10:26 +0000 (17:10 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 20 Jun 2024 17:21:02 +0000 (19:21 +0200)
commitab9fe8030022a01f3c6c8e0b070f4a381e71a48f
treecdae2efa27a3202e5c9acf32512f774e88b125e1
parent0cfec355d027a5a0692d52d6d6dbb8da0ab48f61
loader/efi/fdt: Add fdtdump command to access device tree

The fdtdump command allows dumping arbitrary device tree properties
and saving them to a variable similar to the smbios command.

This is useful in scripts where further actions such as selecting
a kernel or loading another device tree depend on the compatible
or model values of the device tree provided by the firmware.

For now only the root level properties of the dtb are exposed.

Signed-off-by: Tobias Heider <tobias.heider@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
docs/grub.texi
grub-core/loader/efi/fdt.c