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 <[email protected]>
---
  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

Reply via email to