From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C970D715EE for ; Sat, 24 Jan 2026 17:23:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A08B183BC8; Sat, 24 Jan 2026 18:23:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=mailerdienst.de header.i=@mailerdienst.de header.b="rdZFA+NP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DA2C983BC8; Sat, 24 Jan 2026 18:23:53 +0100 (CET) Received: from mxout1.routing.net (mxout1.routing.net [IPv6:2a03:2900:1:a::a]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DE1FD83BF4 for ; Sat, 24 Jan 2026 18:23:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=fw-web.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=linux@fw-web.de Received: from mxbulk.masterlogin.de (unknown [192.168.10.85]) by mxout1.routing.net (Postfix) with ESMTP id 89AAF3FD65; Sat, 24 Jan 2026 17:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=routing; t=1769275431; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=h87HzOjC33bbJH3RgzhKR/UA9+xsrerrLXO3s7wQPvk=; b=rdZFA+NPAlXVV9nE9YqOLiR3xO2kpeEbHz8Txio1v9es8zfVWsZA/y2+NImvxHOlxTsvG8 RIOFtvjEsRCE/HZCxWG6LM9lZEV9e3HKB8xuBQmr8JROsUFco7pGva57HU1OlE8htmnihb dR+YVpAC+x2k2rlTpDDZWXe23xoj07E= Received: from frank-u24.. (fttx-pool-80.245.78.113.bambit.de [80.245.78.113]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 72E8A122703; Sat, 24 Jan 2026 17:23:51 +0000 (UTC) From: Frank Wunderlich To: Tom Rini Cc: Frank Wunderlich , u-boot@lists.denx.de, Daniel Golle Subject: [PATCH v5 3/3] doc: cmd: add usage doc for memsize Date: Sat, 24 Jan 2026 18:23:42 +0100 Message-ID: <20260124172344.926755-4-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260124172344.926755-1-linux@fw-web.de> References: <20260124172344.926755-1-linux@fw-web.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean From: Frank Wunderlich Add documentation for memsize command. Signed-off-by: Frank Wunderlich --- doc/usage/cmd/memsize.rst | 43 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 doc/usage/cmd/memsize.rst diff --git a/doc/usage/cmd/memsize.rst b/doc/usage/cmd/memsize.rst new file mode 100644 index 000000000000..4571795c7b41 --- /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 memory in MiB. +Optionally 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. -- 2.43.0