From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4389121CF9519 for ; Mon, 31 Jul 2017 12:00:32 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 309CBC0E4125; Mon, 31 Jul 2017 19:02:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 309CBC0E4125 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-117-71.phx2.redhat.com [10.3.117.71]) by smtp.corp.redhat.com (Postfix) with ESMTP id CC09BA5791; Mon, 31 Jul 2017 19:02:35 +0000 (UTC) To: Zhu Yijun , edk2-devel@lists.01.org References: <597E798B.1020806@huawei.com> From: Laszlo Ersek Cc: "Richard W.M. Jones" , Gerd Hoffmann Message-ID: <443e01eb-28ec-6e4d-43ac-6f6f16f7f3d4@redhat.com> Date: Mon, 31 Jul 2017 21:02:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <597E798B.1020806@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 31 Jul 2017 19:02:40 +0000 (UTC) Subject: Re: issue about booting centos fail with edk2 X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jul 2017 19:00:32 -0000 Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit On 07/31/17 02:27, Zhu Yijun wrote: > 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: No, that's not where the problem is. See below: > start-console-fail.log > FSOpen: Open '\EFI\BOOT\fallback.efi' Success > FSOpen: Open '\EFI\BOOT\fallback.efi' Success > > > Synchronous Exception at 0x00000002384B1104 > PC 0x0002384B1104 > PC 0x0002384A916C > PC 0x0002384CA2D0 > PC 0x00023EEB7DF8 (0x00023EEB1000+0x00006DF8) [ 1] DxeCore.dll > PC 0x00023BD1568C (0x00023BD02000+0x0001368C) [ 2] BdsDxe.dll > PC 0x00023BD03F98 (0x00023BD02000+0x00001F98) [ 2] BdsDxe.dll > PC 0x00023BD05640 (0x00023BD02000+0x00003640) [ 2] BdsDxe.dll > PC 0x00023EEB3704 (0x00023EEB1000+0x00002704) [ 3] DxeCore.dll > PC 0x00023EEB27C8 (0x00023EEB1000+0x000017C8) [ 3] DxeCore.dll > PC 0x00023EEB2024 (0x00023EEB1000+0x00001024) [ 3] DxeCore.dll > [ 1] /root/rpmbuild/BUILD/edk2-2.6.0/Build/ArmVirtQemu-AARCH64/DEBUG_GCC49/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll > [ 2] /root/rpmbuild/BUILD/edk2-2.6.0/Build/ArmVirtQemu-AARCH64/DEBUG_GCC49/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll > [ 3] /root/rpmbuild/BUILD/edk2-2.6.0/Build/ArmVirtQemu-AARCH64/DEBUG_GCC49/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll > > X0 0x00000002384A9000 X1 0x00000002384B2990 X2 0x000000023AAFDF98 X3 0x000000023BFF0018 > X4 0x0000000000000000 X5 0x0000000000000007 X6 0x0000000238533300 X7 0x0000000000000000 > X8 0x000000023C01F548 X9 0x0000000200000000 X10 0x00000002384A8000 X11 0x00000002384C5FFF > X12 0x0000000000000000 X13 0x0000000000000008 X14 0x259511BDAEB1F36C X15 0x1378CC1DF3F5DDBB > X16 0x000000023EEB0BE0 X17 0x0000000000000000 X18 0x0000000000000000 X19 0x0000000000000013 > X20 0x0000000000000000 X21 0x0000000000000000 X22 0x0000000000000000 X23 0x0000000000000000 > X24 0x0000000000000000 X25 0x0000000000000000 X26 0x0000000000000000 X27 0x0000000000000000 > X28 0x0000000000000000 FP 0x000000023EEB0A40 LR 0x00000002384A916C > > V0 0xAFAFAFAFAFAFAFAF AFAFAFAFAFAFAFAF V1 0x63702F6666666666 6666666666666666 > V2 0x40697363732F3340 6567646972622D69 V3 0x0000000000000000 0000000000000000 > V4 0x0000000000000000 0000000000000000 V5 0x4010040140100401 4010040140100401 > V6 0x0000000000000000 0000000000000000 V7 0x0000000000000000 0000000000000000 > V8 0x0000000000000000 0000000000000000 V9 0x0000000000000000 0000000000000000 > V10 0x0000000000000000 0000000000000000 V11 0x0000000000000000 0000000000000000 > V12 0x0000000000000000 0000000000000000 V13 0x0000000000000000 0000000000000000 > V14 0x0000000000000000 0000000000000000 V15 0x0000000000000000 0000000000000000 > V16 0x0000000000000000 0000000000000000 V17 0x0000000000000000 0000000000000000 > V18 0x0000000000000000 0000000000000000 V19 0x0000000000000000 0000000000000000 > V20 0x0000000000000000 0000000000000000 V21 0x0000000000000000 0000000000000000 > V22 0x0000000000000000 0000000000000000 V23 0x0000000000000000 0000000000000000 > V24 0x0000000000000000 0000000000000000 V25 0x0000000000000000 0000000000000000 > V26 0x0000000000000000 0000000000000000 V27 0x0000000000000000 0000000000000000 > V28 0x0000000000000000 0000000000000000 V29 0x0000000000000000 0000000000000000 > V30 0x0000000000000000 0000000000000000 V31 0x0000000000000000 0000000000000000 > > SP 0x000000023EEB0A40 ELR 0x00000002384B1104 SPSR 0x60000205 FPSR 0x00000000 > ESR 0x02000000 FAR 0x1DE7EC7EDBADC0DE > > ESR : EC 0x00 IL 0x1 ISS 0x00000000 > > Stack dump: > 000023EEB0940: 0000C0E000000148 00000002384A9000 00000002384CA254 0000000000000000 > 000023EEB0960: 000000023EEB0BC0 000000023AC006C0 0000F2503EEB0BC0 00000002384B6018 > 000023EEB0980: 000000023EEB0BC0 0000000000000000 000000000000C0E0 0000000000000148 > 000023EEB09A0: 0000000000000148 0000100000020A8C 00000002384B6110 00000002384B6108 > 000023EEB09C0: 00000002384B6100 0000000000000006 00000002384B6058 00000002384B50DF > 000023EEB09E0: 00000002384A9148 0000000000000000 00000002384A9000 00000002384A9000 > 000023EEB0A00: 0000000000000000 00000002398DA518 00000002385375B2 00000002385629A0 > 000023EEB0A20: 000000023854C1C0 00000002398DA518 000000023EEB0BC0 0000000000000000 >> 000023EEB0A40: 000000023EEB0BC0 00000002384CA2D0 000000023AAFDF98 000000023BFF0018 > 000023EEB0A60: 00000002384CA360 000000023EEC8348 00000002385375B0 000000023AAFDF98 > 000023EEB0A80: 000000023EEB0AC0 0000F25038533338 00000002384B6018 0000000000000000 > 000023EEB0AA0: 0000000000000000 0000000238B63D18 0000000000001000 0000000000000000 > 000023EEB0AC0: 000000023BFF0018 00000002398DA518 00000002398CE598 0000000000000000 > 000023EEB0AE0: 0000000000000000 0000000000000000 00000002384C6000 00000000000C99C0 > 000023EEB0B00: 0000000200000001 0000000000000000 000000023AC006C0 11D295625B1B31A1 > 000023EEB0B20: 3B7269C9A0003F8E 0000000000000000 0000000238B63F98 000000163EEB0B68 > ASSERT [ArmCpuDxe] /root/rpmbuild/BUILD/edk2-2.6.0/ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c(271): ((BOOLEAN)(0==1)) This is a guest that you didn't install from installer media. I think you may have gotten the preinstalled disk image from some image provider service. The UEFI boot variable(s) are not set up to boot the CentOS installation, in your nvram / pflash file. In such cases, the "fallback.efi" utility is invoked (called "\EFI\BOOT\BOOTAA64.EFI). Please refer to: https://blog.uncooperative.org/blog/2014/02/06/the-efi-system-partition/ Unfortunately, "fallback.efi" (from the shim package) used to have a few bugs over time and sometimes it would crash. See for example: https://bugzilla.redhat.com/show_bug.cgi?id=1196114 I'm unsure what version of shim / fallback.efi is in the installed CentOS image, but it looks like the same (or another similar) fallback.efi issue to me. In your other log: > start-console-success.log > [Bds]Booting CentOS Linux > FSOpen: Open '\EFI\centos\shim.efi' Success > ... > FSOpen: Open '\EFI\centos\grubaa64.efi' Success fallback.efi is not involved; you have a dedicated UEFI boot option (in pflash) for booting CentOS off the disk image. My take is that you're seeing RHBZ#1196114 (with a CentOS guest). Thanks Laszlo