public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "wang xiaofeng" <winggundum82@163.com>
To: "Laszlo Ersek" <lersek@redhat.com>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>,
	 "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: Qestion about how to debug OVMF with UDT on QEMU
Date: Thu, 10 Aug 2017 13:50:27 +0800 (CST)	[thread overview]
Message-ID: <5399597d.443a.15dcab1aa07.Coremail.winggundum82@163.com> (raw)
In-Reply-To: <077448df-35eb-47c9-3fe7-09d6fe921f9a@redhat.com>

HI Michael,
   I have tried your suggestion. ttermpro.exe shows connection refused in my Win7 after command "start "Monitor" /B %TERA_TERM_PATH% localhost:20717 /nossh"
  the tool also cannot work lonely.
   Any other software or configuration should I apply?
  Thanks!








At 2017-08-10 03:37:01, "Laszlo Ersek" <lersek@redhat.com> wrote:
>On 08/09/17 20:21, Kinney, Michael D wrote:
>> Laszlo,
>> 
>> I works really well for me using QEMU on Windows.
>> 
>> * Build OVMF setting -D SOURCE_DEBUG_ENABLE and -D DEBUG_ON_SERIAL_PORT.
>> 
>> * Configure The UDK Debugger SoftDebugger.ini file to use TCP port 20716
>> 
>>   [Debug Port]
>>   Channel = TCP
>>   Server = localhost
>>   Port = 20716
>> 
>> * Configure QEMU so the monitor and serial port 
>>   are redirected to a tcp ports 20717 and 20716.
>> 
>>   -monitor tcp:localhost:20717,server
>>   -serial  tcp:localhost:20716,server
>> 
>> I use a batch file to launch the UDK debugger and
>> and terminal emulators immediately before running
>> QEMU because the tcp server in QEMU will
>> timeout of a connect does not happen quickly.
>> 
>>   start "Monitor" /B "c:\Program Files (x86)\teraterm\ttermpro.exe" localhost:20717 /nossh
>>   start "Debugger" /B "C:\Program Files (x86)\Intel\Intel(R) UEFI Development Kit Debugger Tool\eXdi.exe" /LaunchWinDbg
>>   start "Console" /B "c:\Program Files (x86)\teraterm\ttermpro.exe" localhost:20715 /nossh
>> 
>>   start "QEMU" /B "%QEMU_PATH%\qemu-system-i386w.exe" ^
>>   -machine q35,smm=on,accel=tcg -cpu Nehalem ^
>>   -global ICH9-LPC.disable_s3=1 ^
>>   -drive if=pflash,format=raw,unit=0,file=%EDKII_BUILD_OUTPUT%\FV\OVMF_CODE.fd,readonly=on ^
>>   -drive if=pflash,format=raw,unit=1,file=%EDKII_BUILD_OUTPUT%\FV\OVMF_VARS.fd ^
>>   -monitor tcp:localhost:20717,server ^
>>   -serial  tcp:localhost:20716,server
>> 
>> Since the serial connections are redirected to tcp ports
>> on the localhost, this actually provide an excellent
>> UDK Debugger experience.
>
>Thanks for the writeup. :) Maybe we should put this in the wiki
>(although I'm completely aware of how I would react if this was
>suggested to me in response to an email of mine :) )
>
>And, perhaps I should give this another try sometime :)
>
>Thank you!
>Laszlo
\x16&#65533;&

      reply	other threads:[~2017-08-10  5:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-09  7:34 Qestion about how to debug OVMF with UDT on QEMU wang xiaofeng
2017-08-09 11:02 ` Laszlo Ersek
2017-08-09 18:21   ` Kinney, Michael D
2017-08-09 19:37     ` Laszlo Ersek
2017-08-10  5:50       ` wang xiaofeng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5399597d.443a.15dcab1aa07.Coremail.winggundum82@163.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox