From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 2D42821951CB9 for ; Wed, 26 Apr 2017 12:16:04 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Apr 2017 12:16:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,255,1488873600"; d="scan'208";a="253852222" Received: from saipraneeth.sc.intel.com ([143.183.140.145]) by fmsmga004.fm.intel.com with ESMTP; 26 Apr 2017 12:16:03 -0700 Message-ID: <1493233951.14715.6.camel@intel.com> From: Sai Praneeth Prakhya To: Jordan Justen Cc: Laszlo Ersek , "edk2-devel@lists.01.org" Date: Wed, 26 Apr 2017 12:12:31 -0700 In-Reply-To: <149307459156.29807.2877695759233240338@jljusten-skl> References: <94f3fa66-b40b-44ba-8b73-b2a9f58b3ede@redhat.com> <149307459156.29807.2877695759233240338@jljusten-skl> X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Subject: Re: Unable to boot OVMF on qemu-x86_64 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: Wed, 26 Apr 2017 19:16:04 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Mon, 2017-04-24 at 15:56 -0700, Jordan Justen wrote: > On 2017-04-24 13:41:50, Laszlo Ersek wrote: > > On 04/18/17 07:29, Prakhya, Sai Praneeth wrote: > > > Hi All, > > > > > > I am facing an issue booting OVMF on qemu, could you please help me? > > > I have cloned EDKII, and built OVMF for X64 using GCC5. I have > > > followed the steps given at https://wiki.ubuntu.com/UEFI/EDK2. > > > > "last edited 2012-11-16 20:22:59" > > > > > Then I > > > have used qemu-system-x86_64 to boot OVMF, but it fails, I don't see > > > anything on tty0 of qemu. > > Did you build with "-DDEBUG_ON_SERIAL_PORT=TRUE" to enable the debug > to go to the serial port? > > Personally, I'd recommend *not* using DEBUG_ON_SERIAL_PORT, and > instead of looking at tty0, add this to the qemu command line: > > -debugcon file:debug.log -global isa-debugcon.iobase=0x402 > > Then debug.log will contain the debug messages. > > (BTW, thanks Laszlo for implementing this! :) Sorry! for the late reply and thanks a lot for responding. Yes, I have enabled "-DDEBUG_ON_SERIAL_PORT=TRUE" but thanks for letting me know, I will use the debug.log method. > > > > When I tried the same by changing to IA32 > > > it seems working. So, could anyone please let me know what I am > > > missing or maybe someone give it a try and see it it's reproducible > > > or not... > > > I am using Ubuntu 15.04 as my build system. > > > > Please try the instructions given under "Build Scripts" in > > "OvmfPkg/README". (CC Jordan) > Sure, I actually tried those and they work :) The issue, I think is related to my specific dev machine setup (which runs Ubuntu 15.04). Because, on two different machines running Ubuntu 16.04, I was able to build and boot OVMF successfully on qemu (both x86-64 and 32-bit) and the same image boots on my dev machine as well. I see the problem *only* when OVMF is built on my dev machine. So, I will try to figure it out. But, thanks a lot for the suggestions :) Regards, Sai > Yeah. This is more up to date than the Ubuntu wiki. It also has the > debugcon info... > > -Jordan