summaryrefslogtreecommitdiff
path: root/cmd/Kconfig
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-06-03 04:26:49 +0300
committerTom Rini <trini@konsulko.com>2020-07-09 00:21:46 +0300
commitbdded2015c1e54038a86557e339b606b4a31968b (patch)
treeb2f12b2694e55df93d4d144b5d2aaf56d486c38e /cmd/Kconfig
parenta33a824227e130d81260dfd3a275af3b0daa81c1 (diff)
downloadu-boot-bdded2015c1e54038a86557e339b606b4a31968b.tar.xz
cmd: Add a memory-search command
It is useful to be able to find hex values and strings in a memory range. Add a command to support this. cmd: Fix 'md' and add a memory-search command At present 'md.q' is broken. This series provides a fix for this. It also implements a new memory-search command called 'ms'. It allows searching memory for hex and string data. END Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/Kconfig')
-rw-r--r--cmd/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 0ead88eff1..2b823dd260 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -718,6 +718,20 @@ config CMD_MEMORY
base - print or set address offset
loop - initialize loop on address range
+config MEM_SEARCH
+ bool "ms - Memory search"
+ help
+ Memory-search command
+
+ This allows searching through a region of memory looking for hex
+ data (byte, 16-bit word, 32-bit long, also 64-bit on machines that
+ support it). It is also possible to search for a string. The
+ command accepts a memory range and a list of values to search for.
+ The values need to appear in memory in the same order they are given
+ in the command. At most 10 matches can be returned at a time, but
+ pressing return will show the next 10 matches. Environment variables
+ are set for use with scripting (memmatches, memaddr, mempos).
+
config CMD_MX_CYCLIC
bool "Enable cyclic md/mw commands"
depends on CMD_MEMORY