From patchwork Mon Jul 4 13:34:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 587144 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1ec:0:0:0:0 with SMTP id 12csp840126map; Mon, 4 Jul 2022 06:36:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tIPvypjJ2dnkaI6Gp7OVgW8sIAHpfvvQHN7YUan447AvFasxmeT0dm7jwn6oc3/hRya6kb X-Received: by 2002:a2e:9591:0:b0:25a:7304:449b with SMTP id w17-20020a2e9591000000b0025a7304449bmr17707063ljh.453.1656941784087; Mon, 04 Jul 2022 06:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656941784; cv=none; d=google.com; s=arc-20160816; b=BhzNZhYMHLaoap4xb0d3INe+gNAnlRH8U37/u41/kC1Xy/RQPhWUYWUiCz0m0yZwUx k3DFxGcygMEQeWb88cWGKvWB5Bnm4FT0Kea7WpA7+r632J2hk4ijewu0uu1Ajlpwo8rN gkdYrG0/F6xkYTvrLvpZc3B3SFxJMVTTwyPgdXWFt7qmA7gmAzM61swgERcERjB6Xa6g qC1evqXV/prXSv2LgX8LTGTFdBZ1UdepLbCYsHsADlGyj9HPqRUUKwfbNJcN+nlu3QFC ou3DhCwIH3ECmfwbb63odLcaRfYFzrUY54dNz1W/CbnXs5JtUaW2qxoalA6bxh+T4MIO diYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=5V+B33ej5qO7BHvxdJlNx6EIrGtgKEvdhZPJLyESgX4=; b=gSgJrLnJhb4tjZVbRi+dlcPqXq2Ac39GOWSS1wtgA0KiD0beL4IGij8t/GFLjOXvaU F3K4cKeE2Z8Cz3/rn/7sktMVA9YnIHLkhD2BeKnHzfm1VDHDwsyGwYqo8tndXxHbldeW 80luwInW4BadaR9ySUEO52AiT/t3Xr7omu3f7ytC+daUQkOpxNcb/107d477WTgHhhTZ 6pB8TFJ83dMoBTzQN3F7SFJGP3fRO2110usWMdP3/JyvIxhArQ1MDZcqA7HnqYZi9kOl bfze1HhL746V8lOGx+WS9wsrIzsM3LWMBls8YIztjbfQnw1qxIkEL2Tr1pxu1Pktky5n X9Lg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id g10-20020a056512118a00b004795607b0b8si10083970lfr.523.2022.07.04.06.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Jul 2022 06:36:24 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 78561844D3; Mon, 4 Jul 2022 15:35:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 71DBA844D3; Mon, 4 Jul 2022 15:35:29 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 95AE6844E1 for ; Mon, 4 Jul 2022 15:35:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6107823A; Mon, 4 Jul 2022 06:35:26 -0700 (PDT) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 337423F66F; Mon, 4 Jul 2022 06:35:23 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Tom Rini , Sughosh Ganu Subject: [PATCH v6 6/7] doc: rng: Add documentation for the rng command Date: Mon, 4 Jul 2022 19:04:43 +0530 Message-Id: <20220704133444.1110715-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220704133444.1110715-1-sughosh.ganu@linaro.org> References: <20220704133444.1110715-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean Add a usage document for the 'rng' u-boot command. Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass Signed-off-by: Sughosh Ganu --- Changes since V5: None doc/usage/cmd/rng.rst | 26 ++++++++++++++++++++++++++ doc/usage/index.rst | 1 + 2 files changed, 27 insertions(+) create mode 100644 doc/usage/cmd/rng.rst diff --git a/doc/usage/cmd/rng.rst b/doc/usage/cmd/rng.rst new file mode 100644 index 0000000000..1a352da41a --- /dev/null +++ b/doc/usage/cmd/rng.rst @@ -0,0 +1,26 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +rng command +=========== + +Synopsis +-------- + +:: + + rng [devnum [n]] + +Description +----------- + +The *rng* command reads the random number generator(RNG) device and +prints the random bytes read on the console. A maximum of 64 bytes can +be read in one invocation of the command. + +devnum + The RNG device from which the random bytes are to be + read. Defaults to 0. + +n + Number of random bytes to be read and displayed on the + console. Default value is 0x40. Max value is 0x40. diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 770418434a..ed3a78aa14 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -53,6 +53,7 @@ Shell commands cmd/pstore cmd/qfw cmd/reset + cmd/rng cmd/sbi cmd/sf cmd/scp03