From: Frank Wunderlich Date: Wed, 4 Feb 2026 18:40:44 +0000 (+0100) Subject: doc: cmd: add usage doc for memsize X-Git-Tag: v2026.04-rc2~8^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4842032d542cfde271aab61b80ab870b27b07b2;p=thirdparty%2Fu-boot.git doc: cmd: add usage doc for memsize Add documentation for memsize command. Signed-off-by: Frank Wunderlich --- diff --git a/doc/usage/cmd/memsize.rst b/doc/usage/cmd/memsize.rst new file mode 100644 index 00000000000..6e99d7c1d33 --- /dev/null +++ b/doc/usage/cmd/memsize.rst @@ -0,0 +1,43 @@ +.. 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.