[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-19 Thread Taihsiang Ho
The jammy RC (20220418.2) looks good for Ampere Mt. Jade Altra (bizzy).
I can pxe install the server successfully.

By the way autoinstall of subiquity also works like a charm.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-18 Thread Brian Murray
** Changed in: grub2-signed (Ubuntu Jammy)
   Status: New => Fix Released

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-15 Thread Launchpad Bug Tracker
This bug was fixed in the package grub2 - 2.06-2ubuntu7

---
grub2 (2.06-2ubuntu7) jammy; urgency=medium

  [ Heinrich Schuchardt ]
  * Disable LOAD FILE2 protocol for initrd on ARM (LP: #1967562)

 -- dann frazier   Fri, 15 Apr 2022 15:50:11 -0600

** Changed in: grub2 (Ubuntu Jammy)
   Status: New => Fix Released

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-15 Thread dann frazier
reported upstream: https://lists.gnu.org/archive/html/grub-
devel/2022-04/msg00055.html

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-15 Thread dann frazier
** Changed in: linux (Ubuntu Jammy)
   Status: Incomplete => Invalid

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-15 Thread dann frazier
** Merge proposal linked:
   https://code.launchpad.net/~xypron/grub/+git/grub/+merge/419407

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-14 Thread Brian Murray
** Also affects: grub2 (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Also affects: linux (Ubuntu Jammy)
   Importance: Undecided
   Status: Incomplete

** Also affects: grub2-signed (Ubuntu Jammy)
   Importance: Undecided
   Status: New

** Also affects: subiquity (Ubuntu Jammy)
   Importance: Undecided
   Status: Invalid

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-14 Thread Brian Murray
** Tags removed: rls-jj-incoming

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-14 Thread Heinrich Schuchardt
As long as the kernel stub does not invoke the SNP protocol itself it is
safe for GRUB to assume that it is still in a good state when reaching
the Load File2 protocol call.

I am not aware of any requirement in the UEFI specification to leave the
network adapter in a specific state on ExitBootServices().

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-14 Thread Heinrich Schuchardt
As we are close to release date we should simply disable Load File2 protocol on 
ARM in Jammy:
https://code.launchpad.net/~xypron/grub/+git/grub/+merge/419407

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-13 Thread dann frazier
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-13 Thread Heinrich Schuchardt
As the log below shows grub_net_fini_hw() is called before entering the
kernel and before the LoadFile2 protocol is executed:

loader/efi/linux.c:478: kernel @ 0xf63d8000
net/net.c:1559: fs_close() name: /casper/vmlinuz
net/net.c:1510: fs_open() name: /casper/initrd
loader/efi/linux.c:396: LoadFile2 initrd loading protocol installed
net/net.c:1819: grub_net_fini_hw()
net/drivers/efi/efinet.c:232: efi_net close_card
loader/efi/linux.c:141: Installed/updated FDT configuration table @ 0x0
loader/efi/linux.c:191: linux command line: 'BOOT_IMAGE=/casper/vmlinuz
efi=debug earlyprintk
url=https://cdimage.ubuntu.com/ubuntu-server/daily-live/current/jammy-live-serv
er-arm64.iso'
loader/efi/peimage.c:215: PE-COFF header checked
loader/efi/peimage.c:282: sections loaded
loader/efi/peimage.c:493: no relocations
loader/efi/peimage.c:709: Executing image loaded at 0xf364
Entry point 0xf55473c8
Size 0x02d9
EFI stub: Booting Linux Kernel...
EFI stub: EFI_RNG_PROTOCOL unavailable
EFI stub: Generating empty DTB
loader/efi/linux.c:348: Providing initrd via LOAD_FILE2_PROTOCOL
net/net.c:1685: fs_read_real() name: /casper/initrd
net/drivers/efi/efinet.c:169: efi_net open_card
net/drivers/efi/efinet.c:75: Timeout: limit_time 50680, new_time 50681
error: couldn't send network packet.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-12 Thread Julian Andres Klode
** No longer affects: grub2-unsigned (Ubuntu)

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-12 Thread Heinrich Schuchardt
On riscv64 we cannot boot without the LoadFile2 protocol. So the short
term fix of forcing to 0 must be architecture specific. Check for
__riscv not defined.

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-12 Thread Heinrich Schuchardt
** Tags added: fr-2245

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-12 Thread Ubuntu QA Website
This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1967562

** Tags added: iso-testing

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-12 Thread Dimitri John Ledkov
** Also affects: grub2 (Ubuntu)
   Importance: Undecided
   Status: New

** Also affects: grub2-signed (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: grub2 (Ubuntu)
Milestone: None => ubuntu-22.04

** Changed in: grub2-signed (Ubuntu)
Milestone: None => ubuntu-22.04

** Changed in: grub2-unsigned (Ubuntu)
Milestone: None => ubuntu-22.04

** Tags added: rls-jj-incoming

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-12 Thread Taihsiang Ho
Since it seems a grub issue, I reported the issue to qatracker of daily
build to make the release team aware of this issue, and hopefully the
information will be helpful before releasing RC.

http://iso.qa.ubuntu.com/qatracker/milestones/429/builds/246802/testcases/1697/results

-- 
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
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-11 Thread dann frazier
I randomly picked another ARM server, a Cavium ThunderX system, and it
also fails to net boot w/ jammy's GRUB, but works fine w/ the patch in
comment #16. So this is looking like possibly an architecture-wide
issue. I tested on an x86 VM, but I didn't see any of the LoadFile2
messages. I assume (didn't check the code) that LoadFile2 initramfs is
disabled there.

** Changed in: grub2-unsigned (Ubuntu)
   Importance: Undecided => High

** Changed in: linux (Ubuntu)
 Assignee: dann frazier (dannf) => (unassigned)

-- 
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-unsigned/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-11 Thread dann frazier
Removing efi-implement-grub_efi_run_image.patch didn't avoid the
problem, nor did removing both that and efi-implemented-
LoadFile2-initrd-loading-protocol-fo.patch, but that appears to just be
because the arm64 code gets migrated to the efi loader code later in the
series, basically reintroducing the LoadFile2 support.

Instead, I just made the following change, which does avoid the problem:

Index: grub2-unsigned-2.06/grub-core/loader/efi/linux.c
===
--- grub2-unsigned-2.06.orig/grub-core/loader/efi/linux.c
+++ grub2-unsigned-2.06/grub-core/loader/efi/linux.c
@@ -88,7 +88,7 @@ grub_arch_efi_linux_check_image (struct
* LoadFile2 based initrd loading protocol if the image version is >= 1.
*/
   if (optional_header->major_image_version >= 1)
-initrd_use_loadfile2 = 1;
+initrd_use_loadfile2 = 0;
else
 initrd_use_loadfile2 = 0;

-- 
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-unsigned/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-11 Thread Julian Andres Klode
Though maybe you also need to unapply efi-implemented-LoadFile2-initrd-
loading-protocol-fo.patch

-- 
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-unsigned/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-11 Thread Julian Andres Klode
To figure out if it's the new loader code, remove efi-implement-
grub_efi_run_image.patch (or the grub-core/loader/efi/linux.c hunk) or
enable secure boot (if available). The new code path on insecure systems
uses the upstream loader + LoadFile2 support, as is necessary for
RISC-V.

-- 
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-unsigned/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-08 Thread dann frazier
I turned on grub debugging (set debug=all in grub.cfg), and this seems
interesting. The "error: couldn't send network packet." message may
actually be telling us something is wrong with downloading the initrd.
Full log attached, here's a filtered version:

[...]
loader/efi/linux.c:80: UEFI stub kernel:
loader/efi/linux.c:81: PE/COFF header @ 0040
loader/efi/linux.c:95: LoadFile2 initrd loading enabled
loader/efi/linux.c:459: kernel file size: 46496128
loader/efi/linux.c:461: kernel numpages: 11352
loader/efi/linux.c:478: kernel @ 0xa1e43000
kern/disk.c:196: Opening `tftp,10.229.58.59'...
disk/efi/efidisk.c:482: opening tftp
kern/disk.c:281: Opening `tftp,10.229.58.59' failed.
kern/disk.c:295: Closing `tftp'.
kern/verifiers.c:88: file: /casper/initrd type: 131076
loader/efi/linux.c:396: LoadFile2 initrd loading protocol installed
]
loader/efi/linux.c:141: Installed/updated FDT configuration table @ 0x0
loader/efi/linux.c:191: linux command line: 'BOOT_IMAGE=/casper/vmlinuz
root=/dev/ram0 ramdisk_size=150 ip=dhcp
url=http://cdimage.ubuntu.com/ubuntu-server/daily-live/20220408/jammy-live-serv
er-arm64.iso --- debug'
kern/efi/sb.c:111: UEFI Secure Boot state: Disabled
loader/efi/peimage.c:215: PE-COFF header checked
loader/efi/peimage.c:282: sections loaded
loader/efi/peimage.c:493: no relocations
loader/efi/peimage.c:709: Executing image loaded at 0x9f0b
Entry point 0xa0fb8428
Size 0x02d9
EFI stub: Booting Linux Kernel...
EFI stub: Generating empty DTB
loader/efi/linux.c:348: Providing initrd via LOAD_FILE2_PROTOCOL
net/net.c:1596: error receiving: 28: couldn't send network packet
net/net.c:1596: error receiving: 28: couldn't send network packet
net/net.c:1596: error receiving: 28: couldn't send network packet
net/net.c:1596: error receiving: 28: couldn't send network packet
net/net.c:1596: error receiving: 28: couldn't send network packet
net/net.c:1596: error receiving: 28: couldn't send network packet
net/net.c:1596: error receiving: 28: couldn't send network packet
net/net.c:1596: error receiving: 28: couldn't send network packet
error: couldn't send network packet.
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Exiting boot services...


** Attachment added: "grub-debug.log"
   
https://bugs.launchpad.net/ubuntu/+source/grub2-unsigned/+bug/1967562/+attachment/5578350/+files/grub-debug.log

-- 
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-unsigned/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-08 Thread dann frazier
GRUB is responsible for loading the initrd into memory, so it is possible that 
this is a GRUB regression.  Also, this message is new to me:
  EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
So maybe this is related to a new GRUB initrd loading method?

To test that, I grabbed focal's grubnetaa64.efi[*] and retested. This
actually worked, and contains no "LINUX_EFI_INITRD_MEDIA_GUID" messages
in the stub:

EFI stub: Booting Linux Kernel...
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
[0.00] Booting Linux on physical CPU 0x12 [0x413fd0c1]

So, adding a grub task.


[*] 
http://ports.ubuntu.com/ubuntu-ports/dists/focal/main/uefi/grub2-arm64/2.04-1ubuntu26/grubnetaa64.efi.signed

** Attachment added: "howzit-iso-console+focal-grub.log"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1967562/+attachment/5578349/+files/howzit-iso-console+focal-grub.log

** Also affects: grub2-unsigned (Ubuntu)
   Importance: Undecided
   Status: New

-- 
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-unsigned/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-08 Thread dann frazier
The iso-booted-kernel has no problem unpacking the initramfs:

[   15.282839] Trying to unpack rootfs image as initramfs...
[...]
[   15.935483] Freeing initrd memory: 103248K

But that's interesting, the freed initrd memory size reported is
different here. When PXE-booted, it was 103244K. 103248K actually
matches the initrd size reported by `ls`. I assumed some kind of
rounding error, but maybe that 4K difference is a clue.

EDIT: No, turns out I was pointing at a daily ISO build and it has been
updated, and initrd sizes between the two have a 4K initrd difference.


** Attachment added: "howzit-iso-console.log"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1967562/+attachment/5578348/+files/howzit-iso-console.log

-- 
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/linux/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-08 Thread dann frazier
I can reproduce, and I've attached the full console log (!quiet,
+debug). Here's some interesting pieces of the log:

EFI stub: Booting Linux Kernel...
EFI stub: Generating empty DTB
error: couldn't send network packet.
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Exiting boot services...
[0.00] Booting Linux on physical CPU 0x12 [0x413fd0c1]
[0.00] Linux version 5.15.0-25-generic (buildd@bos02-arm64-058) (gcc 
(Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) 
#25-Ubuntu SMP Wed Mar 30 15:57:31 UTC 2022 (Ubuntu 5.15.0-25.25-generic 
5.15.30)
[...]
[   15.338070] Trying to unpack rootfs image as initramfs...
[   15.439137] Initramfs unpacking failed: invalid magic at start of compressed 
archive
[   15.461425] Freeing initrd memory: 103244K
[...]

We can see at the end there that the initrd failed to unpack, and that
will definitely lead to a "Unable to mount root fs" panic. But why did
it fail to unpack? One possibility is that the initrd failed to
download. The TFTP server does report that it downloaded:

Apr  8 19:38:59 avoton02 in.tftpd[4218]: RRQ from 10.229.58.47 filename 
/casper/vmlinuz
Apr  8 19:39:02 avoton02 in.tftpd[4220]: RRQ from 10.229.58.47 filename 
/casper/vmlinuz
Apr  8 19:39:06 avoton02 in.tftpd[4221]: RRQ from 10.229.58.47 filename 
/casper/initrd

OK, then maybe it only partially downloaded? Well, the amount of memory
the kernel reports freeing is close to the size of the initrd, so that's
probably not it:

$ du -s /srv/tftp/casper/initrd 
103248  /srv/tftp/casper/initrd

Then perhaps the kernel doesn't support decompressing this compression
format. What is the compression format?

$ file /srv/tftp/casper/initrd 
/srv/tftp/casper/initrd: Zstandard compressed data (v0.8+), Dictionary ID: None

Does the kernel support that? Let's look at the kernel config:

ubuntu@avoton02:/tmp$ dpkg-deb -x 
linux-modules-5.15.0-25-generic_5.15.0-25.25_arm64.deb x
ubuntu@avoton02:/tmp$ grep ZSTD_DECOMPRESS x/boot/config-5.15.0-25-generic 
CONFIG_ZSTD_DECOMPRESS=y

hm.. it does. That's weird. The other mystery is that this all seems to
work when booted from the ISO. Let's take a look at that boot log and
see if we can spot anything different.

** Attachment added: "howzit-pxe-console.log"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1967562/+attachment/5578333/+files/howzit-pxe-console.log

** Changed in: subiquity (Ubuntu)
   Status: Incomplete => Invalid

** Changed in: linux (Ubuntu)
 Assignee: (unassigned) => dann frazier (dannf)

-- 
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/linux/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1967562] Re: jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

2022-04-07 Thread Taihsiang Ho
** Summary changed:

- jammy beta (220330) arm iso kernel panic on Ampere Mt. Jade during pxe boot
+ jammy beta (220330) arm iso pxe boot kernel panic on Ampere Mt. Jade

-- 
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/linux/+bug/1967562/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs