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

Reply via email to