]> git.baikalelectronics.ru Git - uboot.git/commit
cmd, fdt: add subcommand "get" to fdt header
authorHeiko Schocher <hs@denx.de>
Thu, 15 Nov 2018 05:06:06 +0000 (06:06 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Nov 2018 16:30:05 +0000 (09:30 -0700)
commit4910f8f90e83ef78aad504002154b0f008583208
treed43ad932818d1b47812082a6286f0c102a6e466a
parent930dae65f72e4c435d3e07bb763e443ca11619a4
cmd, fdt: add subcommand "get" to fdt header

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>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/fdt.c