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 7D589EA7942 for ; Wed, 4 Feb 2026 18:41:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A847883AEE; Wed, 4 Feb 2026 19:40:59 +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="VaTVbWLg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7D507838FA; Wed, 4 Feb 2026 19:40:57 +0100 (CET) Received: from mxout2.routing.net (mxout2.routing.net [IPv6:2a03:2900:1:a::b]) (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 C024C83A47 for ; Wed, 4 Feb 2026 19:40:53 +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 mxout2.routing.net (Postfix) with ESMTP id 67996600EB; Wed, 4 Feb 2026 18:40:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=routing; t=1770230453; 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=PJY2SwMd41F9cXTh6li/l+ebEjuIDW5WswNgvEWOXMM=; b=VaTVbWLgsJ9qQEfiIDCkyMjVki9VBr/iiKw4Y5dzLMXX28BIxdZYmOROWYUa2Z3V/xrqr7 y+EssdwHgdU3CywGfp1vjtegw2/Vwh7ErOU9xAQvYkkAf7e5OuklIDrjA0P6+MxBfJQ+vC 6uLVllbcOgnXOg+6SLCQ1/wK/ndKtdo= Received: from frank-u24.. (fttx-pool-80.245.74.171.bambit.de [80.245.74.171]) by mxbulk.masterlogin.de (Postfix) with ESMTPSA id 4E1EE122702; Wed, 4 Feb 2026 18:40:53 +0000 (UTC) From: Frank Wunderlich To: Tom Rini Cc: Frank Wunderlich , u-boot@lists.denx.de, Daniel Golle , Simon Glass Subject: [PATCH v7 3/3] doc: cmd: add usage doc for memsize Date: Wed, 4 Feb 2026 19:40:44 +0100 Message-ID: <20260204184045.111808-4-linux@fw-web.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260204184045.111808-1-linux@fw-web.de> References: <20260204184045.111808-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 --- v7: - update documentation including decimal notation --- 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..6e99d7c1d33f --- /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. -- 2.43.0