From patchwork Fri Jul 22 16:02:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 592474 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b811:0:0:0:0 with SMTP id fc17csp636200mab; Fri, 22 Jul 2022 09:04:08 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s+LaXGBAUQzqpiyYeAWlUR++LbL9DuGgGI4OOuvIon4W7+2pXZT8T3N1AzwvwZ1UghHuzQ X-Received: by 2002:a05:6e02:1a46:b0:2dc:de84:6d3d with SMTP id u6-20020a056e021a4600b002dcde846d3dmr289106ilv.102.1658505848407; Fri, 22 Jul 2022 09:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658505848; cv=none; d=google.com; s=arc-20160816; b=pLDse9lxK+KYOuyZrURadbeJyDV8RrgrtlCpTSBhbMDRIHkM5Pv5HB3J6TeeeRkmmv UQD+Kj1IMLQ9zUfhEaQ+99xGrt+YprfVWw/rHsFoySPYjDyapnI4rhY8MRbyv7Nagz6N nFSsgMR4HQR1I6eXsF6r6e5gi7NdxYUlJd+6Ha8XxrgM2suDG9rJFIgJAZnXh87nvMYF SDNOlauopYA4FUTLjL61P2Lk3CqYcqRcMAqQqzWhjnObnOvLSNzykCG1Is6S9ow3z6lA RHn51DS+mpZQuVyqlC06pk465Z8DODAQEbSl8aVN5Osf0jaFtuDfg8W6LM8QuMOdgymq tQmg== 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=HI8Vjzu1bcK0wq2FDNvNbOPfeFGs0MI+5/1t6Q87RFk=; b=CKxRMHJeGL+i9rYwDZ5nthF7ikkvzrzs/xyAhBXVXK3AKYw7zATkUJLcRDm9iflFbz xi4sZ4E1osWBlkpFFbHs/ZZT6BgVTi6Z03AsnKmwfDSrDLZS8KQE0bRvnMJaWCQchlNv 7UfrgRqile9DbAHSrmX9KkL4Gn4GXsSwVjK5A42fdvyzpGdL0IWzD501a2/HSTJdiIcX aU1e9/A3oQWDWYOYbigH8IgQe9vKB4aQPJaw9gAucf+8HxQDSJhO9Wzxm70EbFwqWbrF BVJMwvzhRs0d8Q9dEW9nPQl5Ad239+yVewooTGCH1XusIrNuNOUU4TjMJ/66hftteGB9 9AtA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id c7-20020a023f47000000b00341a089e85asi3018365jaf.88.2022.07.22.09.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 09:04:08 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 484B4840B3; Fri, 22 Jul 2022 18:03:04 +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 739F3840A6; Fri, 22 Jul 2022 18:02:49 +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 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 B3D5B83FA7 for ; Fri, 22 Jul 2022 18:02:44 +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 BF7F51063; Fri, 22 Jul 2022 09:02:44 -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 486DC3F73D; Fri, 22 Jul 2022 09:02:42 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Tom Rini , Sughosh Ganu Subject: [PATCH v8 7/8] doc: rng: Add documentation for the rng command Date: Fri, 22 Jul 2022 21:32:08 +0530 Message-Id: <20220722160209.863840-8-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220722160209.863840-1-sughosh.ganu@linaro.org> References: <20220722160209.863840-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. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes since V7: 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 8b98629d6b..366c8bb4b0 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -55,6 +55,7 @@ Shell commands cmd/pstore cmd/qfw cmd/reset + cmd/rng cmd/sbi cmd/sf cmd/scp03