Re: [PATCH 2/2] fdtdump: add optional node argument to access nested properties

2024-08-08 Thread Tobias Heider
On Thu, Aug 08, 2024 at 05:37:47PM +0200, Tobias Heider wrote: > From: Tobias Heider This was also meant to be "From: Tobias Heider ". > > With this change it is possible to access properties in subnodes > using the -n argument as in 'fdtdump -n chosen -p stdout-path'. > It is also possible to

[PATCH 2/2] fdtdump: add optional node argument to access nested properties

2024-08-08 Thread Tobias Heider
From: Tobias Heider With this change it is possible to access properties in subnodes using the -n argument as in 'fdtdump -n chosen -p stdout-path'. It is also possible to access deeper nested properties by passing a path separated by '/' such as 'fdtdump -n path/to/node' Signed-off-by: Tobias H

[PATCH 1/2] fdtdump: add grub_fdt_prop_to_string() for safe string conversion

2024-08-08 Thread Tobias Heider
Device tree properties are not explicitly typed but values can take multiple forms from strings to arrays and byte-strings. grub_fdt_prop_to_string() adds a heuristic to determine the type and convert it to a string for printing. Signed-off-by: Tobias Heider --- grub-core/lib/fdt.c| 87 +