From: Thomas Schmitt <scdbackup@gmx.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] EFI: find EFI system partition by legacy MBR partition type
Date: Thu, 06 Jul 2017 12:19:29 +0200 [thread overview]
Message-ID: <950771433869764604@scdbackup.webframe.org> (raw)
In-Reply-To: <20170706091403.936-1-andre.przywara@arm.com>
Hi,
i am the upstream developer of program xorriso which packs up Debian arm64
ISOs.
Here is my minority opinion from a discussion with Andre Przywara:
To my opinion, if U-boot is used as EFI implementation, then it should
not consider as bootable any "active" MBR partitions or "Legacy BIOS
Bootable" GPT partitions (see is_bootable() in disk/part_efi.c).
While the proposed change of behavior is an undisputable improvement,
my objection is that the main boot loaders in distro ISOs are GRUB and
SYSLINUX. Both do not expect that the "active" partition gets booted by
the firmware but rather that their own MBR at the start of the ISO gets
started by BIOS or the ESP is brought up by EFI.
The MBR programs in the ISOs do not go on with booting the "active"
partition but rather hop onto the El Torito boot image programs in the ISO.
The Legacy BIOS Bootable bit of GPT is explicitely not an EFI boot
indicator. UEFI 2.4 says in table 20 : "UEFI boot manager (see chapter 3)
must ignore this bit when selecting a UEFI-compliant application".
The BootIndicator byte of MBR partitions is explicitely not for EFI.
Table 14 says: "This field shall not be used by UEFI firmware."
So if "active" partitions are present in GRUB or SYSLINUX equipped ISOs
they are under no circumstances intended for being booted.
Currently debian ISOs for arm64 have no "active" partition. But that's
an inner implementation detail. E.g. HDD bootable ISOs for x86 do have
the "active"/bootable flag on the ISO 9660 partition out of tradition to
appease mad BIOS implementations.
It is well possible to combine x86 BIOS and arm64 EFI boot equipment
in the same ISO image. So the need for an "active" partition might arise.
Have a nice day :)
Thomas
next prev parent reply other threads:[~2017-07-06 10:19 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-06 9:14 [U-Boot] [PATCH] EFI: find EFI system partition by legacy MBR partition type Andre Przywara
2017-07-06 9:23 ` Alexander Graf
2017-09-18 20:45 ` André Przywara
2017-07-06 10:19 ` Thomas Schmitt [this message]
2017-07-06 13:07 ` Andre Przywara
2017-07-06 13:21 ` Alexander Graf
2017-07-06 14:28 ` Thomas Schmitt
2017-07-06 14:16 ` Thomas Schmitt
2017-07-06 14:31 ` Alexander Graf
2017-07-06 16:46 ` Andre Przywara
2017-07-07 3:57 ` 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=950771433869764604@scdbackup.webframe.org \
--to=scdbackup@gmx.net \
--cc=u-boot@lists.denx.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