[Bug 2083150] Re: loader/efi/peimage.c:829:peimage: cannot load multiple images

Heinrich Schuchardt 2083150 at bugs.launchpad.net
Sun Sep 29 13:21:11 UTC 2024


Here is another example of an error which remains obscure without the
peimage error message:

Loading Linux 6.6.21-4-premier ...
loader/efi/linux.c:102:linux: UEFI stub kernel:
loader/efi/linux.c:103:linux: PE/COFF header @ 00000040
loader/efi/linux.c:132:linux: LoadFile2 initrd loading enabled
loader/efi/linux.c:501:linux: kernel file size: 36564992
loader/efi/linux.c:503:linux: kernel numpages: 8927
loader/efi/linux.c:520:linux: kernel @ 0x47b865000
Loading initial ramdisk ...
loader/efi/linux.c:420:linux: Using LoadFile2 initrd loading protocol
Loading device tree blob...
loader/efi/fdt.c:209:fdt: Device-tree /boot/dtb-6.6.21-4-premier loaded
loader/efi/fdt.c:62:linux: EFI_DT_FIXUP_PROTOCOL available
loader/efi/fdt.c:80:linux: Device tree fixed up via EFI_DT_FIXUP_PROTOCOL
loader/efi/fdt.c:147:fdt: Installed/updated FDT configuration table @ 0x47dbe6a40
loader/efi/peimage.c:210:peimage: NX policy violation
error: cannot load image.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2083150

Title:
  loader/efi/peimage.c:829:peimage: cannot load multiple images

Status in grub2 package in Ubuntu:
  New

Bug description:
  Version: 2.12-5ubuntu5

  I am using /usr/lib/grub/riscv64-efi/monolithic/grubriscv64.efi from
  the Oracular release.

  When executing `linux, initrd, device-tree, boot` I saw an error

      "error: cannot load image."

  in the GRUB console.

  I enabled debug=all and then it showed more:

  loader/efi/peimage.c:829:peimage: cannot load multiple images
  error: cannot load image.

  Please, do not expect a normal user to know about the debug variable.
  The message in /efi/peimage.c should be displayed without
  debug=peimage. Please, reconsider debian/patches/peimage-fixup-
  grub_error-grub_dprintf.patch. In most of the cases we should keep
  grub_error.

  I do not understand why we error out if the linux command is executed
  multiple times. I would expect only the last binary to be loaded and
  executed.

  Best regards

  Heinrich

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2083150/+subscriptions




More information about the foundations-bugs mailing list