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 E8468C7EE29 for ; Thu, 8 Jun 2023 09:49:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A23C6860A9; Thu, 8 Jun 2023 11:49:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com 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=canonical.com header.i=@canonical.com header.b="uRNHqXWp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BBF6E860B4; Thu, 8 Jun 2023 11:49:11 +0200 (CEST) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2EA428609E for ; Thu, 8 Jun 2023 11:49:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 83B843F14A for ; Thu, 8 Jun 2023 09:49:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1686217742; bh=3LJQ45mkVmjIge75OZEaRt8LzpnDJbUxqPEwJcpCU6Y=; h=Message-ID:Date:MIME-Version:To:Cc:From:Subject:Content-Type; b=uRNHqXWpSYvJB55RnrNn+NyHgwxL0gwltr07BJGtVibdB7L2tNGLdgDvspvwj5MW/ MS4/PMWsyGRXgeXKEcUVfwt5+31Wg4hNt4maJIuj5yDjnbYrq/thbGo1wsYBsof4BM pM1F3R1O3NvtD0+YdhD/aqZ3Un0HsMEPEdxKS1FHVJrFFAp7w9NKmQMzXXwLQCns7+ CKiLeKbXiX+aWq4rJN3buBramIGfmSuOdzWwXAS4tKPgMK5QNHThbV7ZfNHr+FrELV bYhqIjvvAEGMwTaJwPfMY6tql2+BQwrJP2EIAQ3SFgBlrM8aLP96eTvb54qDgg73Cm p3m56hcpQ36hA== Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-3f5fa06debcso2497525e9.0 for ; Thu, 08 Jun 2023 02:49:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686217742; x=1688809742; h=content-transfer-encoding:subject:from:cc:to:content-language :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=3LJQ45mkVmjIge75OZEaRt8LzpnDJbUxqPEwJcpCU6Y=; b=BoYIYsBQeqkwR7aD0+c2qD4P9PVb7NPWF6qnj/BkpIwZoHQkPTeItTOAkY93O2n/M2 YDJFpHItFtK6ukrgD3OJg9EqjSWz1bZWy6iB2eLorgxO6z1F9jZ9dcRtxtsc8FdFlV74 twISJT8tbbJJEsg2gs1l5jSUTUU2sT62SUKldRyH/GdVTyB/Fw2vvrDvyDR7sDI5dW83 o2n7e27z9E/KQR4tcU0m0+GqjHxjT+kQ71VtDhH5Fq3XCdkxrb4LOjpKmtLW5RxjLqSU H5W+bwJNc9f22wgbn9WumLB47gSY52zlcOiBfW7snX58Ngsck0Ky7ZhySFnUaFKVLbBB U0TA== X-Gm-Message-State: AC+VfDykchIKdhAnaz7MyeslS4eV8oP1kDFxUKngrOemC2h9S0oYoqVH +Ashk7gyd2nhaRntEMbX0VtXqCccQJAm8fK8roU55G+blGn/VhRq0gO0tkS4XPqkSTjEjtBq96T hqTVzojYz/YqTne33GX2JfdtKBiM9jHM= X-Received: by 2002:a1c:6a12:0:b0:3f7:fcca:5e32 with SMTP id f18-20020a1c6a12000000b003f7fcca5e32mr621039wmc.17.1686217742159; Thu, 08 Jun 2023 02:49:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+AzKJIUHUae4ylDNrC2Xu+4bKtmYIHS/sztT7tt+j/7Wr2dcTnt/v8pqRwlH+Unxpbc8kyA== X-Received: by 2002:a1c:6a12:0:b0:3f7:fcca:5e32 with SMTP id f18-20020a1c6a12000000b003f7fcca5e32mr621019wmc.17.1686217741719; Thu, 08 Jun 2023 02:49:01 -0700 (PDT) Received: from [172.21.85.170] ([90.160.41.100]) by smtp.gmail.com with ESMTPSA id a4-20020a056000050400b0030ae3a6be4asm1060451wrf.72.2023.06.08.02.49.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 02:49:01 -0700 (PDT) Message-ID: Date: Thu, 8 Jun 2023 11:49:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Content-Language: en-US To: Tom Rini Cc: U-Boot Mailing List , Ilias Apalodimas , Masahisa Kojima From: Heinrich Schuchardt Subject: [u-boot/next] Pull request efi-next-20230608 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 Dear Tom, The following changes since commit ac6096fe9c4d99f1dc37db95f213e08a48b11e70: Merge branch '2023-06-01-assorted-platform-updates' into next (2023-06-01 15:43:38 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-next-20230608 for you to fetch changes up to b6f954e5b09545d18a150e4a4431a648e41ff287: test/py: efi_capsule: test for FMP versioning (2023-06-08 09:20:36 +0200) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/16516 ---------------------------------------------------------------- Pull request efi-next-20230608 UEFI: * Support for firmware versions in capsule updates ---------------------------------------------------------------- Masahisa Kojima (10): efi_loader: add the number of image entries in efi_capsule_update_info efi_loader: store firmware version into FmpState variable efi_loader: versioning support in GetImageInfo efi_loader: get lowest supported version from device tree efi_loader: check lowest supported version mkeficapsule: add FMP Payload Header doc: uefi: add firmware versioning documentation doc: uefi: add anti-rollback documentation test: efi_capsule: refactor efi_capsule test test/py: efi_capsule: test for FMP versioning arch/arm/mach-rockchip/board.c | 4 +- .../advantech/imx8mp_rsb3720a1/imx8mp_rsb3720a1.c | 2 +- .../imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c | 2 +- board/emulation/qemu-arm/qemu-arm.c | 2 +- board/kontron/pitx_imx8m/pitx_imx8m.c | 2 +- board/kontron/sl-mx8mm/sl-mx8mm.c | 2 +- board/kontron/sl28/sl28.c | 2 +- board/rockchip/evb_rk3399/evb-rk3399.c | 2 +- board/sandbox/sandbox.c | 2 +- board/socionext/developerbox/developerbox.c | 2 +- board/st/stm32mp1/stm32mp1.c | 2 +- board/xilinx/common/board.c | 2 +- doc/develop/uefi/uefi.rst | 66 +++++ .../firmware/firmware-version.txt | 22 ++ doc/mkeficapsule.1 | 10 + include/efi_loader.h | 3 +- lib/efi_loader/efi_firmware.c | 276 +++++++++++++++++-- lib/fwu_updates/fwu.c | 2 +- test/py/tests/test_efi_capsule/capsule_common.py | 142 ++++++++++ test/py/tests/test_efi_capsule/conftest.py | 82 ++++++ .../test_efi_capsule/test_capsule_firmware_fit.py | 213 +++++++-------- .../test_efi_capsule/test_capsule_firmware_raw.py | 301 ++++++++------------- .../test_capsule_firmware_signed_fit.py | 269 +++++++----------- .../test_capsule_firmware_signed_raw.py | 276 ++++++++----------- test/py/tests/test_efi_capsule/version.dts | 24 ++ tools/eficapsule.h | 30 ++ tools/mkeficapsule.c | 37 ++- 27 files changed, 1102 insertions(+), 677 deletions(-) create mode 100644 doc/device-tree-bindings/firmware/firmware-version.txt create mode 100644 test/py/tests/test_efi_capsule/capsule_common.py create mode 100644 test/py/tests/test_efi_capsule/version.dts