u-boot/doc/usage/cmd/memsize.rst
Frank Wunderlich b4842032d5 doc: cmd: add usage doc for memsize
Add documentation for memsize command.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
2026-02-07 11:51:34 -06:00

44 lines
651 B
ReStructuredText

.. SPDX-License-Identifier: GPL-2.0+:
.. index::
single: memsize (command)
memsize command
===============
Synopsis
--------
::
memsize [name]
Description
-----------
The memsize command shows the amount of RAM in MiB in decimal notation.
Optionally same value can be assigned to an environment variable.
Examples
--------
This first example shows printing of ram size:
::
=> memsize
8192 MiB
This second example shows assign ram size to environment variable:
::
=> memsize memsz
=> printenv memsz
memsz=8192
Return value
------------
The return value is always 0 except error happens on setting environment variable.