Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2016 23:45:52 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Xin Li <delphij@delphij.net>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, Xin LI <d@delphij.net>
Subject:   Re: EFI boot: can we make loader.efi work as BOOT{x64, aa64, arm, ia32}.efi?
Message-ID:  <CANCZdfrsviGtMR=61RnxV1U8DsSy82naugDOX-KeEuuAHf4t4g@mail.gmail.com>
In-Reply-To: <5bf35d8a-9941-9c6e-ea0a-20827ad26466@delphij.net>
References:  <5bf35d8a-9941-9c6e-ea0a-20827ad26466@delphij.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 31, 2016 at 12:20 AM, Xin Li <delphij@delphij.net> wrote:
> Hi,
>
> I finally got some time to explore the UEFI boot process (kudos to
> everyone who made this work!) and getting myself familiarize with the
> basics.
>
> One quick question -- Is there some technical restriction that prevents
> us from merging boot1.efi and loader.efi into one binary?

Yes. There's many technical reasons. Don't do it.

loader.efi loads all the forth stuff from the partition it was loaded from.
If you merge, it cannot do that.

boot.efi should implement the UEFI boot manager protocol, but doesn't.
Once it does, it can't be merged with loader.efi.

We have deep issues with loader.efi if you have any system that's
even a little complex. As these issues have come up, some have
been fixed, but others haven't. It hasn't been possible, without
ugly hacks, to boot off ping / pong partitions on the same disk
for example.

Please do not do this. It is a really bad idea.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfrsviGtMR=61RnxV1U8DsSy82naugDOX-KeEuuAHf4t4g>