From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B89B1EB64D7 for ; Thu, 29 Jun 2023 01:01:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7D8E48665D; Thu, 29 Jun 2023 03:01:54 +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="b+JuUojQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2C96686656; Thu, 29 Jun 2023 03:01:51 +0200 (CEST) Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) (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 A6C6786656 for ; Thu, 29 Jun 2023 03:01:47 +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=takahiro.akashi@linaro.org Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-66d6a9851f3so39190b3a.0 for ; Wed, 28 Jun 2023 18:01:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1688000506; x=1690592506; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=SxAe+i5MOAzcqzmpTiQRb1QlWybACGbV3nrWXkLiofU=; b=b+JuUojQIUwfdZYF3nTs23XeueLGXddIFJxJmacJJP1WaAJEJYoDfYENu9qQDQXDIP 4lgcUPk03Clj0NEWETz+T7Qd8XkjdTWSnAXHfEvC0rUk2yrxU8bwwEqwEggSrYJ4zL8D BJd7MdREAU43iR7QIqOj0T3HetK7yK80kDOnV1GT8x3oulXs8hbQBtEWBrzvTcMgM3FE bzzHnTygP0ykyWMPbUEiHoYd9/KAcLOBCPCCzzPk4QcPbtJnAlo5JxbuCjgV+cbD2pdp 6cZhBdJbAzNII6yDZ8zG7V21itZYbKknoSIpyWxcR49Es7Yd+AKHGxICjM6KaptE/T6r mTSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688000506; x=1690592506; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SxAe+i5MOAzcqzmpTiQRb1QlWybACGbV3nrWXkLiofU=; b=i7g6r/2gOpXX00UEtzqo2QNxYFoM7vuX0L1yIs8W84Wa4D+n1pVzCRNlAvWK8D4VQe EKnFXtXSlbURbA3oeRCR7LWktWF4oiVGuKIcIyu/d+rZAoCepwTw3rQg05sRD7x3amHK JKssSdzwZpQl5JnNZsP3mi16luE/smrWLL35Gm6e3Zhxm9P/TDornn/CeynE9znKUo0V A9BbpUeAk6gp3jqsCGL8HNgQBmAMUJWb6xMWoI31I5I7kaOlXoR7B7jpJI3sK9CKRuM4 WnS4SagtbTCWHFirJoq3euK+O1Bb4oJVHd0T2hxCQyuLYSx6RyJyoUNavkrfDfYafYSQ PdBw== X-Gm-Message-State: AC+VfDxKHzNDt8/4WqWZte0jvrZBSIyfMbvmwsDtudP+Y1quQaEV2tju qMHbCPSPPHJVHODF7ICJb9QDhA== X-Google-Smtp-Source: ACHHUZ7LxZi0U4zkhDWt8AUJAxBdRpbYjV6Uh+48tjL1W7+Pj+q+2brafkrMBUXmYgVZzau0voLlZw== X-Received: by 2002:a05:6a20:8e19:b0:11a:efaa:eb88 with SMTP id y25-20020a056a208e1900b0011aefaaeb88mr45565126pzj.3.1688000505733; Wed, 28 Jun 2023 18:01:45 -0700 (PDT) Received: from laputa ([2400:4050:c3e1:100:aebc:b5da:e8f9:9558]) by smtp.gmail.com with ESMTPSA id s17-20020a632c11000000b0053f2037d639sm7967459pgs.81.2023.06.28.18.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 18:01:45 -0700 (PDT) Date: Thu, 29 Jun 2023 10:01:42 +0900 From: AKASHI Takahiro To: Neil Jones Cc: "u-boot@lists.denx.de" Subject: Re: EFI Secure boot default keys Message-ID: Mail-Followup-To: AKASHI Takahiro , Neil Jones , "u-boot@lists.denx.de" References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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.8 at phobos.denx.de X-Virus-Status: Clean On Wed, Jun 28, 2023 at 04:26:58PM +0000, Neil Jones wrote: > Please can someone describe the format of the file needed for the default / built-in EFI secure boot keys (ubootefi.var) > > The only docs I have found suggest its best to enroll the keys from within u-boot onto some removable media, then copy this off and use this as the default, this is not very helpful and doesn't work for me: > > => fatload mmc 0:1 ${loadaddr} PK.aut > 2053 bytes read in 18 ms (111.3 KiB/s) > => setenv -e -nv -bs -rt -at -i ${loadaddr}:$filesize PK > setenv - set environment variables > > Usage: > setenv setenv [-f] name value ... > - [forcibly] set environment variable 'name' to 'value ...' > setenv [-f] name > - [forcibly] delete environment variable 'name' > > my setenv doesn't support all the extra switches ? This is with 2022.04, all other EFI options seem to be in this release and I can boot unsigned EFI images ok. Please turn on CONFIG_CMD_NVEDIT_EFI when building your U-Boot. This option was disabled by the commit: commit 3b728f8728fa (tag: efi-2020-01-rc1) Author: Heinrich Schuchardt Date: Sun Oct 6 15:44:22 2019 +0200 cmd: disable CMD_NVEDIT_EFI by default The binary size of efi has grown much since in the past, though. -Takahiro Akashi > Cheers, > > Neil > > >