summary refs log tree commit diff stats
path: root/results/classifier/accel-gemma3:12b/kvm/1801
blob: 17b0657bec2df1bfe2445aaae4413386e4b66ae9 (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
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