* [PATCH] efi: payload: be explicit about incompatibility with CONFIG_HAVE_OPTEE
@ 2026-07-07 7:59 Ahmad Fatoum
2026-07-09 6:15 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2026-07-07 7:59 UTC (permalink / raw)
To: barebox; +Cc: Ahmad Fatoum
barebox PBL expects OP-TEE at the end of the initial memory, which
doesn't make sense for barebox as EFI app as the initial memory is just
16M of freshly allocated EFI memory.
Booting barebox via the EFI stub while OPTEE support is enabled will
thus normally hang. Until the PBL OPTEE code is adapted, refuse this
bogus configuration.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
efi/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/efi/Kconfig b/efi/Kconfig
index 9c559207e95c..b8f118a8812f 100644
--- a/efi/Kconfig
+++ b/efi/Kconfig
@@ -5,6 +5,7 @@ menu "EFI (Extensible Firmware Interface) Support"
config EFI_PAYLOAD
bool "barebox as EFI payload/app (consumer)"
depends on HAVE_EFI_PAYLOAD || COMPILE_TEST
+ depends on !HAVE_OPTEE
select PBL_FULLY_PIC if ARM64
select EFI
select EFI_GUID
--
2.47.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] efi: payload: be explicit about incompatibility with CONFIG_HAVE_OPTEE
2026-07-07 7:59 [PATCH] efi: payload: be explicit about incompatibility with CONFIG_HAVE_OPTEE Ahmad Fatoum
@ 2026-07-09 6:15 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-07-09 6:15 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Tue, 07 Jul 2026 09:59:43 +0200, Ahmad Fatoum wrote:
> barebox PBL expects OP-TEE at the end of the initial memory, which
> doesn't make sense for barebox as EFI app as the initial memory is just
> 16M of freshly allocated EFI memory.
>
> Booting barebox via the EFI stub while OPTEE support is enabled will
> thus normally hang. Until the PBL OPTEE code is adapted, refuse this
> bogus configuration.
>
> [...]
Applied, thanks!
[1/1] efi: payload: be explicit about incompatibility with CONFIG_HAVE_OPTEE
https://git.pengutronix.de/cgit/barebox/commit/?id=567904d083a7 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-09 6:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-07 7:59 [PATCH] efi: payload: be explicit about incompatibility with CONFIG_HAVE_OPTEE Ahmad Fatoum
2026-07-09 6:15 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox