· 6 years ago · Sep 27, 2019, 02:24 AM
1root@clr-sos-guest~/celdon # ./launch_android.sh
2cpu1 online=1
3cpu2 online=1
4cpu3 online=1
5./launch_android.sh: line 16: echo: write error: Invalid argument
6./launch_android.sh: line 17: echo: write error: No such device
7passed gvt-g optargs low_gm 64, high_gm 448, fence 8
8SW_LOAD: get ovmf path ./OVMF.fd, size 0x200000
9vm_create: win_vm1
10VHM api version 1.0
11vm_setup_memory: size=0x100000000
12open hugetlbfs file /run/hugepage/acrn/huge_lv1/win_vm1/D279543825D611E8864ECB7A18B34643
13open hugetlbfs file /run/hugepage/acrn/huge_lv2/win_vm1/D279543825D611E8864ECB7A18B34643
14level 0 free/need pages:0/1 page size:0x200000
15level 1 free/need pages:0/4 page size:0x40000000
16to reserve more free pages:
17to reserve pages (+orig 0): echo 4 > /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages
18to reserve pages (+orig 0): echo 1 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
19now enough free pages are reserved!
20
21try to setup hugepage with:
22 level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0
23 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000
24total_size 0x200000000
25
26mmap ptr 0x0x7f2b426c6000 -> baseaddr 0x0x7f2b80000000
27mmap 0x80000000@0x7f2b80000000
28touch 2 pages with pagesz 0x40000000
29mmap 0x80000000@0x7f2cc0000000
30touch 2 pages with pagesz 0x40000000
31mmap 0x200000@0x7f2c7fe00000
32touch 1 pages with pagesz 0x200000
33
34really setup hugepage with:
35 level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0
36 level 1 - lowmem 0
37
38x80000000, biosmem 0x0, highmem 0x80000000
39vm_init_vdevs
40pci init pci-gvt
41modify_bar_registration: bypass for pci-gvt
42 modify_bar_registration: bypass for pci-gvt
43 modify_bar_registration: bypass for pci-gvt
44 polling 33...
45 Listening 33...
46 pci init virtio-blk
47pci init virtio-net
48pci init passthru
49tpm: init_vtpm2:Invalid socket path!
50 /tmp/dm.XTYncr7 785: Processor (CPU0, 0x00, 0x00000000, 0x00) {}
51 Warning 3168 - ^ Legacy Processor() keyword detected. Use Device() keyword instead.
52
53 acrn_sw_load
54 SW_LOAD: partition blob ./OVMF.fd size 2097152 copy to guest 0xffe00000
55 SW_LOAD: build e820 7 entries to addr: 0x7f2b800ef008
56SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000, type 0x1
57SW_LOAD: entry[1]: addr 0x00000000000a0000, size 0x0000000000060000, type 0x2
58SW_LOAD: entry[2]: addr 0x0000000000100000, size 0x000000007ff00000, type 0x1
59SW_LOAD: entry[3]: addr 0x0000000080000000, size 0x0000000008000000, type 0x2
60SW_LOAD: entry[4]: addr 0x00000000e0000000, size 0x0000000020000000, type 0x2
61SW_LOAD: entry[5]: addr 0x0000000100000000, size 0x0000000040000000, type 0x2
62SW_LOAD: entry[6]: addr 0x0000000140000000, size 0x0000000080000000, type 0x1
63SW_LOAD: ovmf_entry 0xfffffff0
64 add_cpu
65
66
67Watching power button on /dev/input/event2
68
69
70 Unable to locate graphics output protocol, graphic disabled: Not Found
71Unable to locate graphics output protocol, graphic disabled: Not Found
72Failed to setup the graphical mode: Not Found
73Failed to setup the graphical mode: Not Found
74kernelflinger-06.04-userdebug
75General block storage identified
76Setting PCI boot device to: Pci(0x3,0x0)/HD(Part1,Sig40051774-8202-4F5F-A125-1925AEAC7DC6)
77EFI path: \EFI\BOOT\BOOTX64.EFI
78Found 20 block io protocols
79Found disk as block io 0 for logical unit 0
80Found label bootloader in partition 0
81Upgrade file \EFI\BOOT\kernelflinger_new.efi is not exist
82Use simulate RPMB
83Found label boot_a in partition 2
84Found label boot_b in partition 3
85Found label misc in partition 6
86Avb magic 0x0, 0x41, 0x42, 0x30
87Avb magic is right
88wake_source = Invalid wake source (0xFF)
89reset_source = Unknown (0xFF)
90reset_type = Invalid Reset Type (0xFF)
91Bootlogic: Choosing boot target
92Bootlogic: Check osloader command line...
93Bootlogic: Check fastboot sentinel...
94checking ESP for \force_fastboot
95Bootlogic: Check magic key...
96Couldn't read timeout variable; assuming default
97Reset wait time: 200
98Bootlogic: Check watchdog...
99Bootlogic: Check battery insertion...
100Bootlogic: Check BCB...
101Locating BCB
102Found label misc in partition 6
103Reading BCB
104BCB: cmd '' status ''
105Bootlogic: Check reboot target...
106checking LoaderEntryOneShot
107Bootlogic: Check battery level...
108WARNING: charging protocol disabled, assume battery level is above BOOT_OS
109Bootlogic: Check charger insertion...
110Bootlogic: selected 'Android'
111enter clear teedata flag.
112Found label teedata in partition 13
113end clear teedata flag , success
114Found label teedata in partition 13
115Failed to read counter for simulate: Aborted
116Failed to read counter for simulate: Aborted
117key is not programmed, use the first derived key.: Aborted
118key is not programmed, use the first derived key.: Aborted
119Found label teedata in partition 13
120get_counter ret=21, wc=0
121rpmb key is not programmed
122RPMB not programmed
123Found label teedata in partition 13
124rpmb key not provisioned
125Found label teedata in partition 13
126Init RPMB key successfully
127Init RPMB key successfully
128checking device state
129Life Cycle Protocol is not supported
130OEMLock not set, device is not in provisioning mode
131Loading bootloader policy using AVB
132Found label misc in partition 6
133avb_ab_flow.c:312: ERROR: No bootable slots found.
134Failed to get avb slot a/b flow result for boot: Invalid Parameter
135Failed to get avb slot a/b flow result for boot: Invalid Parameter
136Failed to load the boot image using AVB to get bootloader policy: Invalid Parameter
137Failed to load the boot image using AVB to get bootloader policy: Invalid Parame
138ter
139Loading boot image
140Found label misc in partition 6root@clr-sos-guest~/celdon # ./launch_android.sh
141cpu1 online=1
142cpu2 online=1
143cpu3 online=1
144./launch_android.sh: line 16: echo: write error: Invalid argument
145./launch_android.sh: line 17: echo: write error: No such device
146passed gvt-g optargs low_gm 64, high_gm 448, fence 8
147SW_LOAD: get ovmf path ./OVMF.fd, size 0x200000
148vm_create: win_vm1
149VHM api version 1.0
150vm_setup_memory: size=0x100000000
151open hugetlbfs file /run/hugepage/acrn/huge_lv1/win_vm1/D279543825D611E8864ECB7A18B34643
152open hugetlbfs file /run/hugepage/acrn/huge_lv2/win_vm1/D279543825D611E8864ECB7A18B34643
153level 0 free/need pages:0/1 page size:0x200000
154level 1 free/need pages:0/4 page size:0x40000000
155to reserve more free pages:
156to reserve pages (+orig 0): echo 4 > /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages
157to reserve pages (+orig 0): echo 1 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
158now enough free pages are reserved!
159
160try to setup hugepage with:
161 level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0
162 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000
163total_size 0x200000000
164
165mmap ptr 0x0x7f2b426c6000 -> baseaddr 0x0x7f2b80000000
166mmap 0x80000000@0x7f2b80000000
167touch 2 pages with pagesz 0x40000000
168mmap 0x80000000@0x7f2cc0000000
169touch 2 pages with pagesz 0x40000000
170mmap 0x200000@0x7f2c7fe00000
171touch 1 pages with pagesz 0x200000
172
173really setup hugepage with:
174 level 0 - lowmem 0x0, biosmem 0x200000, highmem 0x0
175 level 1 - lowmem 0x80000000, biosmem 0x0, highmem 0x80000000
176vm_init_vdevs
177pci init pci-gvt
178modify_bar_registration: bypass for pci-gvt
179 modify_bar_registration: bypass for pci-gvt
180 modify_bar_registration: bypass for pci-gvt
181 polling 33...
182 Listening 33...
183 pci init virtio-blk
184pci init virtio-net
185pci init passthru
186tpm: init_vtpm2:Invalid socket path!
187 /tmp/dm.XTYncr7 785: Processor (CPU0, 0x00, 0x00000000, 0x00) {}
188 Warning 3168 - ^ Legacy Processor() keyword detected. Use Device() keyword instead. acrn_sw_load
189 SW_LOAD: partition blob ./OVMF.fd size 2097152 copy to guest 0xffe00000
190 SW_LOAD: build e820 7 entries to addr: 0x7f2b800ef008
191SW_LOAD: entry[0]: addr 0x0000000000000000, size 0x00000000000a0000, type 0x1
192SW_LOAD: entry[1]: addr 0x00000000000a0000, size 0x0000000000060000, type 0x2
193SW_LOAD: entry[2]: addr 0x0000000000100000, size 0x000000007ff00000, type 0x1
194SW_LOAD: entry[3]: addr 0x0000000080000000, size 0x0000000008000000, type 0x2
195SW_LOAD: entry[4]: addr 0x00000000e0000000, size 0x0000000020000000, type 0x2
196SW_LOAD: entry[5]: addr 0x0000000100000000, size 0x0000000040000000, type 0x2
197SW_LOAD: entry[6]: addr 0x0000000140000000, size 0x0000000080000000, type 0x1
198SW_LOAD: ovmf_entry 0xfffffff0
199 add_cpu
200
201Watching power button on /dev/input/event2
202
203
204Unable to locate graphics output protocol, graphic disabled: Not Found
205Unable to locate graphics output protocol, graphic disabled: Not Found
206Failed to setup the graphical mode: Not Found
207Failed to setup the graphical mode: Not Found
208kernelflinger-06.04-userdebug
209General block storage identified
210Setting PCI boot device to: Pci(0x3,0x0)/HD(Part1,Sig40051774-8202-4F5F-A125-1925AEAC7DC6)
211EFI path: \EFI\BOOT\BOOTX64.EFI
212Found 20 block io protocols
213Found disk as block io 0 for logical unit 0
214Found label bootloader in partition 0
215Upgrade file \EFI\BOOT\kernelflinger_new.efi is not exist
216Use simulate RPMB
217Found label boot_a in partition 2
218Found label boot_b in partition 3
219Found label misc in partition 6
220Avb magic 0x0, 0x41, 0x42, 0x30
221Avb magic is right
222wake_source = Invalid wake source (0xFF)
223reset_source = Unknown (0xFF)
224reset_type = Invalid Reset Type (0xFF)
225Bootlogic: Choosing boot target
226Bootlogic: Check osloader command line...
227Bootlogic: Check fastboot sentinel...
228checking ESP for \force_fastboot
229Bootlogic: Check magic key...
230Couldn't read timeout variable; assuming default
231Reset wait time: 200
232Bootlogic: Check watchdog...
233Bootlogic: Check battery insertion...
234Bootlogic: Check BCB...
235Locating BCB
236Found label misc in partition 6
237Reading BCB
238BCB: cmd '' status ''
239Bootlogic: Check reboot target...
240checking LoaderEntryOneShot
241Bootlogic: Check battery level...
242WARNING: charging protocol disabled, assume battery level is above BOOT_OS
243Bootlogic: Check charger insertion...
244Bootlogic: selected 'Android'
245enter clear teedata flag.
246Found label teedata in partition 13
247end clear teedata flag , success
248Found label teedata in partition 13
249Failed to read counter for simulate: Aborted
250Failed to read counter for simulate: Aborted
251key is not programmed, use the first derived key.: Aborted
252key is not programmed, use the first derived key.: Aborted
253Found label teedata in partition 13
254get_counter ret=21, wc=0
255rpmb key is not programmed
256RPMB not programmed
257Found label teedata in partition 13
258rpmb key not provisioned
259Found label teedata in partition 13
260Init RPMB key successfully
261Init RPMB key successfully
262checking device state
263Life Cycle Protocol is not supported
264OEMLock not set, device is not in provisioning mode
265Loading bootloader policy using AVB
266Found label misc in partition 6
267avb_ab_flow.c:312: ERROR: No bootable slots found.
268Failed to get avb slot a/b flow result for boot: Invalid Parameter
269Failed to get avb slot a/b flow result for boot: Invalid Parameter
270Failed to load the boot image using AVB to get bootloader policy: Invalid Parameter
271Failed to load the boot image using AVB to get bootloader policy: Invalid Parame
272ter
273Loading boot image
274Found label misc in partition 6
275avb_ab_flow.c:312: ERROR: No bootable slots found.
276Failed to get avb slot a/b flow result for boot: Invalid Parameter
277Failed to get avb slot a/b flow result for boot: Invalid Parameter
278Unable to locate graphics output protocol, graphic disabled: Not Found
279Unable to locate graphics output protocol, graphic disabled: Not Found
280Failed to setup the graphical mode: Not Found
281Failed to setup the graphical mode: Not Found
282OEM vars may need to be updated
283Setup acpi table
284Install firststage_mount_ssdt, target=0
285firststage_mount_ssdt installed, target=0
286Red state: invalid boot image.Unable to start trusty. Stop
287vm mode changed from 0 to 3
288 VM loop exit
289 pci deinit hostbridge
290 pci deinit lpc
291 pci deinit pci-gvt
292modify_bar_registration: bypass for pci-gvt
293modify_bar_registration: bypass for pci-gvt
294modify_bar_registration: bypass for pci-gvt
295pci deinit virtio-blk
296pci deinit virtio-net
297vtnet tx thread closing...
298pci deinit passthru
299vm_reset_ptdev_intx:0x28-fb, ioapic virpin=0.
300mngr_client_new: Failed to accept from fd 33, err: Invalid argument
301Stop listening 33...
302Stop polling 33...
303avb_ab_flow.c:312: ERROR: No bootable slots found.
304Failed to get avb slot a/b flow result for boot: Invalid Parameter
305Failed to get avb slot a/b flow result for boot: Invalid Parameter
306Unable to locate graphics output protocol, graphic disabled: Not Found
307Unable to locate graphics output protocol, graphic disabled: Not Found
308Failed to setup the graphical mode: Not Found
309Failed to setup the graphical mode: Not Found
310OEM vars may need to be updated
311Setup acpi table
312Install firststage_mount_ssdt, target=0
313firststage_mount_ssdt installed, target=0
314Red state: invalid boot image.Unable to start trusty. Stop
315vm mode changed from 0 to 3
316 VM loop exit
317 pci deinit hostbridge
318 pci deinit lpc
319 pci deinit pci-gvt
320modify_bar_registration: bypass for pci-gvt
321modify_bar_registration: bypass for pci-gvt
322modify_bar_registration: bypass for pci-gvt
323pci deinit virtio-blk
324pci deinit virtio-net
325vtnet tx thread closing...
326pci deinit passthru
327vm_reset_ptdev_intx:0x28-fb, ioapic virpin=0.
328mngr_client_new: Failed to accept from fd 33, err: Invalid argument
329Stop listening 33...
330Stop polling 33...