From patchwork Fri Dec 2 19:49:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1711575 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=gmx.de header.i=@gmx.de header.a=rsa-sha256 header.s=s31663417 header.b=j8kNm4yq; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NP3Sh5tF6z23nB for ; Sat, 3 Dec 2022 06:50:12 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4A6A3830E9; Fri, 2 Dec 2022 20:50:05 +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=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=gmx.de header.i=@gmx.de header.b="j8kNm4yq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 82E50843E4; Fri, 2 Dec 2022 20:50:03 +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,FREEMAIL_FROM,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (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 13E8281A0E for ; Fri, 2 Dec 2022 20:50:00 +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.de; s=s31663417; t=1670010595; bh=/rAz23nNLQ6/kGv+qZ/YbtS/QJGToKlz453XgjeIHa0=; h=X-UI-Sender-Class:Date:To:Cc:From:Subject; b=j8kNm4yqPQyheesIRZzd8zGXM49BK6m3Hn2dyZnOOYAnC++5VGWVxRNp70DqCoLev 15FLMYmvOLio50QwyOtiwLgDWHITEI7Uv9heim7etPsuozDd09RTS3/NNx0xAGoD4R 9UGC67VzXNVbWz2mmDlTPfL6cIS6GNrcG/Ne9cd9/fKBOLRZE4UBNbwslbllOHjyAu A+iLdSUS8JCtNTAwar5NKrayXBarmC0c44ycvQ64evfWzWxlCJZdkXMMUuOyI1apjv BFcLPe6e77Q+hQKASWyPXbwFlOWZxyzLqb44NNdX0UuaUq6NsiIOZeDBiaQzmHgXSZ Ywpu3zjNjwTkg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.123.94] ([84.118.157.2]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MEUzA-1pBfMf2zcY-00G295; Fri, 02 Dec 2022 20:49:55 +0100 Message-ID: Date: Fri, 2 Dec 2022 20:49:48 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: en-US To: Tom Rini Cc: U-Boot Mailing List , Ilias Apalodimas , Andrew Davis , Masahisa Kojima From: Heinrich Schuchardt Subject: Pull request for efi-2023-01-rc3 X-Provags-ID: V03:K1:Bp259qd5b+FPhWxw6WIh7auyl4Wx7gHbwk+Bl9ADEdF3XQXiNO6 JMaKMmGEFJza0aw9FC+lUnkS46P/+SrRDfWp4cywcEowdUaPZSS3zU7sCMJ0odw68nX7zMS zxPyVCIfEj30Hj90AitMKTE66yGXhWJDzWeHFVrnSWJF6K9QgOU/a5W8+Q6g8dNzDluF3Ql SSBcKsqfIL5+Fp9rPvnbw== UI-OutboundReport: notjunk:1;M01:P0:sD+Zfc/XZRY=;TAx9DOD77F9mCs9GNFtf7xXvWKa MzSkYJPW/k5Vkl2kSO065PQF0Y9vXO6TO8GSCQ4DHqdy81AQjrnQPr6AX2JW+JXTXGqmaC/CV UQRiB2E9bIsfrxZ8JWStFM3oj2I0910TLg/2bCxeH5KwMgriX/nfLaOnLssFcd6gwietjjyiW 8ldjSN/hCvb8lCcxK3gg4phwDCFjBEXYT18rHhpEPDCT8zNGs14MyOSGPF999uv62mjmoOZTe FMu/GXYkrNHEyT4x6veBQEXdWfiS2v1dBv/xg69KcZChw4xYadmhax2tHJ2/xHK/5rsQUNY0E g2y6soRSTT0CJz2CwsUlF9rUUDd4aqjJbKcQYzTzVT4zJuYTDGB36waAz9zXDBWlvFFoYuzlP Vt9NL5SYYJrMhbsyXUgO5kppLuB2ombe5D6fy3gia8a9vQ+HgZnDOUQUnRO3NqY10bGoGXgE8 6mbI5Gy31pVTpS//H5vMe6ZFuMhIgUy16zdq7i3WeqJRy0Id7dlTfrpgBf3X+ZEJBYS5jr1X5 KxHDf8yBw8ZtzRCm7AiCwEpTyiU/rW5i8RGz6Yc5u6zvpeaetxX/0KL7kFCNQvf2NhTn3QCuJ hXcnqmBOW7AsiIcpIO8ZLLslyXiCkhyefPgfVe1GdB//GGWFLkw0SLn8JNGzb3qZQC1kVB2Ll tyz/R4irNOFSgk6Ugj34reKUnhJP7gXwCNUr2k7mMYcFYPs4Ocra6l1wEVjUyIChzEVY5QIYg X7VUNTRgTnHz+eOrfPaM4duIadZhSVaduKObcujVAeVrsSiBIHod/nXMzCIAQG9InrmgCjnFI K8cJDIRPHWPr0xhyopRF9XETA4+x/21CueCjcM10k8EHIGhf2KxGHzyW4xdfo96S4gdIvcQOB P9Ind2K1IYBxKvcEvihqnW4GLJbyIYJCWZ6FVx8qunw8qZIuVWOKBHqkNgtjF2Bq3qFYZ82zW ihALxw== 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 Dear Tom, The following changes since commit a32f6341ccf2ea69f64fe87b9d07fd87325a2056: Merge branch '2022-12-02-assorted-updates' (2022-12-02 10:00:55 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2023-01-rc3 for you to fetch changes up to 30124c2bb96decd737963c043b26407791859faf: doc: eficonfig: add description for UEFI Secure Boot Configuration (2022-12-02 19:17:25 +0100) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/14290 ---------------------------------------------------------------- Pull request for efi-2023-01-rc3 Documentation: * describe DM firmware needed for j721e_evm * describe management of UEFI security data base with eficonfig UEFI: * code clean-up for eficonfig command * fix handling of DHCP aknowledge * correct EFI memory type used for U-Boot code * unit test for FatToStr() truncation * add an EFI binary to print boot hart ID Other: * improve parameter checks in console functions * fix variable initialization in blk_get_device_part_str ---------------------------------------------------------------- Andrew Davis (2): doc: board: j721e_evm: Add DM firmware steps doc: board: j721e_evm: Fix code-block type and indents Heinrich Schuchardt (8): console: file should always be non-negative disk: fix blk_get_device_part_str() net: CONFIG_NET_DEVICES in dhcp_handler() efi_loader: add an EFI binary to print boot hart ID efi_selftest: test FatToStr() truncation efi_loader: fix handling of DHCP acknowledge efi_loader: don't use EFI_LOADER_DATA internally doc: board: typo GIUD Microchip MPFS Icicle Kit doc Masahisa Kojima (5): eficonfig: fix going one directory up issue eficonfig: use u16_strsize() to get u16 string buffer size efi_loader: utility function to check the variable name is "Boot####" eficonfig: use efi_get_next_variable_name_int() doc: eficonfig: add description for UEFI Secure Boot Configuration cmd/eficonfig.c | 146 ++++++++-- cmd/efidebug.c | 25 +- common/console.c | 10 +- disk/part.c | 23 +- doc/board/microchip/mpfs_icicle.rst | 4 +- doc/board/ti/j721e_evm.rst | 30 +- doc/usage/cmd/eficonfig.rst | 90 ++++-- include/efi_loader.h | 1 + lib/efi_loader/Makefile | 6 + lib/efi_loader/boothart.c | 335 ++++++++++++++++++++++ lib/efi_loader/efi_helper.c | 33 +++ lib/efi_loader/efi_memory.c | 4 +- lib/efi_loader/efi_net.c | 13 +- lib/efi_selftest/efi_selftest_unicode_collation.c | 2 +- net/bootp.c | 2 +- 15 files changed, 600 insertions(+), 124 deletions(-) create mode 100644 lib/efi_loader/boothart.c