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 8EE2BC6FD19 for ; Fri, 10 Mar 2023 20:51:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7C9CA85FB3; Fri, 10 Mar 2023 21:49:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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; unprotected) header.d=chromium.org header.i=@chromium.org header.b="ZvegwBj9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ACD4985F7E; Fri, 10 Mar 2023 21:49:15 +0100 (CET) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3A0BB85F96 for ; Fri, 10 Mar 2023 21:49:10 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x131.google.com with SMTP id l2so3668140ilg.7 for ; Fri, 10 Mar 2023 12:49:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678481349; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Yq8gMs/+j4xlErNEiCsZKUq+f6VrxZlfVaowDgoaTaI=; b=ZvegwBj9d4AoFjEfy/rcYG7OMCpMAY45PHrGHjf2FMzt/tzNuHpTgwX3eGOpPrCcMW joz5ZgY/nvtoOpx0obhfcTgWgIp4MF1eKofBYkSVF61tZcAQV4EjsLzqn3FQV/dnkbaZ HOZ/ThcvE9+B7lFe3QS2r5o/hgwQyj/VDiWNg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678481349; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Yq8gMs/+j4xlErNEiCsZKUq+f6VrxZlfVaowDgoaTaI=; b=hvxpZr6YbegAFOFxWykv0VDiZ/GQ1DTUN06kW+bEhAKWoxwZCdB+0LXPUVg8ljFjq+ 1Zo18aXJfagITRoepUMABvNaogofOGWXvzKemHjmF5noWLnmnUMqTLaBA0JQO/LoRt1F ycDaIaN0W/URQzN/05NRMPMJv2KSeoWS0G5IgJfrhh7gZoz70ut7wtY9O0SAkGkKcFo5 tVejAv2h+bsvXAMxHlgf6cFTgPQURx+zkDCqUBuoFC4Ak5hvQXmIZ1RrmfthlEeHVlVM m+/JQV6FNk4gAjbp02oaWv4g36WfIbRSxsHTUYleqMGF0Z6adf/5xKXIm1XYHBCpV6w8 hI+Q== X-Gm-Message-State: AO0yUKVDAwVm0XoQD4AjCiObv75/F+NY+fiyKynM6QQPhA7Ooi5hv8fI ejt43gvQRPpJ3E1PO4gzmQa92JBTtHrPQFeq52o= X-Google-Smtp-Source: AK7set90YXaKssJROy171bNG/bT+361Hma+rprxMdsntF3HL4VbGG31JQgb4ruxexE3RGpBskqbSNA== X-Received: by 2002:a92:b512:0:b0:316:b0bb:3d99 with SMTP id f18-20020a92b512000000b00316b0bb3d99mr15322751ile.22.1678481348758; Fri, 10 Mar 2023 12:49:08 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id a7-20020a056e020e0700b00315785bfabfsm273817ilk.47.2023.03.10.12.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 12:49:07 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass , Bin Meng Subject: [PATCH v2 00/12] efi: Improvements to booting and debugging Date: Fri, 10 Mar 2023 12:48:50 -0800 Message-Id: <20230310204903.416969-1-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This series provides support for booting a kernel from the EFI app. So far this is pretty basic, since it only supports the actual booting, not providing ACPI tables, etc. But it is a start. It also includes an enhancement to the 'efi' command and a few other clean-ups. Changes in v2: - Update commit message to explain why these are needed - Drop EFI_SMBIOS which exists as SMBIOS_TABLE_GUID - Drop unwanted EFI_GUID_SNBIOS - Drop EFI_GUID_EFI_ACPI2 which exists as EFI_ACPI_TABLE_GUID - Add new patch to enable GUID names with EFI app and payload - Add new patch to split out table-listing code into a new file - Make use of common code - Fix typos in commit message Simon Glass (12): efi: Set RUN_64BIT correctly for the EFI app x86: Adjust bootparam.h to be more like linux x86: Add return-value comment to cpu_jump_to_64bit() x86: Support booting a 64-bit kernel from 64-bit U-Boot x86: Exit EFI boot services before starting kernel x86: Support zboot and bootm in the EFI app efi: Add another tranch of GUIDs efi: Include GUID names with EFI app and payload doc: Add help for the efi command efi: Split out table-listing code into a new file efi: Support showing tables efI: Allow packaging a kernel in the debugging script arch/x86/Kconfig | 4 +- arch/x86/include/asm/bootm.h | 12 +- arch/x86/include/asm/bootparam.h | 70 ++++++---- arch/x86/include/asm/cpu.h | 1 + arch/x86/lib/bootm.c | 43 ++++-- arch/x86/lib/zimage.c | 17 ++- cmd/Makefile | 4 +- cmd/efi.c | 33 ++++- cmd/efi_common.c | 26 ++++ cmd/efidebug.c | 6 +- configs/efi-x86_app32_defconfig | 2 +- configs/efi-x86_app64_defconfig | 3 +- doc/usage/cmd/efi.rst | 219 +++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + include/efi.h | 9 ++ include/efi_api.h | 22 ++++ lib/uuid.c | 9 +- scripts/build-efi.sh | 14 +- 18 files changed, 440 insertions(+), 55 deletions(-) create mode 100644 cmd/efi_common.c create mode 100644 doc/usage/cmd/efi.rst -- 2.40.0.rc1.284.g88254d51c5-goog