Hi Laszlo and Michael,

I've got it working now. I just tried with a version 0.13.0 of qemu
instead of 2.0.91 and the same setup ran without problem. I have no
idea why it worked with one version and didn't with the other.

By the way, I've got it running on Windows 8.1 instead Windows XP x86
or Windows 7 x64 which are the officially supported versions (as
Michael mentioned above). This fact should give heart to some
unfortunate soul in the future who is struggling on Win 8.1

Thanks a lot to the both of you for your help guys.

-Gurinder

On Fri, Jul 25, 2014 at 10:24 PM, Kinney, Michael D
<[email protected]> wrote:
> Hi,
>
> I have used com0com for several years with no issues for debugging OVMF, so 
> it does seem stable for me.  I normally configure both the host and the 
> target with flow control disabled and the virtual com ports keep up without 
> any issues.
>
> The UDK Debugger User's Manual found at the following link does specify a 
> very specific version of WinDbg.  Please make sure you are using that 
> specific WinDbg version and retry.
>
>         http://uefidk.com/file/udkdebuggertoolusermanual-sr1v110pdf
>
> Using the Intel® UDK Debugger Tool on a Windows platform requires a host 
> machine configured with:
>          Microsoft Windows XP*, 32-bit platform with Service Pack 3 (SP3) or 
> the Microsoft Win7* 64-bit platform
>          Microsoft Windows Debug Tool* (WinDbg) 6.11.0001.404 X86. WinDbg is 
> available for download at: 
> http://msdl.microsoft.com/download/symbols/debuggers/dbg_x86_6.11.1.404.msi
>          Intel® UDK Debugger Tool, which adds functionality to WinDbg, is 
> available for download at: www.intel.com/udk.
>
> Thanks,
>
> Mike
>
> -----Original Message-----
> From: Laszlo Ersek [mailto:[email protected]]
> Sent: Friday, July 25, 2014 7:05 AM
> To: [email protected]
> Subject: Re: [edk2] Problem Debugging with UDK/com0com
>
> On 07/25/14 12:10, Gurinder Singh wrote:
>> Hi guys,
>>
>> I'm trying to debug a UEFI application by running it under OVMF and
>> connecting to it over serial port with Intel UDK. I've created virtual
>> serial ports using com0com. OVMF is running in Qemu and connected to
>> one end of the port pair and WinDbg/UDK is connected to the other end.
>>
>> My problem is that the serial port communication between debugger and
>> OVMF starts okay but then gets stucks at  "m_WaitingAckForReset is 0
>> when INIT_BREAK". I can't seem to get past this point.
>>
>> My environment details are:
>>
>> OVMF built with -D SOURCE_DEBUG_ENABLE -D DEBUG_ON_SERIAL_PORT -D 
>> NETWORK_ENABLE
>> qemu is x64 version is 2.0.91
>> OS is Windows 8.1 x64
>> UDK version is 1.4
>> WinDbg is x86 debugger from Windows SDK 8.1 (UDK requires x86 WinDbg
>> even if you're on an x64 OS)
>>
>>
>> Details of my virtual port pair are:
>>
>> BaudRate: 115200
>> Data bits: 8
>> Parity: none
>> Stop bits: 1
>> FlowControl: Xoff/Xon
>>
>>
>> If anyone can spot what I'm doing wrong please help me.
>
> I have no clue what com0com is. But I tried a very similar setup
> sometime earlier, and it didn't work. IIRC I abandoned the idea saying
> that the virtual serial ports' timing was not accurate enough for the
> debugger tool and the debug agent.
>
> http://thread.gmane.org/gmane.comp.bios.tianocore.devel/2585/focus=2598
>
> (Search it for "m_WaitingAckForReset is 0 when INIT_BREAK"!)
>
> However, you *can* debug your UEFI application running on OVMF and QEMU,
> with gdb. Refer to the following:
>
> http://thread.gmane.org/gmane.comp.bios.tianocore.devel/7424
>
> Thanks
> Laszlo
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to