From patchwork Wed Aug 20 14:46:02 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 10 Return-Path: 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=1755701203; bh=ukk4Mt6lWXTo1aAfCBLursjiFN9djfiLck25JVrdmAs=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=KjoDG4s2hAjDgAgb/myLH2/Wmsj9PtZPmkXLcJzyYVAyesSZseiOxnUDUPVTl/CUq dJSzq0UzUys7ocBLNHMbPPvWwn5JbcUwK48ZrdekA4pWvNV2wqnUOo+KZsx9SPb76K +UXGa9kOvf5P+tWSu0MJNOU1slWNL1Ts52sNVYMAx1qICTEgIx8goHcdcRZEt1i/rN T07NuZSKktcqfBF382oEJ0dEdKWv4kmvqK6jupTS/qW2s6kCFELkY84vPLufaybCAV 0N+xWRMzvtG4XcRnguk2+eF19yG4AJIO15NFypLEbb9fKCFNj4s83o8azIP+T3e9Cm Y8OyZ4rHrsvvw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 646AB6768B for ; Wed, 20 Aug 2025 08:46:43 -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 CKLQGsELozzn for ; Wed, 20 Aug 2025 08:46:43 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701203; bh=ukk4Mt6lWXTo1aAfCBLursjiFN9djfiLck25JVrdmAs=; h=From:To:Date:CC:Subject:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=KjoDG4s2hAjDgAgb/myLH2/Wmsj9PtZPmkXLcJzyYVAyesSZseiOxnUDUPVTl/CUq dJSzq0UzUys7ocBLNHMbPPvWwn5JbcUwK48ZrdekA4pWvNV2wqnUOo+KZsx9SPb76K +UXGa9kOvf5P+tWSu0MJNOU1slWNL1Ts52sNVYMAx1qICTEgIx8goHcdcRZEt1i/rN T07NuZSKktcqfBF382oEJ0dEdKWv4kmvqK6jupTS/qW2s6kCFELkY84vPLufaybCAV 0N+xWRMzvtG4XcRnguk2+eF19yG4AJIO15NFypLEbb9fKCFNj4s83o8azIP+T3e9Cm Y8OyZ4rHrsvvw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 53FDA674F4 for ; Wed, 20 Aug 2025 08:46:43 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701201; bh=edD1RSGDQXD+zprbQPtOJe2OOQyawp2le8axxmKyRXw=; h=From:To:Cc:Subject:Date:From; b=kC95WCCSvsutC39458OyU9QUUjzZTLdr2DqJEok7dgBgK/XlGbrTJTea5gOEOWD9R YF2wOwCRck+kV4MitOlYqUNWOYKLlzE9HOwyFViytQXPhM6VDPmHS6+z1dxTFhAnc3 C6F5KnmSOxtXYojo0Rka7lQDyuGK7hPlO3vBEIXu+CpSG01qco5hauTLVlA4/Q9znU Yp2IKqDeeyUF19GFL32DghRq8ZkZcnIVaHFdK2G4GsjardtFE6MVgGg76sMx6b8vjf Y2mM711t6zat2qh4mHXxx7XJYs8CDJpCkPXlrZ7I+R0UdKt8qH0Jp6v4gQvQaG5248 53gijzXmr1QOQ== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 5B1836748C; Wed, 20 Aug 2025 08:46:41 -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 VOKY8scztaKo; Wed, 20 Aug 2025 08:46:41 -0600 (MDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1755701198; bh=BbsbpltiIpDXGpo3/5AA4b7sUB7Utg/zD+QyxWD87Y0=; h=From:To:Cc:Subject:Date:From; b=qQF0V17vJzsvpVt9710Tyo+tJ257uhv2PnVNkwfrhp9aPIuiVxS5pUISMAbHiU3vo p4X9jYn02PQL4Dfl+YJQNDUwLLitkb4At5Cs2AO+A9gpmLxfD2XbfGOkCCn5b0EUYQ /0rPVjh8Mk1h6GDaYe0eKX/6F0+Stsq4es6ck3nZFrzOpeZQs8IlGl6yHeQBhdDrFe uqQwHg24GlG9HYCk7aTmuVBP7KqKmV718wVXnIn0pjtluTCUmzXyNakncOq0N/biEE evDhB712iY8Pi1GDei8lIzclzQSKAhTq7/KhcGI9PM/ZCoU0nNavpBAIGUBqLndrk8 XjMN3lL71/W0w== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 23A5B67419; Wed, 20 Aug 2025 08:46:38 -0600 (MDT) From: Simon Glass To: U-Boot Concept Date: Wed, 20 Aug 2025 08:46:02 -0600 Message-ID: <20250820144621.1073679-1-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Message-ID-Hash: HSJKD6S675ZZ3CTJUUWSSNXETUV2C4TF X-Message-ID-Hash: HSJKD6S675ZZ3CTJUUWSSNXETUV2C4TF 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 , Simon Glass X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 00/14] efi: app: Support booting an OS List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass This series completes the work to get the EFI app booting an EFI application (e.g. Ubuntu): - efidebug dh now works, and is slightly enhanced - device paths which refer to the underlying EFI layer can now be requested by the app - a test is provided, for EFI on ARM booting into Ubuntu using the sjg lab Simon Glass (14): test/py: Support a timing report when max_count is 0 efi: Drop EFI_CALL() from efidebug command efi: Move driver-binding guid to a common file efi: Drop the BS macro with efi debug efi: Use a function to obtain boot services in efi debug efi: Use a local var for a handle with efidebug dh efi: Show the device name only with the EFI loader efi: Update efidebug dh to work with the app efi: Add the component-name2 protocol to efidebug dh efi: Show component names and other info with efidebug dh efi: Add device-path support for EFI media devices efi: Add a little debugging to calculate_paths() efi: app: Allow booting an EFI app test: efi: Add a test for the app booting Ubuntu via EFI cmd/efidebug.c | 62 ++++++++++++------ include/efi.h | 3 + include/efi_api.h | 15 +++++ include/efi_loader.h | 2 - lib/efi/Kconfig | 2 +- lib/efi/device_path.c | 120 +++++++++++++++++++++++++++++++++- lib/efi/run.c | 8 ++- lib/efi_loader/efi_boottime.c | 8 ++- lib/uuid.c | 1 + test/py/conftest.py | 5 +- test/py/tests/test_distro.py | 57 ++++++++++++++-- 11 files changed, 251 insertions(+), 32 deletions(-)