From patchwork Wed Mar 9 12:27:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 549711 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6713:0:0:0:0 with SMTP id u19csp3515666mag; Wed, 9 Mar 2022 04:30:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJx45HGnmh8N0X8doViSgM2E3oasDVsDUr+18aEhhX2CZx5h0axhdvlkXmPHAM6C4OxrT/D9 X-Received: by 2002:a17:907:6d1a:b0:6db:35ce:b7b5 with SMTP id sa26-20020a1709076d1a00b006db35ceb7b5mr10920655ejc.304.1646829059254; Wed, 09 Mar 2022 04:30:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646829059; cv=none; d=google.com; s=arc-20160816; b=tB9wqSL0GPOd2F+/53XuBOF8BACaGXigHwWsZ4i4GT+sf+hbXiBTCPPyHxuySEpcXw i2uOekVkvhepyo268rrlfF5ONcAMkUV/chYWkhyTRBVBMPHva+Oih+kuLzl5zPxQ4hVL qpL/8yH/oMLr/hOpTqDQeTBbXNSvStRo0/PEPa0kN7PySYMYWzKlFK+Jf5QY6camC/Yo w1Su79MlNhoB0F/6rNnBWafUy/LD7MmYXYdjL29ZhPz9r5GlMN3MgcNvpQX65rLXUiqB 5E0goRrxIWYeHaCRzPIv9n6riQsXkws7gBJVJD03HdgOmBFdBEGYkQPz4Hv6Apf+e7mF jS0w== 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=U/tw8cfnS30UOSJZcUglWgQJVQdCAtCZPmU7PNrW9PQ=; b=NAL8s4rUiRtmrZHKNbYLdSONft7cyZRYio83IOb5xGNAy1ypTc3PfUKCFzF5DVlL+8 9E7niDvTBK8L5z5wgJDzY2MR6uaszHtk7VySCKLzhfwL9qNnYnQicquDuUh2HfCG5UeM Kqx+ETTjGBRzmft6qRAo5RB6nhP4yIRBRSScmjl9ssiYT9vpuxfo2OpxBd0dMgi/NdN2 l/BoL/YhP5+piAk4t6iDNCMKHNczBYFgT3doedxXi1qaaMhn3INDrg91XUpUufKHSKMQ uP378Umjvf6uuAwDFAnQm5GLjTJk3pdpabxIfCOEmjGo4tf8i7eUI9+Jq04oSeQjWtSY Rxxw== 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 t21-20020a170906609500b006b305f73cbfsi965472ejj.922.2022.03.09.04.30.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 04:30:59 -0800 (PST) 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 B4B57839CC; Wed, 9 Mar 2022 13:30:53 +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 7A9DB8398D; Wed, 9 Mar 2022 13:29:07 +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 6AAC18398E for ; Wed, 9 Mar 2022 13:28:49 +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 CF8C11688; Wed, 9 Mar 2022 04:28:48 -0800 (PST) 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 0FD363FA4D; Wed, 9 Mar 2022 04:28:46 -0800 (PST) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Sughosh Ganu Subject: [PATCH v4 7/8] doc: rng: Add documentation for the rng command Date: Wed, 9 Mar 2022 17:57:59 +0530 Message-Id: <20220309122800.3940001-8-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220309122800.3940001-1-sughosh.ganu@linaro.org> References: <20220309122800.3940001-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 V3: None doc/usage/index.rst | 1 + doc/usage/rng.rst | 25 +++++++++++++++++++++++++ 2 files changed, 26 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..87758f7d66 --- /dev/null +++ b/doc/usage/rng.rst @@ -0,0 +1,25 @@ +.. 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. + +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.