From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 1/1] efi_loader: populate console handles in system table
Date: Wed, 4 Jan 2023 12:12:25 +0200 [thread overview]
Message-ID: <Y7VRCaesH2SuXeUm@hades> (raw)
In-Reply-To: <20230104050446.144658-1-heinrich.schuchardt@canonical.com>
On Wed, Jan 04, 2023 at 06:04:46AM +0100, Heinrich Schuchardt wrote:
> The fields ConsoleInHandle, ConsoleOutHandle, ConsoleErrHandle must point
> to the handles with the respective console protocols. Failure to do so
> leads to an error in the EFI Shell:
>
> No SimpleTextInputEx was found. CTRL-based features are not usable.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
> lib/efi_loader/efi_boottime.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
> index 253f9f75ef..e65ca6a4cb 100644
> --- a/lib/efi_loader/efi_boottime.c
> +++ b/lib/efi_loader/efi_boottime.c
> @@ -3956,8 +3956,11 @@ efi_status_t efi_initialize_system_table(void)
> * These entries will be set to NULL in ExitBootServices(). To avoid
> * relocation in SetVirtualAddressMap(), set them dynamically.
> */
> + systab.con_in_handle = efi_root;
> systab.con_in = &efi_con_in;
> + systab.con_out_handle = efi_root;
> systab.con_out = &efi_con_out;
> + systab.stderr_handle = efi_root;
> systab.std_err = &efi_con_out;
> systab.boottime = &efi_boot_services;
>
> --
> 2.37.2
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
prev parent reply other threads:[~2023-01-04 10:12 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-04 5:04 [PATCH 1/1] efi_loader: populate console handles in system table Heinrich Schuchardt
2023-01-04 10:12 ` Ilias Apalodimas [this message]
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=Y7VRCaesH2SuXeUm@hades \
--to=ilias.apalodimas@linaro.org \
--cc=heinrich.schuchardt@canonical.com \
--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