
16 Nov
2018
16 Nov
'18
1:07 a.m.
On 14 November 2018 at 21:06, Heiko Schocher hs@denx.de wrote:
store fdt header member with name <member> in U-Boot Environment variable with name <var>.
for example to get the total length of the fdt and store it in filesize, call:
fdt header get filesize totalsize
For membernames look into fdt header definition at scripts/dtc/libfdt/libfdt.h
Signed-off-by: Heiko Schocher hs@denx.de
Changes in v3:
- add comments from Marek simplify for loop, use fdtp[i] -> drop ftdip++
Changes in v2:
- add obviously missing "static const char *"
cmd/fdt.c | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org
Should we have a test case for this?