public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	U-Boot Mailing List <u-boot@lists.denx.de>,
	Vagrant Cascadian <vagrant@debian.org>,
	huang lin <hl@rock-chips.com>,
	Jeffy Chen <jeffy.chen@rock-chips.com>,
	Kever Yang <kever.yang@rock-chips.com>,
	Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Subject: Re: [PATCH v5 3/8] bootstd: Support booting EFI where multiple options exist
Date: Mon, 3 Apr 2023 12:56:49 +0300	[thread overview]
Message-ID: <ZCqi4Z5R/1hICSJx@hera> (raw)
In-Reply-To: <CAPnjgZ16gJGx_CsvHmhstROF8xQb2O43C45ZtAaLUpUcT5jU_Q@mail.gmail.com>

On Sat, Apr 01, 2023 at 07:31:49PM +1300, Simon Glass wrote:
> Hi Tom,
>
> On Sat, 1 Apr 2023 at 07:02, Tom Rini <trini@konsulko.com> wrote:
> >
> > On Fri, Mar 31, 2023 at 10:25:56AM +1300, Simon Glass wrote:
> >
> > > The current EFI implementation has a strange quirk where it watches
> > > loaded files and uses the last-loaded file to determine the device that
> > > is being booted from.
> > >
> > > This is confusing with bootstd, where multiple options may exist. Even
> > > loading a device tree will cause it to go wrong. There is no API for
> > > passing this information, since the only entry into booting an EFI image
> > > is the 'bootefi' command.
> > >
> > > To work around this, call efi_set_bootdev() for EFI images, if possible,
> > > just before booting.
> > >
> > > Signed-off-by: Simon Glass <sjg@chromium.org>
> >
> > Shouldn't this all be a simple wrapper around the EFI Standard
> > BootDeviceOrder or whatever that's called?
>
> I think you are referring to boot manager, which isn't used here. This
> is replicating the existing distroboot functionality in standard boot.

The distroboot functionality *was* trying to behave like the EFI spec
expects the bootmanager to behave.  Unfortunately I haven't had time to
review the distroboot patches closely, but back when this started, my point
was that EFI doesn't need anything.  Whenever the EFI flow is added bootstd
should 'just' call the bootmanager.

Regards/Ilias
> I've been trying to tease out the rules around finding the image and
> the devicetree files, and this is what I've got it.
>
> Regards,
> Simon

  reply	other threads:[~2023-04-03  9:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-30 21:25 [PATCH v5 1/8] bootstd: Tweak bootflow logic for device tree Simon Glass
2023-03-30 21:25 ` [PATCH v5 2/8] virtio: Ensure PCI is set up first Simon Glass
2023-03-30 21:25 ` [PATCH v5 3/8] bootstd: Support booting EFI where multiple options exist Simon Glass
2023-03-31 18:02   ` Tom Rini
2023-04-01  6:31     ` Simon Glass
2023-04-03  9:56       ` Ilias Apalodimas [this message]
2023-04-03 14:17         ` Tom Rini
2023-04-03 16:26           ` Heinrich Schuchardt
2023-04-04  6:09             ` Ilias Apalodimas
2023-04-05  5:28           ` Simon Glass
2023-04-05 14:47             ` Tom Rini
2023-04-05 21:56               ` Mark Kettenis
2023-04-06  5:42                 ` Heinrich Schuchardt
2023-04-07 19:38                 ` Tom Rini
2023-04-07 18:55               ` Simon Glass
2023-04-07 19:39                 ` Tom Rini
2023-04-07 19:44                   ` Ilias Apalodimas
2023-04-07 19:56                     ` Simon Glass
2023-04-07 19:57                     ` Tom Rini
2023-03-30 21:25 ` [PATCH v5 4/8] rockchip: Move to standard boot Simon Glass
2023-03-30 21:25 ` [PATCH v5 5/8] rockchip: Use the same boot_targets for all boards Simon Glass
2023-03-30 21:25 ` [PATCH v5 6/8] bootstd: Show a message sometimes if no bootflows are found Simon Glass
2023-03-30 21:26 ` [PATCH v5 7/8] bootstd: Report missing labels only when asked Simon Glass
2023-03-30 21:26 ` [PATCH v5 8/8] bootstd: Enable BOOTSTD_DEFAULTS by default Simon Glass
2023-03-31 18:00   ` Tom Rini
2023-04-01  6:31     ` Simon Glass
2023-04-03 14:33       ` Tom Rini

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=ZCqi4Z5R/1hICSJx@hera \
    --to=ilias.apalodimas@linaro.org \
    --cc=hl@rock-chips.com \
    --cc=jeffy.chen@rock-chips.com \
    --cc=kever.yang@rock-chips.com \
    --cc=philipp.tomsich@theobroma-systems.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vagrant@debian.org \
    --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