summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/118/all/1925417
blob: 8ae45671c581b77c4e09c968b977c73714b5bb01 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
user-level: 0.925
peripherals: 0.920
debug: 0.899
permissions: 0.894
hypervisor: 0.891
register: 0.886
VMM: 0.881
files: 0.881
assembly: 0.879
device: 0.875
network: 0.875
virtual: 0.874
boot: 0.872
architecture: 0.872
vnc: 0.867
graphic: 0.867
mistranslation: 0.866
KVM: 0.865
PID: 0.864
x86: 0.862
semantic: 0.856
performance: 0.856
kernel: 0.851
arm: 0.848
risc-v: 0.847
socket: 0.839
TCG: 0.825
ppc: 0.809
i386: 0.795

Cannot boot from EFI image on aarch64

I am unable to boot from a EFI disk image on aarch64 qemu.

I have qemu built and installed from sources on a jetson-nano

qemu-system-aarch64 -version
QEMU emulator version 5.2.50 (v5.2.0-3234-gbdee969c0e)
Copyright (c) 2003-2021 Fabrice Bellard and the QEMU Project developers

KVM and and virtio are enabled in host kernel. 

Now I want to boot a ChromiumOS image. I have the image downloaded from here:

https://chromium.arnoldthebat.co.uk/?dir=daily

The image looks fine:

rreddy78@jetson-nano:~/Downloads$ fdisk -lu chromiumos_image.bin 
Disk chromiumos_image.bin: 6.2 GiB, 6606109184 bytes, 12902557 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C5B6CA94-0AF1-374E-90B5-A5CF4DC1FF51

Device                   Start      End Sectors  Size Type
chromiumos_image.bin1  4513792 12902508 8388717    4G Linux filesystem
chromiumos_image.bin2    20480    53247   32768   16M ChromeOS kernel
chromiumos_image.bin3   319488  4513791 4194304    2G ChromeOS root fs
chromiumos_image.bin4    53248    86015   32768   16M ChromeOS kernel
chromiumos_image.bin5   315392   319487    4096    2M ChromeOS root fs
chromiumos_image.bin6    16448    16448       1  512B ChromeOS kernel
chromiumos_image.bin7    16449    16449       1  512B ChromeOS root fs
chromiumos_image.bin8    86016   118783   32768   16M Linux filesystem
chromiumos_image.bin9    16450    16450       1  512B ChromeOS reserved
chromiumos_image.bin10   16451    16451       1  512B ChromeOS reserved
chromiumos_image.bin11      64    16447   16384    8M unknown
chromiumos_image.bin12  249856   315391   65536   32M EFI System

Partition table entries are not in disk order.

Now I try booting like this:

qemu-system-aarch64 -M virt -m 2048 -smp 2 -cpu host -enable-kvm  \
-device usb-ehci -device usb-kbd  -device usb-mouse -usb -serial stdio  \
-device virtio-gpu-pci,virgl=on,xres=1600,yres=900 -display sdl,gl=on \
-device virtio-blk-device,drive=hd \
-drive if=none,file=chromiumos_image.bin,format=raw,id=hd   \
-netdev user,id=mynet   \
-device virtio-net-device,netdev=mynet \
-bios edk2-aarch64-code.fd -no-reboot

But I am unable to boot.

Memory Type Information settings change.
[Bds]Booting UEFI Misc Device
 BlockSize : 262144 
 LastBlock : FF 
[Bds] Expand VenHw(93E34C7E-B50E-11DF-9223-2443DFD72085,00) -> <null string>
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from VenHw(93E34C7E-B50E-11DF-9223-2443DFD72085,00): Not Found


and 


[Bds] Expand VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000) -> <null string>
BdsDxe: failed to load Boot0002 "UEFI Misc Device 2" from VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000): Not Found

When i try to do it manually using the instructions provided here:

https://mricher.fr/post/boot-from-an-efi-shell/

I see that 

Mapping table
      FS0: Alias(s):HD0m:;BLK4:
          VenHw(837DCA9E-E874-4D82-B29A-23FE0E23D1E2,003E000A00000000)/HD(12,GPT,49037CF8-B2EF-5B4B-8CCE-EF5803A9E8B3,0x3D000,0x10000)
    BLK13: Alias(s):
          VenHw(93E34C7E-B5


BLK4 is not having any EFI file. 



Hi,

This is not a bug with QEMU. Its a problem with ChromiumOS qemu image issue which does not have a valid EFI partition for booting on qemu with EDK2

Please close this ticket.