Message ID | 20250902152158.2285264-1-sjg@u-boot.org |
---|---|
Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826535; bh=tksvL0DelhYf2tC/0XB23rGHxdNTRwFPMK/gk69qBkk=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=XMNCmy30GtGQha2Ru0GabOCfMDsVvWrnFKUCJKcRtkQ0kLBl5lScrs/CE5BNHmm/U eSi1TaOveOwCzPZgWyHRcxGvPSUVulRcoKAgsaYXRNF2PX+H+dKq5m1O3wNaN5MC3p 6nX7xH9DdHuYLOTzMvK37w0KWeLFGrBcfnyGImuYAKqRQtuSK0AF4M5nDL/tkSIet0 5ZA/s4A8AGnxThf62vsyKYNBzOcCQ9kmkrCH/ZXvwp2S76Td21XQHjogI7hL6UQPzk TzQH27IBmf0cI+cmRBkfDUNzw4w82chKZasxcI/NO9bhL97+isHCglqFPqkfqlcQ36 E5R+cU8JR0U6A== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id BD33C678CB for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:15 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id poDVF0HUS-tC for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:15 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826535; bh=tksvL0DelhYf2tC/0XB23rGHxdNTRwFPMK/gk69qBkk=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=XMNCmy30GtGQha2Ru0GabOCfMDsVvWrnFKUCJKcRtkQ0kLBl5lScrs/CE5BNHmm/U eSi1TaOveOwCzPZgWyHRcxGvPSUVulRcoKAgsaYXRNF2PX+H+dKq5m1O3wNaN5MC3p 6nX7xH9DdHuYLOTzMvK37w0KWeLFGrBcfnyGImuYAKqRQtuSK0AF4M5nDL/tkSIet0 5ZA/s4A8AGnxThf62vsyKYNBzOcCQ9kmkrCH/ZXvwp2S76Td21XQHjogI7hL6UQPzk TzQH27IBmf0cI+cmRBkfDUNzw4w82chKZasxcI/NO9bhL97+isHCglqFPqkfqlcQ36 E5R+cU8JR0U6A== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id A97B667878 for <u-boot-concept@u-boot.org>; Tue, 2 Sep 2025 09:22:15 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826529; bh=9W8TW8uj/OFCebLfy/gWOGQFDTsO7ltoo40gp9F+OqU=; h=From:To:Cc:Subject:Date:From; b=AuUpI+EGXll7ZIGGQcUQu7/hMceC4Kl6+pQUvuQt6a7M/IFucKNTEHZ+sXI+7neiP fwaSiEuO3drkzmyf+w4ihIR9pliBPr5MAjuh8K/iir7TOZjX86rRfNl0ePe9XEfw/B l5xgMHNeW6eKr/X5Otcxjg02TiCP97RsGh4KJVjy00q3Ym+jpKWh7GulTs6NihT26g jIY/oZOSczNiJZ7s1NqBdyyK4PJFJ/ZdvRf90xTEU1a6oI+KuwcW59AT6KkmCLgwpd Os3cdZ4u/sMqWbDD+YusXRmGEgKC5rju24kUtLF2zWRUzsL7VnOCUlgaYXbH/iF9Zf sLtYYwjQLjwAw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 744695FE1B; Tue, 2 Sep 2025 09:22:09 -0600 (MDT) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id RfxYTn04Ui-p; Tue, 2 Sep 2025 09:22:09 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1756826525; bh=Tk/Fb+yqKg6RcE4uAdZqXZLuKj0cWT7bAKSN4+9StII=; h=From:To:Cc:Subject:Date:From; b=tJnYXt4gZU7bXUS4qjWc9JT9I3Qnzs2gzqI5mdL/IyJHjbRtZk/2B1FcdcLki9KHG UJzM8H4pAhuQwMfHqxi5RltsCtZ2ukBUwn9Lf5RbdPbq6dwlkdi7RRQQihjMWGxB0q 9AifXQhr+UoSLEgU+82Iutdc3kvkYmBeKK7mROOAZ2O2SVvoBDAkaaB38mARED/CFc 0XBKZV1fnPB7e1BNP+hibKePP3tvq2UyTJ5pvnuSJlVPOn7Ht+kS8PVUaQU3dv+F39 XENLvSgy1xoe/uA5vZdHF+3DNDPjGRgdoEPt1AwkPOj/8j7t1IdbfedXz1g2Jx/pCW WPVqP81RWWN5w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 0FF13677F7; Tue, 2 Sep 2025 09:22:05 -0600 (MDT) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 2 Sep 2025 09:21:32 -0600 Message-ID: <20250902152158.2285264-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: T2CKPI2AUOTM2OLAN3NO4OWMHYQBYA3U X-Message-ID-Hash: T2CKPI2AUOTM2OLAN3NO4OWMHYQBYA3U X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/18] efi: Improve integration of the app with a Shim environment List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/T2CKPI2AUOTM2OLAN3NO4OWMHYQBYA3U/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
Series |
efi: Improve integration of the app with a Shim environment
|
|
Message
Simon Glass
Sept. 2, 2025, 3:21 p.m. UTC
From: Simon Glass <sjg@chromium.org>
This series collects together various small fixes and improvements which
make it easier to use the U-Boot EFI app in a bootflow which includes
Shim:
- 'Reset' back to the caller (e.g. EDK2)
- Machine reset using cold and warm reset
- Reset and enter the firmware UI
- Shim command now supports persistent debug
- Bootmenu shows the real media for each bootflow rather than just 'efi'
Simon Glass (18):
efi: Correct calculate_paths() when an image is used
efi: doc: Mention some EFI commands in the app documentation
efi: Allow inclusion of EFI-runtime headers
efi: Set the log category throughout lib/efi_client/
efi_loader: Drop unnecessary efi_dp_str()
efi: Move loaded-image, fs and device-path GUIDs to common
boot: Move obtaining the label into a common file
boot: Use the new label finder in bootflow_menu_add()
boot: Drop an unwanted blank line in distro_efi_boot()
efidebug: doc: Indent the media output correctly
efidebug: Support sorting with efidebug memmap
efi: doc: Add documentation for about efidebug boot
efi: Use the console mux by default with the EFI app
shim: Add a flag to make the setting persistent
sysreset: Support a hot reset
efi: app: Support proper reset options
sysreset: Add SYSRESET_TO_FIRMWARE_UI with reset -u support
sysreset: Add -c flag for explicit cold reset
boot/bootflow.c | 27 +++++
boot/bootflow_menu.c | 7 +-
boot/bootmeth_efi.c | 1 -
cmd/boot.c | 2 +
cmd/bootflow.c | 16 +--
cmd/efidebug.c | 58 +++++++++-
cmd/shim.c | 21 +++-
doc/develop/uefi/u-boot_on_efi.rst | 9 ++
doc/usage/cmd/efidebug.rst | 171 ++++++++++++++++++++++++++--
doc/usage/cmd/reset.rst | 12 +-
doc/usage/cmd/shim.rst | 16 ++-
drivers/sysreset/sysreset-uclass.c | 18 ++-
drivers/sysreset/sysreset_sandbox.c | 2 +
include/bootflow.h | 8 ++
include/efi.h | 11 ++
include/efi_loader.h | 6 -
include/sysreset.h | 5 +
lib/efi/run.c | 2 +-
lib/efi_client/Kconfig | 1 +
lib/efi_client/app_run.c | 2 +
lib/efi_client/efi.c | 2 +
lib/efi_client/efi_app.c | 43 ++++++-
lib/efi_client/efi_info.c | 2 +
lib/efi_client/efi_vars.c | 2 +
lib/efi_client/sdram.c | 2 +
lib/efi_client/stub.c | 2 +
lib/efi_client/stub_arm64.c | 1 +
lib/efi_client/stub_x86.c | 2 +
lib/efi_client/sync_dt.c | 2 +
test/boot/bootflow.c | 4 +-
test/dm/sysreset.c | 4 +
31 files changed, 403 insertions(+), 58 deletions(-)