cmd: Update the meminfo command to show the memory map

U-Boot has a fairly rigid memory map which is normally not visible
unless debugging is enabled in board_f.c

Update the 'meminfo' command to show it. This command does not cover
arch-specific pieces but gives a good overview of where things are.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2024-10-21 10:19:30 +02:00
committed by Tom Rini
parent 8306c3b035
commit f18c048e6e
6 changed files with 231 additions and 3 deletions

View File

@@ -889,6 +889,17 @@ config CMD_MEMINFO
help
Display memory information.
config CMD_MEMINFO_MAP
bool "- with memory map"
depends on CMD_MEMINFO
default y if SANDBOX
help
Shows a memory map, in addition to just the DRAM size. This allows
seeing where U-Boot's memory area is, at the top of DRAM, as well as
detail about each piece of it.
See doc/usage/cmd/meminfo.rst for more information.
config CMD_MEMORY
bool "md, mm, nm, mw, cp, cmp, base, loop"
default y