From nobody Mon Feb 9 21:21:46 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+77784+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77784+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1626265866; cv=none; d=zohomail.com; s=zohoarc; b=dHqo7cwQBu7t74aJ3LWO40qH0ihd7reDssnbLbUKTvtdSPwxuPTKOy17wxwKujBb75CQMbbEJy8ODHVdXOurEaHXgHDDd56K4SdEabJQGZFIePw4B6D8G4aS1GVXG2ElKqaL1wrLAVXmP3jF5MnBar+0sNlxbEaiRFayXZGyqzA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1626265866; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=ZCDDh9YPonjxdI4iIG/wGooWAGYWlEA5hTjh+NpEYgM=; b=LW4Qwx5Hvs8HTtKiDly5bGJlUPrz7FMqheWX1F1Hn05z3qWjP06WZCUVKkJeqB4WBIR00a0Ue5eBA8fN2l52OjMn/AVvNZzl+v0T6XxdOzCtxGVl3Yjvp80TYRSLzvOfMqQmq/GIiyWSNOCKACzkP35PIqF8S5DiClCtHwU8FhI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+77784+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1626265866182278.15463965714355; Wed, 14 Jul 2021 05:31:06 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id YEHVYY1788612xJqsS5CaXlI; Wed, 14 Jul 2021 05:31:05 -0700 X-Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) by mx.groups.io with SMTP id smtpd.web10.6107.1626265865090176907 for ; Wed, 14 Jul 2021 05:31:05 -0700 X-Received: by mail-lj1-f171.google.com with SMTP id h4so1856791ljo.6 for ; Wed, 14 Jul 2021 05:31:04 -0700 (PDT) X-Gm-Message-State: cHF77KQghzOJc1qf7hCnGhZax1787277AA= X-Google-Smtp-Source: ABdhPJwkybahAl0+4iPQKWckEcLfJeS3nck8DjcW0yvfs83QqnTLQqf0Iwro8ATwsS0HxaFXQH1shA== X-Received: by 2002:a2e:390f:: with SMTP id g15mr8847150lja.44.1626265863233; Wed, 14 Jul 2021 05:31:03 -0700 (PDT) X-Received: from gilgamesh.lab.semihalf.net ([83.142.187.85]) by smtp.gmail.com with ESMTPSA id d24sm155525lfa.243.2021.07.14.05.31.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 05:31:02 -0700 (PDT) From: "Grzegorz Bernacki" To: devel@edk2.groups.io Cc: leif@nuviainc.com, ardb+tianocore@kernel.org, Samer.El-Haj-Mahmoud@arm.com, sunny.Wang@arm.com, mw@semihalf.com, upstream@semihalf.com, jiewen.yao@intel.com, jian.j.wang@intel.com, min.m.xu@intel.com, lersek@redhat.com, sami.mujawar@arm.com, afish@apple.com, ray.ni@intel.com, jordan.l.justen@intel.com, rebecca@bsdio.com, grehan@freebsd.org, thomas.abraham@arm.com, chasel.chiu@intel.com, nathaniel.l.desimone@intel.com, gaoliming@byosoft.com.cn, eric.dong@intel.com, michael.d.kinney@intel.com, zailiang.sun@intel.com, yi.qian@intel.com, graeme@nuviainc.com, rad@semihalf.com, pete@akeo.ie, Grzegorz Bernacki , Sunny Wang Subject: [edk2-devel] [edk2-platforms PATCH v6 4/4] Platform/RaspberryPi: Enable default Secure Boot variables initialization Date: Wed, 14 Jul 2021 14:30:45 +0200 Message-Id: <20210714123045.1340940-5-gjb@semihalf.com> In-Reply-To: <20210714123045.1340940-1-gjb@semihalf.com> References: <20210714123045.1340940-1-gjb@semihalf.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,gjb@semihalf.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1626265865; bh=PhcOuOcPte6Z22sAT87jCU3Lfwb9DipEMVy6Lp2A6pk=; h=Cc:Date:From:Reply-To:Subject:To; b=CszmIMZDwtwLllTH7QC2Lj+9Q7SAylbdrpUy+FRW3+YPyia210dAc7rM2y8KkRqPEm7 3lVxci/jbFSADjl921CjRw9PciXrsoGC4/MjFUKQsy8BGrPSiQm0P0idmyJPJxHnHm+dG Q5JKqltfVyGPgNsdHHO4xkQGe8a2bUWIO/c= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1626265867173100005 Content-Type: text/plain; charset="utf-8" This commit allows to initialize Secure Boot default key and databases from data embedded in firmware binary. Signed-off-by: Grzegorz Bernacki Reviewed-by: Sunny Wang Reviewed-by: Pete Batard Tested-by: Pete Batard on Raspberry Pi 4 --- Platform/RaspberryPi/RPi4/RPi4.dsc | 2 ++ Platform/RaspberryPi/RPi4/RPi4.fdf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Platform/RaspberryPi/RPi4/RPi4.dsc b/Platform/RaspberryPi/RPi4= /RPi4.dsc index 79e2571d62..218411b70c 100644 --- a/Platform/RaspberryPi/RPi4/RPi4.dsc +++ b/Platform/RaspberryPi/RPi4/RPi4.dsc @@ -622,6 +622,8 @@ NULL|SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificatio= nLib.inf } SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDx= e.inf + SecurityPkg/EnrollFromDefaultKeysApp/EnrollFromDefaultKeysApp.inf + SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDef= aultKeysDxe.inf !else MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf !endif diff --git a/Platform/RaspberryPi/RPi4/RPi4.fdf b/Platform/RaspberryPi/RPi4= /RPi4.fdf index 1e13909a57..8508065a77 100644 --- a/Platform/RaspberryPi/RPi4/RPi4.fdf +++ b/Platform/RaspberryPi/RPi4/RPi4.fdf @@ -189,7 +189,9 @@ READ_LOCK_STATUS =3D TRUE INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.i= nf INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE +!include ArmPlatformPkg/SecureBootDefaultKeys.fdf.inc INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConf= igDxe.inf + INF SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBoo= tDefaultKeysDxe.inf !endif INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRu= ntimeDxe.inf INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#77784): https://edk2.groups.io/g/devel/message/77784 Mute This Topic: https://groups.io/mt/84200245/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-