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: 387669 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp1171316jap; Fri, 26 Feb 2021 04:53:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDdBW8014MI+La+dOs0epBcz0fnMNLMnK3kIf04VEejVCLszcI5E6iYDzE19gOStTbl0el X-Received: by 2002:a05:6402:1383:: with SMTP id b3mr3161645edv.374.1614344020386; Fri, 26 Feb 2021 04:53:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614344020; cv=none; d=google.com; s=arc-20160816; b=rgYmdwfjn59axFbylb+j8m62oPqWXxi1b+2kSlZ5Dw/z4GeDqaIU59Mi0YgusxK3gS pbPhjJHwK1P81QRoj0qWOjH5p3gCwQwJscwpMa0g+6tmdySHb10TG3tPc2E/ors/QXDr U25n9m1hppI9ibeY/xkqrYaPjuLDZWgHJgNI1sevFi5I0rRu17dL+lDsPPGGqc2IrGsF rHehbo8iGX0hhRzXOsETI1c73CWAxi7iN5oEfD3rshZqUTP6x06m+4kUlTEmIlpeJNZx P2WLIW6WC2BnVXS2MpeBQKxiuj92mjylKqogOWSp7TDYldyA4lY13g/5hcuh6gMi4Ur1 ZVtA== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=v9AIEoAJZqhU52eDGqxn9PqpyDjXaBOg3qdkwZr/Lxk=; b=s86O6ir+m6oIhaTJYdYjR3WucBWKIVtvRryq5gPfLA4slZel1F3w+nUzD7pYkiiird Yf8nVDbtaWiukK9r3nPDwyc0FZz5EoCtAv9sCgIKfW6dI2klLZeks+fN/Qn7djpqKu1n +KA99RJGT/EZdjoUUYu6JBtnnlSuk/SXV0lkP53Kr+Wto6lZc5mk/YwIXGxjf7Wu39+3 mGJKHl/Gvh2wxM7l3t0lHrT6zz/xMPFqowuie2p5TqMOZ79t8DEj/HYlt1zvTnkNUurr +3+vu9nksp7zqqIiqGeLHbyTN2EX/dZK0t5Fu34ydeCbutqFm5nIEwv/DB+zrz0++mGj VNlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FsaaVnjv; 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 a11si5678457ejr.282.2021.02.26.04.53.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 04:53:40 -0800 (PST) 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=FsaaVnjv; 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 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-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 --- 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(+) -- 2.30.1 Reviewed-by: Patrick Delaunay 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