U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: u-boot@lists.denx.de
Cc: "Matthew Garrett" <mjg59@srcf.ucam.org>,
	"AKASHI Takahiro" <akashi.tkhro@gmail.com>,
	"Bin Meng" <bmeng.cn@gmail.com>,
	"Boon Khai Ng" <boon.khai.ng@intel.com>,
	"Bryan Brattlof" <bb@ti.com>,
	"Caleb Connolly" <caleb.connolly@linaro.org>,
	"Christophe ROULLIER" <christophe.roullier@foss.st.com>,
	"Dmitry Rokosov" <ddrokosov@salutedevices.com>,
	"Francis Laniel" <francis.laniel@amarulasolutions.com>,
	"Gabor Juhos" <j4g8y7@gmail.com>,
	"Hanyuan Zhao" <hanyuan-z@qq.com>,
	"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Janis Danisevskis" <jdanisevskis@aurora.tech>,
	"Jerome Forissier" <jerome.forissier@linaro.org>,
	"Joe Hershberger" <joe.hershberger@ni.com>,
	"Lad Prabhakar" <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	"Leon M. Busch-George" <leon@georgemail.eu>,
	"Marek Vasut" <marex@denx.de>,
	"Matthew Garrett" <mgarrett@aurora.tech>,
	"Mattijs Korpershoek" <mkorpershoek@baylibre.com>,
	"Neil Armstrong" <neil.armstrong@linaro.org>,
	"Philip Oberfichtner" <pro@denx.de>,
	"Ramon Fried" <rfried.dev@gmail.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Robert Marko" <robert.marko@sartura.hr>,
	"Romain Naour" <romain.naour@smile.fr>,
	"Sam Edwards" <CFSworks@gmail.com>,
	"Simon Glass" <sjg@chromium.org>,
	"Sughosh Ganu" <sughosh.ganu@linaro.org>,
	"Sumit Garg" <sumit.garg@linaro.org>,
	"Tom Rini" <trini@konsulko.com>,
	"Vincent Stehlé" <vincent.stehle@arm.com>
Subject: [PATCH 00/10] Improve UEFI app support
Date: Sat, 23 Nov 2024 11:54:59 -0800	[thread overview]
Message-ID: <20241123195616.305687-1-mjg59@srcf.ucam.org> (raw)

We run a mixed environment including traditional embedded Linux and 
UEFI. For consistency it's valuable to use U-Boot in both cases, but on 
UEFI systems we want to run the full Linux kernel UEFI boot stub. This 
patchset adds support for that, along with various other quality-of-life 
improvements such as automatically finding partitions based on their 
GUID, automatic identification of load addresses where the firmware has 
given us constraints, support for EFI variable access in the EFI app, 
drivers for EFI network adapters and TPMs, support for embedding DTBs in 
the EFI app, and a couple of bug fixes.


Janis Danisevskis (1):
  Fix efi_bind_block.

Matthew Garrett (9):
  Add EFI handover support to bootm
  Add part_find command
  Add a command to find a load address
  Hook up EFI env variable support in the EFI app
  Add EFI network driver
  Add UEFI TPM2 driver
  Support separate DTB files with the UEFI app
  Use the correct ramdisk address
  Add command to set an environment variable to an EFI variable

 Makefile                        |   7 +-
 arch/x86/config.mk              |   2 +-
 arch/x86/lib/bootm.c            |  60 ++++++++----
 arch/x86/lib/elf_x86_64_efi.lds |   4 +
 boot/bootm.c                    |   5 +
 cmd/Kconfig                     |  23 ++++-
 cmd/Makefile                    |   3 +
 cmd/addr_find.c                 |  87 +++++++++++++++++
 cmd/efigetenv.c                 | 133 ++++++++++++++++++++++++++
 cmd/part_find.c                 | 156 ++++++++++++++++++++++++++++++
 drivers/net/Kconfig             |   7 ++
 drivers/net/Makefile            |   1 +
 drivers/net/efi_net.c           | 110 +++++++++++++++++++++
 drivers/tpm/Kconfig             |   7 ++
 drivers/tpm/Makefile            |   1 +
 drivers/tpm/tpm2_efi.c          |  97 +++++++++++++++++++
 include/asm-generic/sections.h  |   1 +
 include/bootm.h                 |   6 ++
 include/efi.h                   |  24 +++++
 include/efi_tcg2.h              |   1 +
 lib/efi/Makefile                |   2 +-
 lib/efi/efi.c                   |   1 +
 lib/efi/efi_app.c               |  41 ++++++++
 lib/efi/efi_app_init.c          | 163 ++++++++++++++++++++++++++++++--
 lib/efi/efi_dtb.S               |   6 ++
 lib/efi/efi_vars.c              |  44 +++++++++
 lib/fdtdec.c                    |   3 +
 27 files changed, 967 insertions(+), 28 deletions(-)
 create mode 100644 cmd/addr_find.c
 create mode 100644 cmd/efigetenv.c
 create mode 100644 cmd/part_find.c
 create mode 100644 drivers/net/efi_net.c
 create mode 100644 drivers/tpm/tpm2_efi.c
 create mode 100644 lib/efi/efi_dtb.S
 create mode 100644 lib/efi/efi_vars.c

-- 
2.47.0


             reply	other threads:[~2024-11-23 21:49 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-23 19:54 Matthew Garrett [this message]
2024-11-23 19:55 ` [PATCH 01/10] Add EFI handover support to bootm Matthew Garrett
2024-11-24 14:43   ` Heinrich Schuchardt
2024-11-24 19:29     ` Matthew Garrett
2024-11-24 19:51       ` Heinrich Schuchardt
2024-12-08 23:06         ` Simon Glass
2024-11-25 13:46       ` Ilias Apalodimas
2024-12-01 16:12   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-11-23 19:55 ` [PATCH 02/10] Add part_find command Matthew Garrett
2024-12-01 16:12   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-12-10  8:21   ` Heinrich Schuchardt
2024-12-10 16:16     ` Simon Glass
2024-11-23 19:55 ` [PATCH 03/10] Add a command to find a load address Matthew Garrett
2024-11-24 15:56   ` Tom Rini
2024-12-01 16:12   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-11-23 19:55 ` [PATCH 04/10] Hook up EFI env variable support in the EFI app Matthew Garrett
2024-12-01 16:12   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-11-23 19:55 ` [PATCH 05/10] Add EFI network driver Matthew Garrett
2024-12-01 16:12   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-11-23 19:55 ` [PATCH 06/10] Add UEFI TPM2 driver Matthew Garrett
2024-12-01 16:12   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-11-23 19:55 ` [PATCH 07/10] Support separate DTB files with the UEFI app Matthew Garrett
2024-11-25 13:55   ` Ilias Apalodimas
2024-12-01 16:14   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-11-23 19:55 ` [PATCH 08/10] Use the correct ramdisk address Matthew Garrett
2024-12-01 16:14   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-11-23 19:55 ` [PATCH 09/10] Fix efi_bind_block Matthew Garrett
2024-11-25 13:40   ` Ilias Apalodimas
2024-12-09  2:28     ` Simon Glass
2024-12-01 16:14   ` Simon Glass
2024-12-08 15:29     ` Simon Glass
2024-12-10  8:45   ` Heinrich Schuchardt
2024-12-10 16:17     ` Simon Glass
2024-12-10 17:11       ` Tom Rini
2024-12-11 17:50         ` Janis Danisevskis
2024-12-11 17:59           ` Ilias Apalodimas
2024-12-11 20:23           ` Simon Glass
2024-12-11 22:28             ` Janis Danisevskis
2024-11-23 19:55 ` [PATCH 10/10] Add command to set an environment variable to an EFI variable Matthew Garrett
2024-11-24 14:58   ` Heinrich Schuchardt
2024-12-01 16:14     ` Simon Glass
2024-12-08 15:29       ` Simon Glass
2024-12-09  2:28     ` Simon Glass
2024-11-24 14:40 ` [PATCH 00/10] Improve UEFI app support Heinrich Schuchardt
2024-12-01 16:15 ` Simon Glass
2024-12-08 15:28   ` Simon Glass
2024-12-08 15:51     ` Tom Rini
2024-12-08 18:50       ` Tom Rini
2024-12-08 23:07       ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241123195616.305687-1-mjg59@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=CFSworks@gmail.com \
    --cc=akashi.tkhro@gmail.com \
    --cc=bb@ti.com \
    --cc=bmeng.cn@gmail.com \
    --cc=boon.khai.ng@intel.com \
    --cc=caleb.connolly@linaro.org \
    --cc=christophe.roullier@foss.st.com \
    --cc=ddrokosov@salutedevices.com \
    --cc=francis.laniel@amarulasolutions.com \
    --cc=hanyuan-z@qq.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=j4g8y7@gmail.com \
    --cc=jdanisevskis@aurora.tech \
    --cc=jerome.forissier@linaro.org \
    --cc=joe.hershberger@ni.com \
    --cc=leon@georgemail.eu \
    --cc=marex@denx.de \
    --cc=mgarrett@aurora.tech \
    --cc=mkorpershoek@baylibre.com \
    --cc=neil.armstrong@linaro.org \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=pro@denx.de \
    --cc=rfried.dev@gmail.com \
    --cc=richard.henderson@linaro.org \
    --cc=robert.marko@sartura.hr \
    --cc=romain.naour@smile.fr \
    --cc=sjg@chromium.org \
    --cc=sughosh.ganu@linaro.org \
    --cc=sumit.garg@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vincent.stehle@arm.com \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox