From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonas Mark (BT-FIR/ENG1) Date: Wed, 21 Nov 2018 06:45:21 +0000 Subject: [U-Boot] [PATCH v3] cmd, fdt: add subcommand "get" to fdt header Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi Heiko, > store fdt header member with name in U-Boot > Environment variable with name . > > 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 > --- > > 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 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