[PATCH 1/1] efi_loader: provide valid PXE architecture on sandbox
Ilias Apalodimas
ilias.apalodimas at linaro.org
Sat Nov 9 16:06:00 CET 2024
On Sat, 9 Nov 2024 at 12:31, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Before this patch the sandbox uses 0xffffffea as PXE architecture.
>
> => efidebug defaults
> Default boot path: EFI\BOOT\BOOTSBOX.EFI
> PXE arch: 0xffffffea
>
> With this patch it uses the PXE architecture that matches the host.
> This allows us to use bootmeth EFI on the sandbox to load an EFI binary.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> lib/efi_loader/efi_helper.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lib/efi_loader/efi_helper.c b/lib/efi_loader/efi_helper.c
> index bf96f61d3d0..14049378930 100644
> --- a/lib/efi_loader/efi_helper.c
> +++ b/lib/efi_loader/efi_helper.c
> @@ -75,7 +75,7 @@ const char *efi_get_basename(void)
>
> int efi_get_pxe_arch(void)
> {
> - if (efi_use_host_arch())
> + if (IS_ENABLED(CONFIG_SANDBOX))
> return HOST_PXE_ARCH;
>
> /* http://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xml */
> --
> 2.45.2
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
More information about the U-Boot
mailing list