Re: [PATCH v2] loader/efi/fdt: Add fdtdump command to access device tree

2024-06-17 Thread Tobias Heider
Right, this already came up in response to v1. I think grub is currently safe but after some further digging we might want to add support for the DT_FIXUP protocol or similar at some point and this makes things more complicated than necessary. I'll send another update. On Mon, Jun 17, 2024 at 3:4

Re: [PATCH v2] loader/efi/fdt: Add fdtdump command to access device tree

2024-06-17 Thread Vladimir 'phcoder' Serbinenko
Saving FDT subtly changes the behaviour. Image some command or even an external program modifying FDT and freeing old copy. Maybe we should call grub_efi_get_firmware_fdt every time we need fdt. On Mon, Jun 17, 2024 at 4:08 PM Tobias Heider wrote: > > The fdtdump command allows dumping arbitrary

[PATCH v2] loader/efi/fdt: Add fdtdump command to access device tree

2024-06-17 Thread Tobias Heider
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 pro