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 ED4E221E11D64 for ; Wed, 9 Aug 2017 04:00:30 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 94DD5C047B7F; Wed, 9 Aug 2017 11:02:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 94DD5C047B7F Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=lersek@redhat.com Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-102.phx2.redhat.com [10.3.116.102]) by smtp.corp.redhat.com (Postfix) with ESMTP id C5000934D8; Wed, 9 Aug 2017 11:02:47 +0000 (UTC) To: wang xiaofeng , Michael Kinney References: <622959b9.707d.15dc5ea41ee.Coremail.winggundum82@163.com> Cc: "edk2-devel@lists.01.org" From: Laszlo Ersek Message-ID: Date: Wed, 9 Aug 2017 13:02:46 +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: <622959b9.707d.15dc5ea41ee.Coremail.winggundum82@163.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Wed, 09 Aug 2017 11:02:48 +0000 (UTC) Subject: Re: Qestion about how to debug OVMF with UDT on QEMU 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, 09 Aug 2017 11:00:31 -0000 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 08/09/17 09:34, wang xiaofeng wrote: > Hello All, > I try to debug OVMF with UDT on QEMU in windows. > I build OVMF on windows 7 with VS2013 . And also runs it in QEMUWin32. > I add DEFINE SOURCE_DEBUG_ENABLE = TRUE in ovmf.dsc and build a new bios. From makefile it seems this feature is enabled for OVMF SecMain > > > $(BIN_DIR)\SourceLevelDebugPkg\Library\PeCoffExtraActionLibDebug\PeCoffExtraActionLibDebug\OUTPUT\PeCoffExtraActionLib.lib \ > $(BIN_DIR)\SourceLevelDebugPkg\Library\DebugAgent\SecPeiDebugAgentLib\OUTPUT\SecPeiDebugAgentLib.lib \ > > > But how can I link it to the local Windows UDT(which I have tested works for real hardware bios by serail port )? > Another question is why OVMF fdf don;t include DebugAgentPei.inf? > Or I have to enable at least 1 or 2 VM for this task? > Thanks in advance! In the past I've tried to set up the UDK debugger between two virtual machines, using a UNIX domain socket to connect their serial ports. It didn't work, the debugger protocol kept falling apart. I suspected that the emulated serial ports didn't follow the timings of physical serial ports closely enough. So, I never use SOURCE_DEBUG_ENABLE, but I think others on the list may have gotten it to work? Mike perhaps? Thanks Laszlo