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

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Jan 24 23:19:07 CET 2021


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 at 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:
>   ======================
>



More information about the U-Boot mailing list