Tom Rini
b887a1c1a1
Merge patch series "Add command for getting ramsize in scripts"
...
Frank Wunderlich <frank-w@public-files.de > says:
Add command for getting ramsize in scripts
Link: https://lore.kernel.org/r/20260204184045.111808-1-linux@fw-web.de
2026-02-07 11:51:43 -06:00
Frank Wunderlich
e202eca183
cmd: mem: add command for getting ram size for use in scripts
...
Add a command for getting detected ram size with possibility to
assign it to an environment variable.
example usage:
BPI-R4> memsize
4096 MiB
BPI-R4> memsize memsz
BPI-R4> printenv memsz
memsz=4096
BPI-R4>
board with 8GB ram:
BPI-R4> memsize
8192 MiB
BPI-R4> memsize memsz
BPI-R4> printenv memsz
memsz=8192
BPI-R4>
Signed-off-by: Frank Wunderlich <frank-w@public-files.de >
2026-02-07 11:51:33 -06:00
Heinrich Schuchardt
460fba63b5
cmd/meminfo: display of addresses above 4 GiB
...
Addresses above 4 GiB don't fit into 8 digits.
Use 13 digits which encompass up to 15 TiB.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com >
Reviewed-by: Simon Glass <simon.glass@canonical.com >
2026-01-19 10:31:21 +01:00
Shiji Yang
c60898c9c6
meminfo: correct "free" memory region size
...
The size of free memory should be $lmb_base - $ram_base.
Signed-off-by: Shiji Yang <yangshiji66@outlook.com >
2025-08-07 11:15:41 -06:00
Ilias Apalodimas
e34ecf9d5e
meminfo: add memory details for armv8
...
Upcoming patches are mapping memory with RO, RW^X etc permsissions.
Fix the meminfo command to display them properly
Acked-by: Jerome Forissier <jerome.forissier@linaro.org >
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org >
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org >
2025-03-14 13:30:12 +02:00
Simon Glass
9252b7f867
meminfo: Show the lmb records
...
Add the lmb records onto the end of the memory map.
Signed-off-by: Simon Glass <sjg@chromium.org >
2024-10-25 14:22:24 -06:00
Simon Glass
f18c048e6e
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 >
2024-10-25 14:22:24 -06:00
Simon Glass
8306c3b035
cmd: Move meminfo command into its own file
...
In preparation for expanding this command, move it into a separate file.
Rename the function to remove the extra underscore. Update the number of
arguments to 1, since 3 is incorrect.
Signed-off-by: Simon Glass <sjg@chromium.org >
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org >
2024-10-25 14:22:24 -06:00