Well spotted Heinrich. I'd hypothesized that something was shutting down
the network stack, but didn't yet no where to look, and overlooked
grub_net_fini_hw() message! With that hint, I went ahead and tried
commenting out[*] the registration of that callback, and voila, the
ReadFile2 initramfs loading from TFTP worked:
loader/efi/linux.c:348: Providing initrd via LOAD_FILE2_PROTOCOL
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Exiting boot services...
But I'm not sure of the correct way to address it. Perhaps the kernel's
efi stub needs to own network device shutdown to do this properly? I'm
happy to bring this discussion up on the mailing list. But, for jammy,
seems like disabling ReadFile2 initramfs for !riscv64 would be the
safest approach at this point.
[*]
Index: grub2-unsigned-2.06/grub-core/net/net.c
===================================================================
--- grub2-unsigned-2.06.orig/grub-core/net/net.c
+++ grub2-unsigned-2.06/grub-core/net/net.c
@@ -1818,11 +1818,11 @@ grub_net_fini_hw (int noreturn __attribu
return GRUB_ERR_NONE;
}
-static grub_err_t
+/*static grub_err_t
grub_net_restore_hw (void)
{
return GRUB_ERR_NONE;
-}
+ }*/
static int
grub_config_search_through (char *config, char *suffix,
@@ -2048,9 +2048,9 @@ GRUB_MOD_INIT(net)
grub_dns_init ();
grub_net_open = grub_net_open_real;
- fini_hnd = grub_loader_register_preboot_hook (grub_net_fini_hw,
+ /* fini_hnd = grub_loader_register_preboot_hook (grub_net_fini_hw,
grub_net_restore_hw,
-
GRUB_LOADER_PREBOOT_HOOK_PRIO_DISK);
+
GRUB_LOADER_PREBOOT_HOOK_PRIO_DISK);*/
grub_net_poll_cards_idle = grub_net_poll_cards_idle_real;
#ifdef GRUB_MACHINE_EFI
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1967562
Title:
jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1967562/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs