From: Javier Martinez Canillas <javierm@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>, u-boot@lists.denx.de
Cc: eballetb@redhat.com, alexl@redhat.com,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Javier Tia <javier.tia@linaro.org>,
Maks Mishin <maks.mishinfz@gmail.com>,
Rasmus Villemoes <ravi@prevas.dk>, Simon Glass <sjg@chromium.org>,
Tien Fong Chee <tien.fong.chee@altera.com>,
Tom Rini <trini@konsulko.com>,
Varadarajan Narayanan <quic_varada@quicinc.com>
Subject: Re: [PATCH 4/5] efi_loader: disk: Extend EFI_PARTITION_INFO_PROTOCOL to support MBR
Date: Wed, 21 Jan 2026 10:28:27 +0100 [thread overview]
Message-ID: <87zf67e2mc.fsf@ocarina.mail-host-address-is-not-set> (raw)
In-Reply-To: <5c6c0fbc-4560-4a88-b52d-97c66341ed30@siemens.com>
Jan Kiszka <jan.kiszka@siemens.com> writes:
Hello Jan,
> On 20.01.26 14:36, Javier Martinez Canillas wrote:
>> The EFI_PARTITION_INFO_PROTOCOL provides detailed information about
>> partitions. The UEFI specification mentions that both GPT and MBR
>> partition schemes are supported, but the U-Boot implementation only
>> supports the former.
>>
>> This can cause compatibility issues for platforms whose boot ROM only
>> supports MBR. This change adds support for MBR partition tables to
>> the protocol, making U-Boot compatible with systems that require a
>> legacy MBR table.
>
> Normally, this is simple to address via hybrid partition tables. I've
> done that already for two different SoCs (TI AM62 and Altera Cyclone V),
> and this allows to use all the nifty features of the modern GPT without
> upsetting the ROM loaders. Do you have a SoC where this does not work?
>
Yes, I know that could be worked around by using hybrid partition tables
but IMO using that could be fragile.
> That said, adding this feature may still be valuable.
>
Indeed and as mentioned in the commit message it is something supported by
the EFI partition info protocol according to the spec, so it makes sense
for U-boot to also implement support for MBR.
> Jan
>
> --
> Siemens AG, Foundational Technologies
> Linux Expert Center
>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
next prev parent reply other threads:[~2026-01-21 9:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=87zf67e2mc.fsf@ocarina.mail-host-address-is-not-set \
--to=javierm@redhat.com \
--cc=alexl@redhat.com \
--cc=eballetb@redhat.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jan.kiszka@siemens.com \
--cc=javier.tia@linaro.org \
--cc=maks.mishinfz@gmail.com \
--cc=quic_varada@quicinc.com \
--cc=ravi@prevas.dk \
--cc=sjg@chromium.org \
--cc=tien.fong.chee@altera.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--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