[U-Boot] [PATCH v3] cmd, fdt: add subcommand "get" to fdt header

sjg at google.com sjg at google.com
Thu Nov 29 17:42:16 UTC 2018


Hi Heiko,

> 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 at 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(-)

The patch was

Tested-by: Leo Ruan <tingquan.ruan at cn.bosch.com>

and works fine.

Greetings,
Mark

Building Technologies, Panel Software Fire (BT-FIR/ENG1)
Bosch Sicherheitssysteme GmbH | Postfach 11 11 | 85626 Grasbrunn |
GERMANY | www.boschsecurity.com

Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart HRB 23118
Aufsichtsratsvorsitzender: Stefan Hartung; Geschäftsführung: Tanja
Rückert, Andreas Bartz, Thomas Quante, Bernhard Schuster

Applied to u-boot-dm/master, thanks!


More information about the U-Boot mailing list