From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: chalianis1@gmail.com, s.hauer@pengutronix.de
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] arm: efi: add a dummy efi arch on ARM64
Date: Wed, 30 Jul 2025 08:12:02 +0200 [thread overview]
Message-ID: <0271f274-7d1d-4d93-8e89-30881ffca47c@pengutronix.de> (raw)
In-Reply-To: <20250730035010.3318600-2-chalianis1@gmail.com>
Hi,
On 30.07.25 05:50, chalianis1@gmail.com wrote:
> From: Chali Anis <chalianis1@gmail.com>
>
> this arch will forces a generic arm 64 cpu, which will
> produce an efi payload on ARM 64, this works with a virtual
> machine using qemu-system-aarch64, need further work to support
> real hardware.
> Submit the patch in case someone is interrested in working
> to have a full support for efi payload on real hardware.
Thanks for your patch.
For the Virt platforms we decided to use the multi defconfigs to cut down
on the number of configs. I think efi_defconfig is useful to have, because
it shares little with other existing configs, but it might confuse users
to provide it before it is a viable target, i.e. can actually boot a kernel
via EFI...
I just submitted an alternative patch for multi_v8_efi_defconfig, which could
be used as stepping stone for further work.
What do you think?
> -Use the following to build barebox for EFI:
> +Use the following to build barebox for EFI for x86:
>
> .. code-block:: sh
>
> @@ -31,6 +31,15 @@ Use the following to build barebox for EFI:
> make efi_defconfig
> make
>
> +for EFI on arm 64 use:
> +
> +.. code-block:: sh
> +
> + export ARCH=arm
> + export CROSS_COMPILE=aarch64-linux-gnu-
> + make efi_defconfig
> + make
> +
> The resulting EFI image is ``barebox.efi`` (or the barebox-flash-image link).
>
> Running barebox on EFI systems
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index d283ef7793a1..d5dd6abc416f 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -276,6 +276,7 @@ source "arch/arm/mach-vexpress/Kconfig"
> source "arch/arm/mach-tegra/Kconfig"
> source "arch/arm/mach-zynq/Kconfig"
> source "arch/arm/mach-zynqmp/Kconfig"
> +source "arch/arm/mach-efi/Kconfig"
>
> config BOARD_ARM_VIRT
> bool
> diff --git a/arch/arm/configs/efi_defconfig b/arch/arm/configs/efi_defconfig
> new file mode 100644
> index 000000000000..5fe998ed4d4d
> +CONFIG_VIDEO=y
> +CONFIG_FRAMEBUFFER_CONSOLE=y
> +CONFIG_DRIVER_VIDEO_EFI_GOP=y
This doesn't work correctly on ARM yet
> +CONFIG_FINTEK_SUPERIO=y
> +CONFIG_SMSC_SUPERIO=y
These are likely not used with ARM systems
> +CONFIG_STATE_DRV=y
> +CONFIG_WATCHDOG=y
> +CONFIG_WATCHDOG_EFI=y
> +CONFIG_F71808E_WDT=y
> +CONFIG_ITCO_WDT=y
Not relevant to ARM systems.
> +++ b/arch/arm/mach-efi/Kconfig
> @@ -0,0 +1,10 @@
> +config EFI_ARM64
> + bool "EFI on ARM64"
> + select CPU_V8
> + select CPU_SUPPORTS_64BIT_KERNEL
> + select HAVE_EFI_PAYLOAD
> + select EFI_PAYLOAD
EFI_PAYLOAD is still gated behind COMPILE_TEST, so I think this should result in
a warning.
> + select CLOCKSOURCE_EFI
Wrong indentation.
Cheers,
Ahmad
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2025-07-30 6:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-30 3:50 [PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled chalianis1
2025-07-30 3:50 ` [PATCH] arm: efi: add a dummy efi arch on ARM64 chalianis1
2025-07-30 6:12 ` Ahmad Fatoum [this message]
2025-07-30 6:23 ` [PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled Ahmad Fatoum
[not found] ` <CAL+1fyCC0V3MO4tmgBJumbdPn7_BhQc-60s3QhGjye0rQQVpPw@mail.gmail.com>
2025-08-04 9:41 ` Ahmad Fatoum
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=0271f274-7d1d-4d93-8e89-30881ffca47c@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=chalianis1@gmail.com \
--cc=s.hauer@pengutronix.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