From: Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org>
To: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Cc: Devicetree Discuss
<devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org>
Subject: Re: [PATCH v6 1/2] Add fdtget utility to read property values from a device tree
Date: Sat, 21 Jan 2012 15:26:30 -0600 [thread overview]
Message-ID: <E1RoiSE-0002C5-Tf@jdl.com> (raw)
In-Reply-To: <1327169688-7569-2-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
> This simply utility makes it easy for scripts to read values from the device
> tree. It is written in C and uses the same libfdt as the rest of the dtc
> package.
>
> What is it for:
> - Reading fdt values from scripts
> - Extracting fdt information within build systems
> - Looking at particular values without having to dump the entire tree
>
> To use it, specify the fdt binary file on command line followed by a list of
> node, property pairs. The utility then looks up each node, finds the property
> and displays the value.
>
> Each value is printed on a new line.
>
> fdtget tries to guess the type of each property based on its contents. This
> is not always reliable, so you can use the -t option to force fdtget to decode
> the value as a string, or byte, etc.
>
> To read from stdin, use - as the file.
>
> Usage:
> fdtget <options> <dt file> [<node> <property>]...
> Options:
> -t <type> Type of data
> -h Print this help
>
> <type> s=string, i=int, u=unsigned, x=hex
> Optional modifier prefix:
> hh or b=byte, h=2 byte, l=4 byte (default)
>
> Signed-off-by: Simon Glass <sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
Applied.
jdl
next prev parent reply other threads:[~2012-01-21 21:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-21 18:14 [PATCH v6 1/2] Add fdtget utility to read property values from a device tree Simon Glass
[not found] ` <1327169688-7569-2-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-01-21 18:14 ` [PATCH v6 2/2] Add fdtput utility to write property values to " Simon Glass
[not found] ` <1327169688-7569-3-git-send-email-sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2012-01-21 21:28 ` Jon Loeliger
2012-01-22 11:23 ` David Gibson
2012-01-21 21:26 ` Jon Loeliger [this message]
2012-01-22 10:30 ` [PATCH v6 1/2] Add fdtget utility to read property values from " David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1RoiSE-0002C5-Tf@jdl.com \
--to=jdl-cyomk+44s/e@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=sjg-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.