U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] efi_loader: disk: Add EFI_PARTITION_INFO_PROTOCOL support for MBR
@ 2026-01-20 13:36 Javier Martinez Canillas
  2026-01-20 13:36 ` [PATCH 1/5] disk: part_dos: Move header to the main include directory Javier Martinez Canillas
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Javier Martinez Canillas @ 2026-01-20 13:36 UTC (permalink / raw)
  To: u-boot
  Cc: eballetb, alexl, Javier Martinez Canillas, Heinrich Schuchardt,
	Ilias Apalodimas, Jan Kiszka, Javier Tia, Maks Mishin,
	Rasmus Villemoes, Simon Glass, Tien Fong Chee, Tom Rini,
	Varadarajan Narayanan

This patch series extends the EFI_PARTITION_INFO_PROTOCOL implementation
to also support MBR partition tables schemes.

When EFI_PARTITION_INFO_PROTOCOL was implented, only GPT support was
added but this can cause compatibility issues with platforms whose boot
ROM only supports MBR. This series add support for MBR partition tables
to the protocol, making U-Boot compatible with systems that require a
legacy MBR table.

Patches #1 to #3 are preparatory changes to remove duplicated definitions
of data structures to store the MBR records.

Finally patch #4 adds the MBR support to the EFI_PARTITION_INFO_PROTOCOL
implementation and patch #5 enhances the protocol selftest, to check that
the partition record data is correctly filled.


Javier Martinez Canillas (5):
  disk: part_dos: Move header to the main include directory
  disk: part_dos: Align dos_partition_t with struct partition
  disk: part_efi: Remove redundant struct partition definition
  efi_loader: disk: Extend EFI_PARTITION_INFO_PROTOCOL to support MBR
  efi_selftest: Enhance MBR test for PARTITION_INFO_PROTOCOL

 disk/part_dos.c                              | 77 ++++++++++++--------
 disk/part_efi.c                              |  4 +-
 include/part.h                               | 14 ++++
 {disk => include}/part_dos.h                 |  6 +-
 include/part_efi.h                           | 19 +----
 lib/efi_loader/efi_disk.c                    |  9 ++-
 lib/efi_selftest/efi_selftest_block_device.c | 12 +++
 7 files changed, 86 insertions(+), 55 deletions(-)
 rename {disk => include}/part_dos.h (87%)

-- 
2.52.0

base-commit: 6cdd7597a2fbfc1572c1b0af23d3daf1cefa2de7
branch: add-mbr-efi-part-info-proto


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2026-01-22  8:54 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-20 13:36 [PATCH 0/5] efi_loader: disk: Add EFI_PARTITION_INFO_PROTOCOL support for MBR Javier Martinez Canillas
2026-01-20 13:36 ` [PATCH 1/5] disk: part_dos: Move header to the main include directory Javier Martinez Canillas
2026-01-20 14:34   ` Tom Rini
2026-01-20 13:36 ` [PATCH 2/5] disk: part_dos: Align dos_partition_t with struct partition Javier Martinez Canillas
2026-01-20 14:35   ` Tom Rini
2026-01-20 13:36 ` [PATCH 3/5] disk: part_efi: Remove redundant struct partition definition Javier Martinez Canillas
2026-01-20 14:37   ` Tom Rini
2026-01-20 13:36 ` [PATCH 4/5] efi_loader: disk: Extend EFI_PARTITION_INFO_PROTOCOL to support MBR Javier Martinez Canillas
2026-01-20 14:53   ` Heinrich Schuchardt
2026-01-21  9:25     ` Javier Martinez Canillas
2026-01-20 17:39   ` Jan Kiszka
2026-01-21  9:28     ` Javier Martinez Canillas
2026-01-22  8:54       ` Jan Kiszka
2026-01-20 13:36 ` [PATCH 5/5] efi_selftest: Enhance MBR test for PARTITION_INFO_PROTOCOL Javier Martinez Canillas
2026-01-20 14:56   ` Heinrich Schuchardt
2026-01-21  9:28     ` Javier Martinez Canillas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox