[PATCH v2 1/3] apple: Set up file system firmware loader
Marek Vasut
marek.vasut at mailbox.org
Tue Sep 30 01:03:41 CEST 2025
On 9/29/25 9:52 PM, Mark Kettenis wrote:
> Find the appropriate EFI system partition on the internal NVMe
> storage and set the U-Boot environment variables such that
> the file system firmware loader can load firmware from it.
>
> Signed-off-by: Mark Kettenis <kettenis at openbsd.org>
> ---
> arch/arm/mach-apple/board.c | 59 +++++++++++++++++++++++++++++++++++++
> 1 file changed, 59 insertions(+)
>
> diff --git a/arch/arm/mach-apple/board.c b/arch/arm/mach-apple/board.c
> index 4cd8979bdc2..d8b6787c705 100644
> --- a/arch/arm/mach-apple/board.c
> +++ b/arch/arm/mach-apple/board.c
> @@ -8,6 +8,8 @@
> #include <efi_loader.h>
> #include <env.h>
> #include <lmb.h>
> +#include <nvme.h>
> +#include <part.h>
>
> #include <asm/armv8/mmu.h>
> #include <asm/global_data.h>
> @@ -771,6 +773,60 @@ u64 get_page_table_size(void)
> return SZ_256K;
> }
>
> +static char *asahi_esp_devpart(void)
> +{
Maybe try request_firmware_into_buf_via_script() instead ?
That might make this more flexible /wrt firmware location and user
preferences.
--
Best regards,
Marek Vasut
More information about the U-Boot
mailing list