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 2EE83C7618A for ; Sun, 19 Mar 2023 19:32:40 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 84AC185C66; Sun, 19 Mar 2023 20:31:27 +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="EZ0d+OIA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 86DFB85C6E; Sun, 19 Mar 2023 20:30:56 +0100 (CET) Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (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 D7E2E85C63 for ; Sun, 19 Mar 2023 20:30:41 +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-pj1-x1029.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso14215892pjb.3 for ; Sun, 19 Mar 2023 12:30:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1679254240; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GVRwcmS1y9DmPalF9XIeZcEDMDX6C3ZSPNsxF5JTsWg=; b=EZ0d+OIAbuiM1DGrrtiscFfvfcaKX1h3ZgbNNpijHKPoknhCcENoTpxCLLahepzYle FxoyF4r070BsOuRPbkMGvm2T01Ver0GxBWkay7ME2I0FPy7KWnEkfnjch4prclaql2uy bFrVRqzzmXr8+kF7gmk+NRko63OCIl9f+ftSA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679254240; 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=GVRwcmS1y9DmPalF9XIeZcEDMDX6C3ZSPNsxF5JTsWg=; b=yHKw0cTQ3LsqgpK4KI6UuUN1t9tXeFECcCj87qfgpw6x4agQ8P66cv6KuYyrXWWh78 k3SZTeCjk+RoDEbKagvqXf1daCNaBniPW1B+YhEl8qowLJo/8WGB4u9f2ZYJyfIYmBDx tSjq5gcd5usum9LMCXJPBopPJ65GaYHGAXjLjUjJHWBShVagHwKud2QO46bZySPOsFuL DfMskDHfy/e9oyfR3aJ6ur/2O2Qjaqk4KG7cbuEZh//YXQdx8mafvs1nS3A5rF1XJcQj ldNSMIDMBN+JzZ+pPWBbJcZS3q0/+E1tP5whEjNJWODdoDlCvz5du/NLJY/5/vB6IlS1 /hsw== X-Gm-Message-State: AO0yUKXsAtHAfpi3CLGlBLl/MWnXEMiQNFGCOM0UxHcE5EslGn5i+dZV H34b3rVwQZYgh/crFRFl/YIDMa2r1oApnvt5ZqU= X-Google-Smtp-Source: AK7set8SMymT1/LaOOfksKzDxtm8guzGm4vz2W9fsk/3ECVD+3otFxVfWSZXTzTqOcmUT/PzxkHiYg== X-Received: by 2002:a17:902:e191:b0:1a0:6d9e:3c78 with SMTP id y17-20020a170902e19100b001a06d9e3c78mr11512229pla.53.1679254239964; Sun, 19 Mar 2023 12:30:39 -0700 (PDT) Received: from localhost.localdomain ([27.110.126.54]) by smtp.gmail.com with ESMTPSA id v12-20020a1709029a0c00b0019a75ea08e5sm5090651plp.33.2023.03.19.12.30.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Mar 2023 12:30:39 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass , Bin Meng Subject: [PATCH v3 00/12] efi: Improvements to booting and debugging Date: Mon, 20 Mar 2023 08:30:04 +1300 Message-Id: <20230319193017.1084764-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 v3: - Use Return instead of Returns - Update commit message based on Heinrich's comments - Make this depend on CONFIG_EFI so that EFI_LOADER doesn't get it - Really drop SMBIOS - Use %pUl to print the UUID - Drop unnecessary error message for some that shoudn't happen. 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 | 31 ++++- 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 | 19 +++ lib/uuid.c | 10 +- scripts/build-efi.sh | 14 +- 18 files changed, 436 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