From patchwork Fri Jul 15 14:27:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 590842 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5817:0:0:0:0 with SMTP id j23csp552835max; Fri, 15 Jul 2022 07:26:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t+GND5rx76dBRBBkkzg4LqqaaDDqBnKB/6DU6dy6gbxVEP4X1Z5ZpBVObtzy1MVY8UlgRR X-Received: by 2002:a02:1981:0:b0:33f:82f:cc41 with SMTP id b123-20020a021981000000b0033f082fcc41mr7252838jab.44.1657895217785; Fri, 15 Jul 2022 07:26:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657895217; cv=none; d=google.com; s=arc-20160816; b=vLdfLzpbcg7iuTDe7jBVUMF3q+TquHQjs6GcBvj+MEFSuzV39Vau4+YtLFzLW0vx0K V7i4tYm0086y5bY8/lX5lgF7iDkxe3D43BnL+rdt4FE98DBipgoQOVKV9KY+F6OiLCjQ lIKNsEaexBAuyFLt+OXse45zrdraFCV/DAijMPNfq0uULWBzLdYh5/2PnmZUAo5CU4Di 1kn8zqwR2VL6IEGz3dMl999/a6UCGHrSEQp0Sr3skg7zCAEDMkhVYFRcR5vTbr0Zas2n 68QObg1PweuRNQ/mZzmfuDqu/NCOZd0EEGiXKzQpz7rXlVdZLK8CNnRs10I2ykF6ODV5 jjpA== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=vuLfgFvgZHZ4kdb0w0HXLMs9Pp7vocINI2Oojq9LWDs=; b=QHBV6a6Ugsxuklpi6YGTCPvDxIjDnd6TTFCe4z+FjvppjHxyHkGQD8FwlaDyOLrY+v UivPHvM88MksqM+QWLxvLXgI4W4mzoHUTLUlXC5j7DcI4QvUcdu9t7ok+lpBMkz+UEpP GCQmUIfXm4luGUmGAMbPUQ8yLtMg3jgm/6Ad0puZbOGRJEiV+1uTbGQqBR80eIdS5oCA 1bLDlBMgn+8AH5N4ONFBSuPwTSsAPzZQ18ZQc1g4QdCrRMh9FpYj9VtzuxVkvS6n9shT smZx0oJyuTyNzdIElAnh28wpJuQzFZUhtsCPrI819wW8FPiEiTLide4HBvtBTvA/uujm yOjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=f28KyNun; 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=pass (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 o7-20020a056e02188700b002dc46abb3fbsi5047373ilu.164.2022.07.15.07.26.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 07:26:57 -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; dkim=pass header.i=@linaro.org header.s=google header.b=f28KyNun; 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=pass (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 2A75C82DA1; Fri, 15 Jul 2022 16:25:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="f28KyNun"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 89460814BD; Fri, 15 Jul 2022 16:25:30 +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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A5A8381297 for ; Fri, 15 Jul 2022 16:25:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pg1-x52a.google.com with SMTP id 72so4577616pge.0 for ; Fri, 15 Jul 2022 07:25:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vuLfgFvgZHZ4kdb0w0HXLMs9Pp7vocINI2Oojq9LWDs=; b=f28KyNunNag99xdrW1lD9pVbHGs5jQ9W4/Lb6fN5D6fXK/T8STSXuRJ5C67KNvlLPl 23nMLF0gb1CCGkeCJmcp/NeqTwsY8ghHcMFGuq+OpwieJIhVK/emYv4X+wWox/IpaE0I afA0xDJuT0JBsm7ThqCmGa8hSPDkvfPhX1GgvteybqFFcqrdPZWRgITV0wmwiuQShmh4 BxJJZF3nkdStqhcE/yYVaq9Tg24OeNNRnN/CuRONCh/fxH0eEAlQX4o3RjGVT8FB5pcX x3zCFzK3Dm+rhZPHcKbCrM/aQK8t0txXeCd9Nqv9O/2e06FCy8tHNWfaTRqvet0I7HGp s5Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vuLfgFvgZHZ4kdb0w0HXLMs9Pp7vocINI2Oojq9LWDs=; b=yUaslZINBW0Bj2EemSBtu8ej++riJ68IZoBVyENDrc5FOMtVaiKLC35Eavg+UfsxFk 4/7TqXSgVQVSGxBmkaCl1wbzNSYokDSr13b2xUaD5NfMozc/jjfbnb/DHVsO1pt7Oykz 7CapmFVkbsvGEL1g1FAbIBwoI3OB0Wh/2XtP+N8pDes3eR8appfo7PKdG0e34qmQblxk wRJST6zWQmBahKufVZCGJGEpYJe12YLCmnBfcRI2vtS6e+Cfu3IZfYbdV8VADLaxNxUd 3peX/N6YhYiIn/JNZ4uVNqeARu5KJa0EDWjMaHxXIB80+MPrqcEiB4bNtGzmlj0Wp/3s 1kvw== X-Gm-Message-State: AJIora/HPSYQQa3umYgIdOHGmmEGGgEIJ7rUPJfGSKNbae8kt45rlS2z ebyutvfxiOnckzyth99z8nypeQ+/M8z/kg== X-Received: by 2002:a05:6a00:2445:b0:528:5a5b:67d3 with SMTP id d5-20020a056a00244500b005285a5b67d3mr14104176pfj.32.1657895122820; Fri, 15 Jul 2022 07:25:22 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id d22-20020aa797b6000000b0051c49fb62b7sm3891174pfq.165.2022.07.15.07.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jul 2022 07:25:22 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Takahiro Akashi , Mark Kettenis , Masahisa Kojima , Bin Meng , =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH 9/9] doc:eficonfig: add documentation for eficonfig command Date: Fri, 15 Jul 2022 23:27:43 +0900 Message-Id: <20220715142743.30137-10-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220715142743.30137-1-masahisa.kojima@linaro.org> References: <20220715142743.30137-1-masahisa.kojima@linaro.org> 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 documentation for eficonfig command. Signed-off-by: Masahisa Kojima --- No change sinch v8 Changes in v8: - command name is changed from "efimenu" to "eficonfig" Newly created in v7 doc/usage/cmd/eficonfig.rst | 49 +++++++++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + 2 files changed, 50 insertions(+) create mode 100644 doc/usage/cmd/eficonfig.rst diff --git a/doc/usage/cmd/eficonfig.rst b/doc/usage/cmd/eficonfig.rst new file mode 100644 index 0000000000..f150d7301c --- /dev/null +++ b/doc/usage/cmd/eficonfig.rst @@ -0,0 +1,49 @@ +.. SPDX-License-Identifier: GPL-2.0+ +.. (C) Copyright 2022, Masahisa Kojima + +eficonfig command +================= + +Synopsis +-------- +:: + + eficonfig + +Description +----------- + +The "eficonfig" command uses U-Boot menu interface and privides +a menu-driven UEFI variable maintenance feature. +The "eficonfig" has the following menu entries. + +Add Boot Option + Add new UEFI Boot Option. + User can edit description, file path, and optional_data. + +Edit Boot Option + Edit the existing UEFI Boot Option + User can edit description, file path, and optional_data. + +Change Boot Order + Change the order of UEFI BootOrder variable. + +Delete Boot Option + Delete the UEFI Boot Option + +Configuration +------------- + +The "eficonfig" command is enabled by:: + + CONFIG_CMD_EFICONFIG=y + +If CONFIG_BOOTMENU_DISABLE_UBOOT_CONSOLE is enabled, user can not enter +U-Boot console. In this case, bootmenu can be used to invoke "eficonfig":: + + CONFIG_USE_PREBOOT=y + CONFIG_PREBOOT="setenv bootmenu_0 UEFI Maintenance Menu=eficonfig" + +See also +-------- +* :doc:`bootmenu` provides a simple mechanism for creating menus with different boot items diff --git a/doc/usage/index.rst b/doc/usage/index.rst index 8b98629d6b..1afbb6bc5d 100644 --- a/doc/usage/index.rst +++ b/doc/usage/index.rst @@ -35,6 +35,7 @@ Shell commands cmd/conitrace cmd/dm cmd/echo + cmd/eficonfig cmd/env cmd/event cmd/exception