From patchwork Wed Feb 22 10:40:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 655683 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp620914wrb; Wed, 22 Feb 2023 02:39:26 -0800 (PST) X-Google-Smtp-Source: AK7set8/5HDfFKGWXHwkqGl+xrp8KKcNtI6oJbEYHcfL0DB/6vLrbFH/OtXyn5ZUVRoAy0EdGdSm X-Received: by 2002:a05:6870:469f:b0:16d:f3c8:cf8d with SMTP id a31-20020a056870469f00b0016df3c8cf8dmr9238968oap.29.1677062366593; Wed, 22 Feb 2023 02:39:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677062366; cv=none; d=google.com; s=arc-20160816; b=JA63+m3KBABQqhMmhoj2hd6AZKaJ4CqRvATMXS56y+/CvNOdPMi7O6bZpVi93Tm28q 2UbWsSvyYs0yrH+9bygdEnohXQMzIXh8zsjS+YkV5bpsJg2dGQ8E3OS7bVdbtJOddSZr um5Jos9pUOSUZgaeF1ARudT0m1HL0+fnVVA/6r6dnDWoFEhA8jRKYNuYUgv11K7ggyAM xrTvL4Q3KssxsuOr0wkj2xWurNLNkLWT61UUz+1fXXCfltGUHUQ12roDdyGQpxCejAUz pDW4GVjAGWsXww3NNSVcQD4ALyMimXOXmCd9so8DMGAzxbSO3XpMfAuOPV9r28zrGC64 jtpQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=H1HXosTA4ZYdXNRHvkrKTKTSwF+WYcz7SPb7R/W1svk=; b=ofSFgfdMIEeW5c3cApaH1D2jGPhDBA6SSQUj96p1QM4uf7R6yYwbFyGbWF9xDg3QbZ KdHgUQIZYKCPnkLZyIHLPNHielLWcEiFG+WH3uZxSFlRIEFN97/nb6oWEsVs1fngsx6x VPkGXHh/UAEkLfkzEK2Txg18QnGRZlxJJkfdfjlSbUZeo75TQNXsFbHiuxDEHrab61ic B827GcWDbcHVwjokvyhFmvpLNwlaBO9Fykvj8vK2bRRfnfyQ3Ku6qrcTvnO1pYEm4I5d M+LveyuBYfajitaLzIUHeeF2FvkDZKkvQpLSdkQKfXZDoc8iUkLLNeRjkHSdX/xcpbEE TEoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="YWBRR/ye"; 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 ea49-20020a056870073100b00172579cd964si1199812oab.68.2023.02.22.02.39.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 02:39:26 -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="YWBRR/ye"; 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 470F6858C8; Wed, 22 Feb 2023 11:39:22 +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="YWBRR/ye"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4616F85870; Wed, 22 Feb 2023 11:39:19 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) (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 15FE685A7D for ; Wed, 22 Feb 2023 11:39:08 +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=masahisa.kojima@linaro.org Received: by mail-pl1-x62b.google.com with SMTP id z2so8405562plf.12 for ; Wed, 22 Feb 2023 02:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H1HXosTA4ZYdXNRHvkrKTKTSwF+WYcz7SPb7R/W1svk=; b=YWBRR/yenQBiWuYCf4yHM2wLjgheJZkL8ZdOccQbjg4mRLxx74Ljpg1MHIKEd+9cUF SfLbyPy7PBOtVX6szZK8gWCvqfHr0Q4KPYTcVyayc610G/Hkvrf3lDrnN73CMMdWKL/p 7UJZ30dd9yWc5MjVZ9Ng6tpVAepKWBHN/+CpD8rwmgO1B/o+Iac6xn40+ttBsbTSGTrt VCN9bU4OSX8NUDIf0LB2TeZpXM0LhEbMHyRgcm0BnohdXAbGkpAjaQ6JDSnBZxwCygds cYo0Gk50MizP2Y04sLHv3stgwk5oraR8NwRAO2OCCRMAdarOmonAv3UEe1b0XvFtlxhO INfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H1HXosTA4ZYdXNRHvkrKTKTSwF+WYcz7SPb7R/W1svk=; b=MzCM4sDB/6Op++6R9XodAuZAmyYu7uGaUzGee/Zv0viRl+AjOnl3jp2H+nzsCtbPar dwLmFrfES4M8LMkGp+kvx9Wnk9YLuWh08vMJopkkvn1aOuShyQHQa2eICxD9DqXk28Ww MMZeGCFjdopPsS3iGvfoRaDADezZs2GG9xkj2C9ESQhWO4dmE4yaktw96IP7SlnorDBL fzx6V2xpqr+A2QEZd4s+XjSXJY1w9ZaAc/oYOE/9cOB3b0nssWnXS5xFmW/gKM064uxx /E5sEveSjA/ux7ZQR+022datrV7uRsyctwU5x1lgYiJLTUfpXIyZ7rokkq71ti8w0hrB mZ0A== X-Gm-Message-State: AO0yUKUVZLXbdQ+nN3DsCrWqsNqcFp65EPcKvAZOLXOE3o3qfpYCKU9z yyZ1kIdQB92Hj2mZV9jg5aSiFOQdysx/uvfkxnI= X-Received: by 2002:a17:903:24c:b0:19c:b3c9:5b16 with SMTP id j12-20020a170903024c00b0019cb3c95b16mr73197plh.12.1677062346033; Wed, 22 Feb 2023 02:39:06 -0800 (PST) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id ja17-20020a170902efd100b0019acd3151d0sm6201029plb.114.2023.02.22.02.39.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 02:39:05 -0800 (PST) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Takahiro Akashi , Masahisa Kojima Subject: [PATCH RFC 0/3] FMP versioning support Date: Wed, 22 Feb 2023 19:40:33 +0900 Message-Id: <20230222104036.14262-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 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 This series aims to add the versioning support in FMP protocol implementation. EDK2 reference implementation utilizes the FMP Payload Header inserted right before the capsule payload. With this series, U-Boot also follows the EDK2 implementation. Note that this series is RFC and only tested with RAW image with single image index. [TODO] - test with FIT image, authenticated capsule, multiple image index. - enhance U-Boot mkeficapsule tool to insert FMP Payload Header Masahisa Kojima (3): efi_loader: store firmware version into FmpState variable efi_loader: versioning support in GetImageInfo efi_loader: check lowest supported version in capsule update lib/efi_loader/efi_firmware.c | 269 ++++++++++++++++++++++++++++++---- 1 file changed, 242 insertions(+), 27 deletions(-)