armhf cloud image fails to boot kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Debian) |
Fix Released
|
Unknown
|
|||
grub2 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
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_
[...]
FS1:\EFI\BOOT\> BOOTARM.EFI
error: no suitable video mode found.
/-----
|*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
[...]
Related branches
- Julian Andres Klode: Pending requested
- Ubuntu Core Development Team: Pending requested
-
Diff: 177 lines (+73/-10)7 files modifieddebian/changelog (+16/-0)
debian/grub-common.service (+4/-3)
debian/patches/0239-arm-linux-Fix-ARM-Linux-header-layout.patch (+29/-0)
debian/patches/series (+1/-0)
debian/patches/ubuntu-add-initrd-less-boot-fallback.patch (+6/-5)
debian/patches/ubuntu-add-initrd-less-boot-messages.patch (+15/-2)
debian/rules (+2/-0)
Changed in grub2 (Ubuntu): | |
status: | New → Triaged |
tags: | added: patch |
Changed in grub2 (Debian): | |
status: | Unknown → New |
tags: | added: id-59e75aef0db68571b6cb822d |
Changed in grub2 (Debian): | |
status: | New → Fix Released |
FTR, a workaround for this that bypasses GRUB would be:
ubuntu@ubuntu:~$ cat /boot/efi/ startup. nsh /efi.akeo. ie/ ext2_arm. efi
# driver from https:/
load fs0:\efi\
map -r
# system partition moves from fs0: to fs1:
# We can't boot from ext4, so cache boot files in our system partition boot\vmlinuz initrd. img fs1:\efi\ boot\initrd. img \efi\boot\ initrd. img root=LABEL= cloudimg- rootfs
cp fs0:\boot\vmlinuz fs1:\efi\
cp fs0:\boot\
fs1:
\efi\boot\vmlinuz initrd=