diff mbox series

[v2,3/8] doc: Add a note about how to produce 'md' output using hexdump

Message ID 20210123173627.2916025-4-sjg@chromium.org
State Superseded
Delegated to: Tom Rini
Headers show
Series Various minor fixes | expand

Commit Message

Simon Glass Jan. 23, 2021, 5:36 p.m. UTC
Comparing a hex dump on the U-Boot command line with the contents of a
file on the host system is fairly easy and convenient to do manually if
it is small. But the format used hexdump by default differs from that
shown by U-Boot. Add a note about how to make them the same.

(For large dumps, writing the data to the network with tftpput, or to a
USB stick with ext4save is easiest.)

Signed-off-by: Simon Glass <sjg@chromium.org>
---

(no changes since v1)

 README | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Heinrich Schuchardt Jan. 24, 2021, 10:19 p.m. UTC | #1
On 1/23/21 6:36 PM, Simon Glass wrote:
> Comparing a hex dump on the U-Boot command line with the contents of a
> file on the host system is fairly easy and convenient to do manually if
> it is small. But the format used hexdump by default differs from that
> shown by U-Boot. Add a note about how to make them the same.
>
> (For large dumps, writing the data to the network with tftpput, or to a
> USB stick with ext4save is easiest.)
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
> (no changes since v1)
>
>   README | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/README b/README
> index afa33dc7f30..582bfb00348 100644
> --- a/README
> +++ b/README
> @@ -3274,6 +3274,10 @@ TODO.
>
>   For now: just type "help <command>".
>
> +Note that the format of 'md' can be emulated from linux with:
> +
> +   hexdump -v -e '"%08.8_ax: " 16/1 "%02x " "   "' -e '16/1 "%_p" "\n" ' fname
> +

This is the wrong place to describe the md command.

Please, add a man-page to doc/usage/

Best regards

Heinrich

>
>   Environment Variables:
>   ======================
>
diff mbox series

Patch

diff --git a/README b/README
index afa33dc7f30..582bfb00348 100644
--- a/README
+++ b/README
@@ -3274,6 +3274,10 @@  TODO.
 
 For now: just type "help <command>".
 
+Note that the format of 'md' can be emulated from linux with:
+
+   hexdump -v -e '"%08.8_ax: " 16/1 "%02x " "   "' -e '16/1 "%_p" "\n" ' fname
+
 
 Environment Variables:
 ======================