[Bug 1788940] Re: armhf cloud image fails to boot kernel

dann frazier dann.frazier at canonical.com
Fri Aug 24 20:39:13 UTC 2018


FTR, a workaround for this that bypasses GRUB would be:

ubuntu at ubuntu:~$ cat /boot/efi/startup.nsh
# driver from https://efi.akeo.ie/
load fs0:\efi\ext2_arm.efi
map -r
# system partition moves from fs0: to fs1:

# We can't boot from ext4, so cache boot files in our system partition
cp fs0:\boot\vmlinuz fs1:\efi\boot\vmlinuz
cp fs0:\boot\initrd.img fs1:\efi\boot\initrd.img
fs1:
\efi\boot\vmlinuz initrd=\efi\boot\initrd.img root=LABEL=cloudimg-rootfs

-- 
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/1788940

Title:
  armhf cloud image fails to boot kernel

Status in grub2 package in Ubuntu:
  New

Bug description:
  If you try to boot a pristine Ubuntu cloud image in EFI mode in QEMU,
  GRUB will fail to boot the kernel.

  sudo qemu-system-aarch64 -enable-kvm -M virt,gic_version=host -smp 7
  -m 2048 -cpu host,aarch64=off -nographic -pflash AAVMF32_CODE.fd
  -pflash AAVMF32_VARS.fd -drive if=none,file=bionic-server-cloudimg-
  armhf.img,id=hd0 -device virtio-blk-device,drive=hd0 -drive
  if=none,file=my-seed.img,id=hd1      -device virtio-blk-
  device,drive=hd1      -netdev type=tap,id=net0      -device virtio-
  net-device,netdev=net0,mac=00:16:3e:12:2c:a8

  [...]
  FS1:\EFI\BOOT\> BOOTARM.EFI
  error: no suitable video mode found.

  
                               GNU GRUB  version 2.02

   /----------------------------------------------------------------------------\
   |*Ubuntu                                                                     | 
   | Advanced options for Ubuntu                                                |
   | System setup                                                               |
   |                                                                            |
   |                                                                            |
   |                                                                            |
   |                                                                            |
   |                                                                            |
   |                                                                            |
   |                                                                            |
   |                                                                            |
   |                                                                            |
   |                                                                            | 
   \----------------------------------------------------------------------------/

        Use the ^ and v keys to select which entry is highlighted.          
        Press enter to boot the selected OS, `e' to edit the commands       
        before booting or `c' for a command-line.                           
                                                                                 
                                                                                 












  
  error: no such device: root.

  Press any key to continue...

  Undefined OpCode Exception PC at 0x00000002  CPSR 0x20000133 
  Undefined OpCode Exception PC at 0x00000002  CPSR 0x20000133 
  Undefined OpCode Exception PC at 0x00000002  CPSR 0x20000133 
  Undefined OpCode Exception PC at 0x00000002  CPSR 0x20000133 
  Undefined OpCode Exception PC at 0x00000002  CPSR 0x20000133 
  Undefined OpCode Exception PC at 0x00000002  CPSR 0x20000133 
  Undefined OpCode Exception PC at 0x00000002  CPSR 0x20000133 
  [...]

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



More information about the foundations-bugs mailing list