Files
u-boot-krane/doc/usage/cmd/memsize.rst
T
Marek VasutandHeinrich Schuchardt d1b0138f02 doc: Switch from printenv to env print
The "env" command is the recommended environment management command,
its "print" subcommand is the equivalent replacement for legacy "printenv"
command. Update the documentation to use the contemporary "env print"
command instead of legacy "printenv" command.

Note that the "printenv" command is unlikely to be removed from U-Boot
in the near future due to it being integral part of the command line
ABI.

Implemented using:
$ sed -i 's@\<printenv\>@env print@g' $(git grep -li '\<printenv\>' doc/) README

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2026-07-27 18:50:28 +02:00

44 lines
652 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
=> env print memsz
memsz=8192
Return value
------------
The return value is always 0 except error happens on setting environment variable.