mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-02-27 11:01:03 +01:00
Add documentation for memsize command. Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
44 lines
651 B
ReStructuredText
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.
|