From: AKASHI Takahiro <takahiro.akashi@linaro.org>
To: u-boot@lists.denx.de
Subject: [PATCH 1/3] efi_loader: print boot device and file path in helloworld
Date: Mon, 18 Jan 2021 10:38:12 +0900 [thread overview]
Message-ID: <20210118013812.GA16614@laputa> (raw)
In-Reply-To: <5966209c-4e12-bfc9-a917-d95630addac4@gmx.de>
On Fri, Jan 15, 2021 at 01:02:51PM +0100, Heinrich Schuchardt wrote:
> On 15.01.21 05:29, AKASHI Takahiro wrote:
> > On Fri, Jan 15, 2021 at 04:12:18AM +0100, Heinrich Schuchardt wrote:
> >> Am 15. Januar 2021 02:56:03 MEZ schrieb AKASHI Takahiro <takahiro.akashi@linaro.org>:
> >>> Heinrich,
> >>>
> >>> On Tue, Jan 12, 2021 at 08:58:40PM +0100, Heinrich Schuchardt wrote:
> >>>> Let helloworld.efi print the device path of the boot device and the
> >>> file
> >>>> path as provided by the loaded image protocol.
> >>>>
> >>>> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> >>>> ---
> >>>> lib/efi_loader/helloworld.c | 167
> >>> +++++++++++++++++++++++++++++-------
>
> <snip />
>
> >>>
> >>> If this kind of information is quite useful for users, why not add
> >>> that (printing) feature as an option of bootefi (or efidebug)?
> >>> I'm afraid that most users who are irritated as you said won't be able
> >>> to imagine such information be printed by helloworld app.
> >>>
> >>
> >> The file path is written in
> >>
> >> https://github.com/trini/u-boot/blob/master/cmd/bootefi.c#L471
> >>
> >> Device paths are not really user friendly.
> >
> > So why do you want to print such info at helloworld?
> >
> > I guess that, according to your cover letter, you have in your mind
> > some cases where an user may get in trouble relating to the boot device.
> > Right?
> >
> >> So I would not like to write it there.
> >
> > What I meant to suggest is to add an option, -v or -h, to bootefi,
> > which prints verbose (and helpful) information for users to identify a cause.
> > I can easily imagine users may blindly try to add -[v|h] when
> > they see an error message even if they don't know there is such an option:)
>
> To me helloworld.efi is a tool for a developer to see if an EFI binary
> is correctly invoked.
My point is that most users (developers?) don't intuitively imagine
such information will be printed with helloworld app.
> The normal U-Boot code we want to keep as slim as possible.
(I doubt this in terms of UEFI)
> According to the spec UEFI boots from the ESP and typically there is
> only one. So printing the file path in cmd/bootefi should be enough.
So again,
> > So why do you want to print such info at helloworld?
-Takahiro Akashi
> Best regards
>
> Heinrich
next prev parent reply other threads:[~2021-01-18 1:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-12 19:58 [PATCH 0/3] efi_loader: setting boot device Heinrich Schuchardt
2021-01-12 19:58 ` [PATCH 1/3] efi_loader: print boot device and file path in helloworld Heinrich Schuchardt
2021-01-14 15:42 ` Simon Glass
2021-01-15 1:56 ` AKASHI Takahiro
2021-01-15 3:12 ` Heinrich Schuchardt
2021-01-15 4:29 ` AKASHI Takahiro
2021-01-15 12:02 ` Heinrich Schuchardt
2021-01-18 1:38 ` AKASHI Takahiro [this message]
2021-01-12 19:58 ` [PATCH 2/3] efi_loader: carve out efi_check_pe() Heinrich Schuchardt
2021-01-14 15:42 ` Simon Glass
2021-01-12 19:58 ` [PATCH 3/3] efi_loader: setting boot device Heinrich Schuchardt
2021-01-19 18:06 ` Simon Glass
2021-01-19 18:43 ` Heinrich Schuchardt
2021-01-20 0:15 ` Simon Glass
2022-04-03 21:08 ` Kyle Evans
2022-04-04 5:09 ` Heinrich Schuchardt
2022-04-04 5:40 ` Kyle Evans
2022-04-04 5:58 ` Heinrich Schuchardt
2022-04-04 14:51 ` Kyle Evans
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=20210118013812.GA16614@laputa \
--to=takahiro.akashi@linaro.org \
--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