Hi all,
I install a CentOS-7-aarch64 guest img by qemu cdrom, but it hung at UEFI probability.
Basic info:
libvirt 1.3.5
QEMU 2.6.2
UEFI: master branch with commit "688c7d2 BaseTools: Fix the bug that warn() function with only 1 argument"
Config pflash and two disks in xml:
...
hvm
/usr/share/edk2/aarch64/QEMU_EFI-pflash.raw
...
...
I found it failed at "Match (Translated, TranslatedSize, ActiveOption[Idx].BootOption->FilePath)" function in "SetBootOrderFromQemu", the UEFI debug info as follow:
...
SetBootOrderFromQemu: FwCfg:^M
/pci@ffffffffffffffff/pci-bridge@3/scsi@0/channel@0/disk@0,0
HALT^M
SetBootOrderFromQemu: FwCfg: ^M
ParseOfwNode: DriverName="pci" UnitAddress="ffffffffffffffff" DeviceArguments=""^M
ParseOfwNode: DriverName="pci-bridge" UnitAddress="3" DeviceArguments=""^M
ParseOfwNode: DriverName="scsi" UnitAddress="0" DeviceArguments=""^M
ParseOfwNode: DriverName="channel" UnitAddress="0" DeviceArguments=""^M
ParseOfwNode: DriverName="disk" UnitAddress="0,0" DeviceArguments=""^M
TranslateOfwPath: success: "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)/Scsi(0x0,0x0)"^M
Match: against "Fv(64074AFE-340A-4BE6-94BA-91B5B4D0F71E)/FvFile(462CAA21-7614-4503-836E-8AB6F4662331)": no match^M
Match: against "VenHw(F9B94AE2-8BA6-409B-9D56-B9B417F53CB3)": no match^M
Match: against "VenHw(8047DB4B-7E9C-4C0C-8EBC-DFBBAACACE8F)": no match^M
Match: against "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)/Scsi(0x0,0x0)": match^M
TranslateOfwPath: no more nodes^M
BootOrderComplete: keeping "Fv(64074AFE-340A-4BE6-94BA-91B5B4D0F71E)/FvFile(462CAA21-7614-4503-836E-8AB6F4662331)"^M
BootOrderComplete: keeping "VenHw(F9B94AE2-8BA6-409B-9D56-B9B417F53CB3)"^M
BootOrderComplete: keeping "VenHw(8047DB4B-7E9C-4C0C-8EBC-DFBBAACACE8F)"^M
BootOrderComplete: dropping "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/MAC(5254000C81CB,0x1)"^M
BootOrderComplete: keeping "Fv(64074AFE-340A-4BE6-94BA-91B5B4D0F71E)/FvFile(7C04A583-9E3E-4F1C-AD65-E05268D0B4D1)"^M
SetBootOrderFromQemu: setting BootOrder: success^M
[Bds]OsIndication: 0000000000000000^M
[Bds]=============Begin Load Options Dumping ...=============^M
Driver Options:^M
SysPrep Options:^M
Boot Options:^M
Boot0003: UEFI QEMU QEMU HARDDISK 0x0001^M
Boot0000: UiApp 0x0109^M
Boot0001: UEFI Misc Device 0x0001^M
Boot0002: UEFI Misc Device 2 0x0001^M
Boot0005: EFI Internal Shell 0x0001^M
PlatformRecovery Options:^M
PlatformRecovery0000: Default PlatformRecovery 0x0001^M
[Bds]=============End Load Options Dumping=============
...
Compared with success log, it will find "\EFI\centos\shim.efishim.efi", and load grubaa64.efi successfully.
...
ParseOfwNode: DriverName="pci" UnitAddress="ffffffffffffffff" DeviceArguments=""^M
ParseOfwNode: DriverName="pci-bridge" UnitAddress="3" DeviceArguments=""^M
ParseOfwNode: DriverName="scsi" UnitAddress="0" DeviceArguments=""^M
ParseOfwNode: DriverName="channel" UnitAddress="0" DeviceArguments=""^M
ParseOfwNode: DriverName="disk" UnitAddress="0,0" DeviceArguments=""^M
TranslateOfwPath: success: "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)/Scsi(0x0,0x0)"^M
FSOpen: Open '\EFI\centos\shim.efi' Success^M
[Bds] Expand HD(1,GPT,AA71821A-7EAA-4C83-87A8-77E4A17BCD91,0x800,0x64000)/\EFI\centos\shim.efi -> PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)/Scsi(0x0,0x0)/HD(1,GPT,AA71821A- 7EAA-4C83-87A8-77E4A17BCD91,0x800,0x64000)/\EFI\centos\shim.efi^M
Match: expanded relative device path "HD(1,GPT,AA71821A-7EAA-4C83-87A8-77E4A17BCD91,0x800,0x64000)/\EFI\centos\shim.efi" for prefix matching^M
Match: against "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)/Scsi(0x0,0x0)/HD(1,GPT,AA71821A-7EAA-4C83-87A8-77E4A17BCD91,0x800,0x64000)/\EFI\centos\shim.efi": match^M
TranslateOfwPath: no more nodes^M
BootOrderComplete: keeping "Fv(64074AFE-340A-4BE6-94BA-91B5B4D0F71E)/FvFile(462CAA21-7614-4503-836E-8AB6F4662331)"^M
BootOrderComplete: keeping "VenHw(F9B94AE2-8BA6-409B-9D56-B9B417F53CB3)"^M
BootOrderComplete: keeping "VenHw(8047DB4B-7E9C-4C0C-8EBC-DFBBAACACE8F)"^M
BootOrderComplete: keeping "Fv(64074AFE-340A-4BE6-94BA-91B5B4D0F71E)/FvFile(7C04A583-9E3E-4F1C-AD65-E05268D0B4D1)"^M
BootOrderComplete: dropping "PciRoot(0x0)/Pci(0x3,0x0)/Pci(0x0,0x0)/Scsi(0x0,0x0)"^M
BootOrderComplete: dropping "PciRoot(0x0)/Pci(0x1,0x0)/Pci(0x0,0x0)/MAC(525400CFC658,0x1)"^M
SetBootOrderFromQemu: setting BootOrder: success^M
[Bds]OsIndication: 0000000000000000^M
[Bds]=============Begin Load Options Dumping ...=============^M
Driver Options:^M
SysPrep Options:^M
Boot Options:^M
Boot0004: CentOS Linux 0x0001^M
Boot0000: UiApp 0x0109^M
Boot0001: UEFI Misc Device 0x0001^M
Boot0002: UEFI Misc Device 2 0x0001^M
...
Is there any advice on this issue? Thanks in advance.
Zhu Yijun