blob: 994ca8d0a31dae0d4ce077a75a66c2ae0a8723c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
peripherals: 0.870
mistranslation: 0.717
hypervisor: 0.680
TCG: 0.649
performance: 0.636
graphic: 0.628
semantic: 0.613
assembly: 0.611
permissions: 0.605
debug: 0.587
device: 0.586
ppc: 0.576
register: 0.573
architecture: 0.569
user-level: 0.558
socket: 0.539
PID: 0.537
arm: 0.528
vnc: 0.525
virtual: 0.507
x86: 0.493
kernel: 0.490
VMM: 0.466
boot: 0.451
network: 0.447
risc-v: 0.432
files: 0.430
KVM: 0.429
i386: 0.352
qemu-system-arm: Linux doesn't boot with UEFI (hangs after printing `EFI stub: Exiting boot services... `.)
Description of problem:
Ubuntu 23.04 (armhf) doesn't boot with UEFI.
It hangs after printing `EFI stub: Exiting boot services... `.
Steps to reproduce:
```console
$ qemu-system-arm -machine virt -m 2048 -nographic -bios /usr/local/share/qemu/edk2-arm-code.fd -hda ubuntu-23.04-server-cloudimg-armhf.img -snapshot
UEFI firmware (version edk2-stable202302-for-qemu built at 17:13:00 on Mar 15 2023)
Error: Image at 000BFD84000 start failed: Not Found
Error: Image at 000BFCEE000 start failed: Unsupported
Error: Image at 000BFC85000 start failed: Not Found
Tpm2SubmitCommand - Tcg2 - Not Found
Tpm2GetCapabilityPcrs fail!
Tpm2SubmitCommand - Tcg2 - Not Found
BdsDxe: loading Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x2,0x0)
BdsDxe: starting Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x2,0x0)
EFI stub: Booting Linux Kernel...
EFI stub: Entering in SVC mode with MMU enabled
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
```
Additional information:
It still boots when vmlinuz and initrd are directly specified:
```console
$ qemu-system-arm -machine virt -m 2048 -nographic -bios /usr/local/share/qemu/edk2-arm-code.fd -hda ubuntu-23.04-server-cloudimg-armhf.img -snapshot -kernel ubuntu-23.04-server-cloudimg-armhf-vmlinuz-lpae -initrd ubuntu-23.04-server-cloudimg-armhf-initrd-generic-lpae -append "root=LABEL=cloudimg-rootfs ro"
UEFI firmware (version edk2-stable202302-for-qemu built at 17:13:00 on Mar 15 2023)
Error: Image at 000BFD84000 start failed: Not Found
Error: Image at 000BFCEE000 start failed: Unsupported
Tpm2SubmitCommand - Tcg2 - Not Found
Tpm2GetCapabilityPcrs fail!
Tpm2SubmitCommand - Tcg2 - Not Found
EFI stub: Booting Linux Kernel...
EFI stub: Entering in SVC mode with MMU enabled
EFI stub: Loaded initrd from LINUX_EFI_INITRD_MEDIA_GUID device path
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 6.2.0-26-generic-lpae (buildd@bos02-arm64-018) (arm-linux-gnueabihf-gcc-12 (Ubuntu 12.2.0-17ubuntu1) 12.2.0, GNU ld (GNU
Binutils for Ubuntu) 2.40) #26-Ubuntu SMP Tue Jul 11 10:32:58 UTC 2023 (Ubuntu 6.2.0-26.26-generic-lpae 6.2.13)
[ 0.000000] CPU: ARMv7 Processor [414fc0f0] revision 0 (ARMv7), cr=30c5387d
...
Ubuntu 23.04 ubuntu ttyAMA0
ubuntu login:
```
Files:
- https://cloud-images.ubuntu.com/releases/23.04/release-20230729/ubuntu-23.04-server-cloudimg-armhf.img
- https://cloud-images.ubuntu.com/releases/23.04/release-20230729/unpacked/ubuntu-23.04-server-cloudimg-armhf-vmlinuz-lpae
- https://cloud-images.ubuntu.com/releases/23.04/release-20230729/unpacked/ubuntu-23.04-server-cloudimg-armhf-initrd-generic-lpae
|