From patchwork Wed Jul 20 12:29:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 591866 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5817:0:0:0:0 with SMTP id j23csp4893758max; Wed, 20 Jul 2022 05:31:26 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ubN2Xc/UoyDplaL3TFDDYivL719b77tYnVE07BGvhe7ou1n/Xdq1QsGZvWDxQfVLlbDZKs X-Received: by 2002:a05:6e02:160a:b0:2dc:12db:121 with SMTP id t10-20020a056e02160a00b002dc12db0121mr20391241ilu.117.1658320285934; Wed, 20 Jul 2022 05:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658320285; cv=none; d=google.com; s=arc-20160816; b=Ls5DyUcD4z5W035cVCuRpPWqbuG0iIMMF/xQQ0k6nnD6oAkEV/PJDMCeGBicZ00UVl 2sVoc4V4DRIvgOhdE4petl6jNcquP08YloMsVI22fvgfLyhx40K1eRAXPKHf7nKXcc4r SdhAb9WIQ2lhikC0rq1sjib0dlLePDpW87QMXzQzagxIsEMBO3o8G9sn5/y10y+fd274 oInA/qdrVIF85RSiIafeabn93ulvbqeobA4QX/W9g4cAR/3eWTSBSqY0PQc8XbBjHI7X c74SF9i1O908DGLPYfGbz5vpsXPsPiWA/4BzL6uGZPvTu5vZ0EKVB+7q4Xq0/L90tbs6 divA== 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=Q0Js4Ejh1VYoekzDlkai0yXSl8wbawxtqsePaCY3DmM=; b=KbjKtV7QgTD0MmQ8M6q8VY9KXKIlgqYe2keuJW/GDtK/A8I+gOVp+BHlPw9xgQcYCu +sLCPApopxAW0ah4jF5zYCh86dzNkWhp1zM/UJdvUEOBYq4Vi3Gk33ptu6ie6xroZ2as KTApSuR7bs9MQit0FuPSF0oAAS0ICH9tBBeA8Y6L75LrK+m4+DQzVYorBXYbZQrZlzDe WoULywde8B1hH6b8jYqeyjPN9dGdoRYPnLAGIdJW2JX/6LhtrzvT7yf44A2jWBdL5/DT 6XtVRsfujW53eYQAjLA7QCvDkuYHgAzWJtVAMXrs3rRpp0MtIn3VrxiULP2bWiNi36vA dzDg== 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 k186-20020a6bbac3000000b0067baa752be4si14681296iof.97.2022.07.20.05.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 05:31:25 -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 8DF43840EE; Wed, 20 Jul 2022 14:30:36 +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 23D9B840B3; Wed, 20 Jul 2022 14:30:22 +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 B9F0D839F6 for ; Wed, 20 Jul 2022 14:30:17 +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 940911576; Wed, 20 Jul 2022 05:30:17 -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 228DE3F73D; Wed, 20 Jul 2022 05:30:14 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Tom Rini , Sughosh Ganu Subject: [PATCH v7 6/7] doc: rng: Add documentation for the rng command Date: Wed, 20 Jul 2022 17:59:25 +0530 Message-Id: <20220720122926.415659-7-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220720122926.415659-1-sughosh.ganu@linaro.org> References: <20220720122926.415659-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 V6: 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