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

Simon Glass sjg at chromium.org
Sat Jan 23 18:36:22 CET 2021


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
+
 
 Environment Variables:
 ======================
-- 
2.30.0.280.ga3ce27912f-goog



More information about the U-Boot mailing list