From patchwork Sat Feb 5 13:52:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1588743 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.a=rsa-sha256 header.s=badeba3b8450 header.b=g9ZyUCc3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JrYkV57w3z9s8s for ; Sun, 6 Feb 2022 00:52:34 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D2FDF83B4F; Sat, 5 Feb 2022 14:52:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=gmx.net header.i=@gmx.net header.b="g9ZyUCc3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A425E83B4D; Sat, 5 Feb 2022 14:52:28 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (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 6514083B54 for ; Sat, 5 Feb 2022 14:52:25 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644069143; bh=qREn3b8jU0wkqbOZ4bHXi5o1A0Y+dwb5bIup4DJ+ZE0=; h=X-UI-Sender-Class:Date:To:Cc:From:Subject; b=g9ZyUCc3qO1V+u5MTQfveDk7ONBepDYohfHW6SAF6nWqj1WksqYUR8RVksOcS6vOr krwfe+L4Wg5WmxLjFEd74MDUjUKjEeBHDq9SVXlNqmOJdHj2KNS9ozh6WYD3bI5MUc nICc7kL6lNbSkdwDcjLjhhb1C+VkruE8Az+tG2kw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.94] ([88.152.144.107]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MxUrx-1mJBHy2XtJ-00xuVJ; Sat, 05 Feb 2022 14:52:23 +0100 Message-ID: <16896751-4b7a-501e-1a24-9aa56bbb4c8d@gmx.de> Date: Sat, 5 Feb 2022 14:52:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Content-Language: en-US To: Tom Rini Cc: U-Boot Mailing List , AKASHI Takahiro , Simon Glass , Sunil V L From: Heinrich Schuchardt Subject: Pull request for efi-2022-04-rc2 X-Provags-ID: V03:K1:IcSzXr2CaDtRMbpu45LCN3uMuli1YhcCB8Xi0v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elgC52zZFUnZFFttXgRjur/PvYcMQSdJugckvOFdBGRmcKGStE 0H3/j5dHkCrm6C83BoHW3lMhI1FsXPZ4BSEoOPE+Y7agaMREBhirMvSV3N1+3JG+Qd4tBsx2c fDdQMLxUF7di0fn3F2Nl7ifLiiOr1lX+YQ9DYbNsvjXfVME37OLb8Xz8jLtPy8ulOMBbb+n9w ww3Vax2AHCYs3MDTHWSPRadKyu4aadEgJY5zEZD/ZNfZhyJgzXPHoXDV9Cf3AD4F/+XBYVDXn z7HnP3et5ypLko= 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.5 at phobos.denx.de X-Virus-Status: Clean Dear Tom, The following changes since commit 3aaabfe9ff4bbcd11096513b1b28d1fb0a40800f: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi (2022-02-03 23:24:31 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-04-rc2 for you to fetch changes up to 8296548fe924678d9ac19ea3f69dca2fff879ab5: test/py: efi_capsule: check the results in case of CAPSULE_AUTHENTICATE (2022-02-05 10:35:32 +0100) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/10864 ---------------------------------------------------------------- Pull request for efi-2022-04-rc2 Documentation: * man-page for mkeficapsule UEFI * add UEFI firmware image signing to mkeficapsule * provide firmware image authentication test * add unit test for RISCV_EFI_BOOT_PROTOCOL * disable UEFI for Colibri VF610 * add handle for UART * fix printing of Unicode strings * simplify enumeration of block devices ---------------------------------------------------------------- AKASHI Takahiro (9): tools: build mkeficapsule with tools-only_defconfig tools: mkeficapsule: add firmware image signing tools: mkeficapsule: add man page doc: update UEFI document for usage of mkeficapsule test/py: efi_capsule: add image authentication test tools: mkeficapsule: allow for specifying GUID explicitly test/py: efi_capsule: align with the syntax change of mkeficapsule test/py: efi_capsule: add a test for "--guid" option test/py: efi_capsule: check the results in case of CAPSULE_AUTHENTICATE Heinrich Schuchardt (9): configs: disable UEFI for Colibri VF610 efi_selftest: merge FDT and RISC-V tests lib: fix snprintf() for UTF-16 strings test: test UTF-16 truncation in snprintf() efi_loader: fix device path to text protocol efi_loader: use %zu not %zd to print efi_uintn_t efi_loader: use %zu to print efi_uintn_t in FMP driver efi_loader: fix text output for Uart() DP nodes efi_loader: add handle for UART Simon Glass (3): efi: Add debugging to efi_set_bootdev() efi: Use device_get_uclass_id() where appropriate efi: Drop unnecessary calls to blk_find_device() Sunil V L (1): efi_selftest: unit test for RISCV_EFI_BOOT_PROTOCOL MAINTAINERS | 1 + cmd/bootefi.c | 32 +- configs/colibri_vf_defconfig | 2 +- configs/tools-only_defconfig | 1 + doc/develop/uefi/uefi.rst | 147 +++---- doc/mkeficapsule.1 | 111 +++++ include/efi_loader.h | 1 + lib/efi_loader/efi_boottime.c | 6 +- lib/efi_loader/efi_console.c | 52 ++- lib/efi_loader/efi_device_path.c | 24 +- lib/efi_loader/efi_device_path_to_text.c | 45 +- lib/efi_loader/efi_firmware.c | 4 +- lib/efi_selftest/efi_selftest_fdt.c | 72 +++- lib/vsprintf.c | 14 +- test/py/tests/test_efi_capsule/capsule_defs.py | 5 + test/py/tests/test_efi_capsule/conftest.py | 59 ++- test/py/tests/test_efi_capsule/signature.dts | 10 + .../test_efi_capsule/test_capsule_firmware.py | 91 +++- .../test_capsule_firmware_signed.py | 254 ++++++++++++ test/unicode_ut.c | 31 ++ tools/Kconfig | 8 + tools/Makefile | 4 +- tools/eficapsule.h | 115 ++++++ tools/mkeficapsule.c | 459 ++++++++++++++++++--- 24 files changed, 1320 insertions(+), 228 deletions(-) create mode 100644 doc/mkeficapsule.1 create mode 100644 test/py/tests/test_efi_capsule/signature.dts create mode 100644 test/py/tests/test_efi_capsule/test_capsule_firmware_signed.py create mode 100644 tools/eficapsule.h