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 AFBAFC6FA8E for ; Sun, 26 Feb 2023 01:33:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C27138593C; Sun, 26 Feb 2023 02:33:18 +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="Wqh9l4aS"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C453A8593C; Sun, 26 Feb 2023 02:33:16 +0100 (CET) Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) (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 892228589B for ; Sun, 26 Feb 2023 02:33:13 +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-x12b.google.com with SMTP id s8so2079941ilv.10 for ; Sat, 25 Feb 2023 17:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=o9WeYyD6Tv0NKRcsE7l8ApNq1trB5ja8IvNotqIEGu0=; b=Wqh9l4aSoIhZhdDTAxVBtR/GNlHAwz8BwrbOd+Vyv3gcp61VbxdtadqKx9PRfbF7Lz J6lfV3LTXGJgxhz+fV2wtNa2LUjzx7h2jpoT0uS4KV8ReFH6mQnn07fIuahCP9crj7DL 6queQMronYX5qfjJJL+LQ6m7fLhV9XOt1FaiM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=o9WeYyD6Tv0NKRcsE7l8ApNq1trB5ja8IvNotqIEGu0=; b=TspoFNuunCzilxGU5ijkbMBR613UVqTAG9nfK4SZ+un+KnJwbfgyGkH+1TcOe3/zUm FuKyqwCPtoxQe+EU55Io+ighLhJWt5lh+0d4E+XgF0Jtc6LmI+me8uPGhgfbCQ5r86M/ 7EyWcilCdIX63FskRXqMKwgOIWv5C2RQs6CrtncxdGahG92OBWKT0H5eDZSpeA0M0Y8N tGyUAuk8H/689RCETlE0qA90Wn3UKESVFSYq4lqvI8VIKbLPoSyy/ATuXkz5Imel7F+t 4Nq1qH1hNW0sYZlfhUhz/Z9tD0lSchWRhSlaJHnwHOC9yS01Lyfc7Fqrg77OtP+PMAVK sXyg== X-Gm-Message-State: AO0yUKVd2KpZHbMBf3X7McvP7+sHIhCURAHHQoZ9THNFy8lK6FGNCXhf mMDf3XoT4NFtyb93IjefigVozx4DWnDGZWiX X-Google-Smtp-Source: AK7set9TZ2NdnXTO40vGVJBFnbD8TOWBCfqJbEpoQ6Vz0scMCAR5bOfs7v/vp5V6qMB1yxUdRZycZg== X-Received: by 2002:a05:6e02:154c:b0:314:fa6:323c with SMTP id j12-20020a056e02154c00b003140fa6323cmr17422749ilu.12.1677375191996; Sat, 25 Feb 2023 17:33:11 -0800 (PST) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id r5-20020a92ce85000000b00316e3a38becsm932699ilo.18.2023.02.25.17.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 17:33:11 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Heinrich Schuchardt , Simon Glass , Ashok Reddy Soma , Bin Meng , Ilias Apalodimas , Jose Marinho , Michal Simek Subject: [PATCH 00/10] efi: Improvements to booting and debugging Date: Sat, 25 Feb 2023 18:32:55 -0700 Message-Id: <20230226013305.2251638-1-sjg@chromium.org> X-Mailer: git-send-email 2.39.2.637.g21b0678d19-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.6 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. Simon Glass (10): 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 doc: Add help for the efi command 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/efi.c | 40 +++++- 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_api.h | 28 ++++ lib/uuid.c | 12 ++ scripts/build-efi.sh | 14 +- 14 files changed, 419 insertions(+), 47 deletions(-) create mode 100644 doc/usage/cmd/efi.rst -- 2.39.2.637.g21b0678d19-goog