From patchwork Fri Feb 26 12:52:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 1444926 X-Patchwork-Delegate: patrick.delaunay73@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=FsaaVnjv; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Dn8jL6Cy4z9rx8 for ; Fri, 26 Feb 2021 23:53:42 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 05C6A82774; Fri, 26 Feb 2021 13:53:38 +0100 (CET) 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="FsaaVnjv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D0F56827EA; Fri, 26 Feb 2021 13:53:02 +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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (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 C579182748 for ; Fri, 26 Feb 2021 13:52:54 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wm1-x32f.google.com with SMTP id u125so7678432wmg.4 for ; Fri, 26 Feb 2021 04:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=v9AIEoAJZqhU52eDGqxn9PqpyDjXaBOg3qdkwZr/Lxk=; b=FsaaVnjvecmyDGsLhf6CLUmlK3LJ+eVWl1b7wuE/ukX05oiSUus6GV0spXnAHqOOea yanObVtMstLJmdRfat8DumZfapRlLm3YsvlQom7cvaSgccc8sMgwwFfaenc93YIRY5Kg SecIzOcYfdqFK+Xi4cctcrqUwmZ6CTfTrC4bYRRzongN7i22MPJ9NgYcdY9MdKc9Y3/a 6xXcBnVwo5VgTagH0eOnWnxOQaWBnPj3ELgtF+WGu2NSylB5z0jkYHY4SVoaYsasCTvK QunMIPtSrNJHoHp4HCCNcFD/4FSYqyvmAy9I82lepgzmbHkFoei8+u7b9RYySkMhjI6B 5OuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=v9AIEoAJZqhU52eDGqxn9PqpyDjXaBOg3qdkwZr/Lxk=; b=Q+TgsgDyRGCvA4+0rckuwm9kedlhCM2HZIwdeeUENUUThO1s1ApgJ1gsWIJiQ4Zn+j l2RrcfhmFBEmHkrHOHTwD93lYbP7/Wert4alu7wXx6sXzsVDqBxvNS3S8Rq7mvNEmWOp XJZiScFB1ZIVmLymWRkYpkdgKfVjIHDf9/RTU81ZUDba/4Ba/F4swUE+mxCRomKTpWDd PZSx+Dk7oHlWJCXcBnIgR0+JpNy322oLfJ5He2uiukZ9BSL+FDNQZSkgIE7LuHvkziAM FXu2sXUgOuLwr2m5DLRMXr4LuaQmLJQ72U86C4C5H9qAMnnD28EDYAzWcdTiOAjsczCR RY6Q== X-Gm-Message-State: AOAM530xSg0a9qW/z3Il9h3TFtLtRW5gqAVEA48rrUiD3EWj60hE9L9k +mng/lpcAIRPV/p16wt3VNQACQ== X-Google-Smtp-Source: ABdhPJy/S1fMs7VxsW5OY5Rw7+hFQx38cxUQci1DXVDear89kZDgbt3sJUKYmHvqtO7FXe7UqFjKmw== X-Received: by 2002:a7b:cf27:: with SMTP id m7mr2773508wmg.65.1614343974405; Fri, 26 Feb 2021 04:52:54 -0800 (PST) Received: from apalos.home ([2a02:587:4647:e6c6:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id u142sm12015778wmu.3.2021.02.26.04.52.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 04:52:54 -0800 (PST) From: Ilias Apalodimas To: patrick.delaunay@foss.st.com Cc: Ilias Apalodimas , Patrice Chotard , uboot-stm32@st-md-mailman.stormreply.com, u-boot@lists.denx.de Subject: [PATCH v2] configs: stm32mp1: enable uefi related commands Date: Fri, 26 Feb 2021 14:52:51 +0200 Message-Id: <20210226125251.2150584-1-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.4 at phobos.denx.de X-Virus-Status: Clean The board can boot with UEFI. With the latest changes in U-Boot's EFI subsystem we also have support for EFI runtime variables, without SetVariable support. We can also store the EFI variables in a file on the ESP partition and preserve them across reboots. The env and efidebug commands are missing in order to configure EFI variables and the efibootmgr though. Since U-Boot's default config enables other EFI related commands (e.g bootefi), let's add the env related and efidebug commands and allow users to do that Signed-off-by: Ilias Apalodimas Reviewed-by: Patrick Delaunay --- Changes since v1: - Apply identical changes on stm32mp15_basic_defconfig configs/stm32mp15_basic_defconfig | 3 +++ configs/stm32mp15_trusted_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/stm32mp15_basic_defconfig b/configs/stm32mp15_basic_defconfig index def6a51b4031..1c680984b876 100644 --- a/configs/stm32mp15_basic_defconfig +++ b/configs/stm32mp15_basic_defconfig @@ -34,6 +34,7 @@ CONFIG_SPL_SPI_FLASH_MTD=y CONFIG_SYS_PROMPT="STM32MP> " CONFIG_CMD_ADTIMG=y CONFIG_CMD_ERASEENV=y +CONFIG_CMD_NVEDIT_EFI=y CONFIG_CMD_MEMINFO=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_ADC=y @@ -49,6 +50,7 @@ CONFIG_CMD_USB=y CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_BMP=y CONFIG_CMD_CACHE=y +CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_TIME=y CONFIG_CMD_TIMER=y CONFIG_CMD_PMIC=y @@ -164,4 +166,5 @@ CONFIG_BMP_32BPP=y CONFIG_WDT=y CONFIG_WDT_STM32MP=y CONFIG_ERRNO_STR=y +# CONFIG_HEXDUMP is not set CONFIG_FDT_FIXUP_PARTITIONS=y diff --git a/configs/stm32mp15_trusted_defconfig b/configs/stm32mp15_trusted_defconfig index da31b74cdeb6..107041119f1d 100644 --- a/configs/stm32mp15_trusted_defconfig +++ b/configs/stm32mp15_trusted_defconfig @@ -17,6 +17,7 @@ CONFIG_BOOTCOMMAND="run bootcmd_stm32mp" CONFIG_SYS_PROMPT="STM32MP> " CONFIG_CMD_ADTIMG=y CONFIG_CMD_ERASEENV=y +CONFIG_CMD_NVEDIT_EFI=y CONFIG_CMD_MEMINFO=y CONFIG_CMD_MEMTEST=y CONFIG_CMD_ADC=y @@ -32,6 +33,7 @@ CONFIG_CMD_USB=y CONFIG_CMD_USB_MASS_STORAGE=y CONFIG_CMD_BMP=y CONFIG_CMD_CACHE=y +CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_TIME=y CONFIG_CMD_TIMER=y CONFIG_CMD_PMIC=y @@ -144,4 +146,5 @@ CONFIG_BMP_32BPP=y CONFIG_WDT=y CONFIG_WDT_STM32MP=y CONFIG_ERRNO_STR=y +# CONFIG_HEXDUMP is not set CONFIG_FDT_FIXUP_PARTITIONS=y