All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: "Mark Kettenis" <mark.kettenis@xs4all.nl>,
	"U-Boot Mailing List" <u-boot@lists.denx.de>,
	"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
	"Pali Rohár" <pali@kernel.org>,
	"Heinrich Schuchardt" <xypron.glpk@gmx.de>,
	"Alex Graf" <agraf@csgraf.de>,
	"Masahiro Yamada" <yamada.masahiro@socionext.com>
Subject: Re: [PATCH v2 0/9] efi: Various tidy-ups and drop the default
Date: Fri, 2 Jul 2021 16:19:03 -0400	[thread overview]
Message-ID: <20210702201903.GF9516@bill-the-cat> (raw)
In-Reply-To: <CAPnjgZ0Tg9K=_=uhkLWQu75N5J_hmieSawPf3bHW6zfjTV9R4w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3513 bytes --]

On Fri, Jul 02, 2021 at 02:04:40PM -0600, Simon Glass wrote:
> Hi Mark,
> 
> On Fri, 2 Jul 2021 at 13:50, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> >
> > > From: Simon Glass <sjg@chromium.org>
> > > Date: Fri,  2 Jul 2021 12:36:11 -0600
> > >
> > > It has come to light that EFI_LOADER adds an extraordinary amount of
> > > code to U-Boot. For example, with nokia_rx51 the size delta is about
> > > 90KB. About 170 boards explicitly disable the option, but is is clear
> > > that many more could, thus saving image size and boot time.
> > >
> > > The current situation is affecting U-Boot's image as a svelt bootloader.
> > >
> > > EFI_LOADER is required by EBBR, a new boot standard which aims to
> > > bring in UEFI protocols to U-Boot. But EBRR is not required for
> > > booting. U-Boot already provides support for FIT, the 'bootm' command
> > > and a suitable hand-off to Linux. EBRR has made the decision to create
> > > a parallel infrastructure, e.g. does not use FIT, nor U-Boot's signing
> > > infrastructure.
> > >
> > > EBBR should be truly optional, enabled only by boards that use it. Most
> > > don't use it but it is enabled anyway. The default boot path should be
> > > one that makes use of the existing U-Boot support.
> > >
> > > To try to retify this situation, this series adds a new Kconfig option
> > > for EBBR so that the naming is more explicit. Then EFI_LOADER is updated
> > > to depend on it.
> > >
> > > The final patch makes EBBR optional. For now, only sandbox enables EBBR.
> > > Other boards can be added as needed, presumably by distributions that
> > > require it. Another approach would be to add 'CONFIG_EBBR=y' to the
> > > .config before building, in the build system. That might be more friendly
> > > to U-Boot users.
> > >
> > > This series also fixes a minor issue noticed during testing.
> >
> > I don't understand why you're pushing this series in a form that
> > still disables EFI_LOADER by default after last weeks discussions.
> 
> I moved the change to non-default to the last patch. Even if that is
> not a good idea, the rest of the series stands.
> 
> But more specifically to your question, I have not seen any discussion
> about the size issues identified. Nor has there been any comment on my
> suggestion in the cover letter for distros to define CONFIG_EBBR
> themselves when building U-Boot. I still think turning it off by
> default makes sense given the current situation.

It's not "distros", it's board vendors.  And then SoM vendors.  And
their customers.  Based on what I see, the default values get re-used
95% of the time, or more.  The things we want to Just Work need to be
enabled by default.  What distros want is for vendors to include
firmware in non-volatile storage, not to rebuild every board firmware
and have to ship that, and even less to have to tell users to
reconfigure things and then build.

It's also at this point counter-productive.  If you want to run an off
the shelf distro on aarch64, it's almost certainly going to use
EFI_LOADER.  What I wasn't sure about was armv7, but that was confirmed
to be used by default in Fedora and OpenBSD and encouraged (I'll assume
I just didn't find the right install media) for Debian.  I'd rather talk
with someone in Armbian about why they don't use EFI_LOADER than try and
convince Fedora to go and use extlinux.conf more (and that leaves out
entirely *BSD which is not what I want to do either!).

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2021-07-02 20:19 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-02 18:36 [PATCH v2 0/9] efi: Various tidy-ups and drop the default Simon Glass
2021-07-02 18:36 ` [PATCH v2 1/9] configs: Resync with savedefconfig Simon Glass
2021-07-02 18:36 ` [PATCH v2 2/9] Makefile: Drop include/asm directory as well as symlink Simon Glass
2021-07-28 22:56   ` Tom Rini
2021-07-02 18:36 ` [PATCH v2 3/9] disk: Tidy up #ifdefs in part_efi Simon Glass
2021-07-28 22:56   ` Tom Rini
2021-07-28 23:21   ` Heinrich Schuchardt
2021-07-02 18:36 ` [PATCH v2 4/9] Use LIB_UUID with ACPIGEN and FS_BTRFS Simon Glass
2021-07-28 22:56   ` Tom Rini
2021-07-02 18:36 ` [PATCH v2 5/9] Allow efi_loader header to be included always Simon Glass
2021-07-28 22:56   ` Tom Rini
2021-07-02 18:36 ` [PATCH v2 6/9] lib: Create a new Kconfig option for charset conversion Simon Glass
2021-07-28 22:57   ` Tom Rini
2021-07-02 18:36 ` [PATCH v2 7/9] Make EFI_LOADER depend on DM and OF_CONTROL Simon Glass
2021-07-26 22:07   ` Tom Rini
2021-07-28 23:45     ` Heinrich Schuchardt
2021-07-28 23:55       ` Tom Rini
2021-07-29  1:44         ` Simon Glass
2021-07-29 13:52           ` Tom Rini
2021-07-30 19:02             ` Simon Glass
2021-07-30 21:33               ` Tom Rini
2021-07-30 21:48                 ` Simon Glass
2021-07-30 22:08                   ` Tom Rini
2022-03-28  6:35                     ` Simon Glass
2022-03-28 14:15                       ` Tom Rini
2021-07-02 18:36 ` [PATCH v2 8/9] Add an option for EBBR Simon Glass
2021-07-29  0:12   ` Heinrich Schuchardt
2021-07-29  0:40     ` Tom Rini
2021-07-02 18:36 ` [PATCH v2 9/9] efi: Make EBBR optional Simon Glass
2021-07-02 20:11   ` Tom Rini
2021-07-02 20:38     ` Simon Glass
2021-07-29  0:35       ` Heinrich Schuchardt
2021-07-02 19:50 ` [PATCH v2 0/9] efi: Various tidy-ups and drop the default Mark Kettenis
2021-07-02 20:04   ` Simon Glass
2021-07-02 20:19     ` Tom Rini [this message]
2021-07-02 20:50       ` 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=20210702201903.GF9516@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=agraf@csgraf.de \
    --cc=ilias.apalodimas@linaro.org \
    --cc=mark.kettenis@xs4all.nl \
    --cc=pali@kernel.org \
    --cc=sjg@chromium.org \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    --cc=yamada.masahiro@socionext.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.