From patchwork Sun Mar 13 14:48:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 550928 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp1826743mag; Sun, 13 Mar 2022 07:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzChfMAtvtXVQT59XLSnyuLyU7p4XKPKkTO0ishCASyou/Uewbj4nGcmbsOqfjtmHycOVo2 X-Received: by 2002:aa7:ce1a:0:b0:416:460:9df5 with SMTP id d26-20020aa7ce1a000000b0041604609df5mr16459260edv.277.1647183038595; Sun, 13 Mar 2022 07:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647183038; cv=none; d=google.com; s=arc-20160816; b=LGUdU4HHZnQdUhmt88/RdFtoFbKwuFv4iTc8BW37KUI0DKy0des7K8cNhwdcs/0xgv y5z/gN+j4CoiK44CnjjBpHAytMG/YxaIon9JLtEI2mlM+9m0o4lwIVZFTWMFQDnB9I9u rRrQdb89d7i7sO/zCs+w4Iu5wrbRBYC8cXacM4BOY1HGurds+zraPktyl2PahrAjL7sO fZk2T/ybm/NJpF2F+M7v1n2Ij9kiwBBsJwr6eDNTeR53LfBrUwN94KJrjW9kkLQdNnfN REJyIKRkVEnQEbd6M9YXZV3aIqarRi1rrhyOFQ/UI9qE77dthgMylUrtQlH/zfroDqmB DnHQ== 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=niebxDM5jL2R3MYOeJldynfQuIGOPSuQtg64gIPokjc=; b=yzdjV8TQLwV9oKn+J7C8c3clLr2UuOKRqyjq0zlstdZgmawlx4nm3XW0ZW6QyfAkLF HrNdOMmeG4YD8QuqwvlKoZt6VmvjuCZRSccrFVGofqPDdHgmqgAbRwqeWS6h68iu9VPM e931jKSKhbJs9oMxYXZiZzlvxq/zkRbMvRA+OABiPC5f9r0+vVASPMe13hxqH7OBahp0 yHolL3/QzQbCQeJnggxYUTOyueDAtx0j1lx5lH+O1Zfx7/+QOhZnGeZC4yUkplcnRizH pfg41emwtmdfPz+zPvsCbSY2DW6lhyuRBF11IujRY8q5ejze3qHWOfS/N2Xgm8eReXUC SnFA== 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 l18-20020a056402345200b004158df83dc5si7832722edc.195.2022.03.13.07.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Mar 2022 07:50:38 -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 23CAF83B27; Sun, 13 Mar 2022 15:50:20 +0100 (CET) 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 8D66683A9B; Sun, 13 Mar 2022 15:49:24 +0100 (CET) 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 91C9383041 for ; Sun, 13 Mar 2022 15:49:06 +0100 (CET) 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 8FA25106F; Sun, 13 Mar 2022 07:49:05 -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 C3DEA3F7D7; Sun, 13 Mar 2022 07:49:03 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Sughosh Ganu Subject: [PATCH v5 8/9] doc: rng: Add documentation for the rng command Date: Sun, 13 Mar 2022 20:18:01 +0530 Message-Id: <20220313144802.65687-9-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220313144802.65687-1-sughosh.ganu@linaro.org> References: <20220313144802.65687-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.5 at phobos.denx.de X-Virus-Status: Clean Add a usage document for the 'rng' u-boot command. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V4: * Reflect the fact that a maximum of 64 bytes can be read on each invocation of the 'rng' command doc/usage/index.rst | 1 + doc/usage/rng.rst | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 doc/usage/rng.rst diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 0aacf531b2..5712a924ae 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -45,6 +45,7 @@ Shell commands pstore qfw reset + rng sbi sf scp03 diff --git a/doc/usage/rng.rst b/doc/usage/rng.rst new file mode 100644 index 0000000000..1a352da41a --- /dev/null +++ b/doc/usage/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.