aboutsummaryrefslogtreecommitdiff
path: root/Documentation/manual.txt
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-12-09 07:14:20 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2021-12-09 17:48:58 +1100
commit17739b7ef510917471409d71fb45d8eaf6a1e1fb (patch)
treebe50e5b54772db89cbb688057b4e67d780fab512 /Documentation/manual.txt
parent45f3d1a095dd3440578d5c6313eba555a791f3fb (diff)
downloaddtc-17739b7ef510917471409d71fb45d8eaf6a1e1fb.zip
dtc-17739b7ef510917471409d71fb45d8eaf6a1e1fb.tar.gz
dtc-17739b7ef510917471409d71fb45d8eaf6a1e1fb.tar.bz2
Support 'r' format for printing raw bytes with fdtget
FT is sometimes used for storing raw data. That is quite common for U-Boot FIT images. Extracting such data is not trivial currently. Using type 's' (string) will replace every 0x00 (NUL) with 0x20 (space). Using type 'x' will print bytes but in xxd incompatible format. This commit adds support for 'r' (raw) format. Example usage: fdtget -t r firmware.itb /images/foo data > image.raw Support for encoding isn't added as there isn't any clean way of passing binary data as command line argument. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Message-Id: <20211209061420.29466-1-zajec5@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'Documentation/manual.txt')
-rw-r--r--Documentation/manual.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/manual.txt b/Documentation/manual.txt
index 97e53b9..cf4b253 100644
--- a/Documentation/manual.txt
+++ b/Documentation/manual.txt
@@ -712,7 +712,7 @@ The syntax of the fdtget command is:
where options are:
- <type> s=string, i=int, u=unsigned, x=hex
+ <type> s=string, i=int, u=unsigned, x=hex, r=raw
Optional modifier prefix:
hh or b=byte, h=2 byte, l=4 byte (default)