Thanks Ray Please find attached udk-debugger-trace.log, ...... WELCOME TO EFI WORLD!
Send INIT break packet and try to connect the HOST (Intel(R) UDK Debugger Tool v1.4) ... Received data [ fe 3f 06 00 59 ba ] Request = 0 m_WaitingAckForReset is 0 when INIT_BREAK then I tried to break in frm windbg, which resulted into Halt() called Halt() returning - failed (80000013) at the very end. I also added gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl |FALSE to DuetPkgIa32.dsc when I built firmware this time. Thanks Kan On Mon, May 18, 2015 at 10:22 PM, Ni, Ruiyu <ruiyu...@intel.com> wrote: > Kan, > > Please edit SoftDebugger.ini to set [Debug]/Trace = 0x1f. > > Then send out the C:\Users\<uid>\udk-debugger-trace.log. > > > > Thanks, > Ray > > > > *From:* Kan Qiu [mailto:kan...@osbase.com] > *Sent:* Monday, May 18, 2015 11:49 AM > *To:* edk2-devel@lists.sourceforge.net > *Subject:* Re: [edk2] Debug UEFI driver using EDKII > > > > *Hi Ruiyu,* > > *Thank you so much for responding. I added the following > SOURCE_DEBUG_ENABLE to DuetPkgIa32 and DuetPkg.fdf,* > > *did * > > *build -D SOURCE_DEBUG_ENABLE -p DuetPkg\DuetPkgIa32.dsc -a IA32, * > > *cd DuetPkg* > > *PostBuild.bat IA32* > > *CreateBootDisk.bat usb e: FAT32 IA32* > > *CreateBootDisk.bat usb e: FAT32 IA32 step2* > > *Then boot up the firmware on target machine, it's a HP Compaq dc 7900, > which is has a COM1 port,* > > *connected to host with a Plugable USB Serial Converter. * > > *Host side(which has USB port) is Win7 X64, installed* > > *http://firmware.intel.com/sites/default/files/2013-WW52-UDK.Debugger.Tool-1.4-Windows.zip > <http://firmware.intel.com/sites/default/files/2013-WW52-UDK.Debugger.Tool-1.4-Windows.zip>* > > > and required version of windbg configured at the right COM port > > However, Windbg is never able to get connected when the firmware is > booting at Target and Target screen stuck > > at something like UEFI world..., but firmware without *SOURCE_DEBUG_ENABLE > *boots just fine. > > I have verified that the same cable settings works with Windows debugging > if I boot target to Windows > > and I was able to connect Windows via kernel mode Windbg from host, so > there should be no issue > > with physical cable connection. > > Could you please advise if my settings below are correct ? Also the reason > I use DuetPkg is so that > > I could test with hardware USB device, please let me know if you know of > any other package that works better > > with debugging USB drivers. > > *Thanks* > > *Kan* > > > > > > > > > > > > > > *!ifdef $(SOURCE_DEBUG_ENABLE) > PeCoffExtraActionLib|SourceLevelDebugPkg/Library/PeCoffExtraActionLibDebug/PeCoffExtraActionLibDebug.inf > > DebugCommunicationLib|SourceLevelDebugPkg/Library/DebugCommunicationLibSerialPort/DebugCommunicationLibSerialPort.inf > DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf > ResetSystemLib|PcAtChipsetPkg/Library/ResetSystemLib/ResetSystemLib.inf > LocalApicLib|UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.inf !else > PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf > > DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf > DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf !endif* > > > > > *!ifdef $(SOURCE_DEBUG_ENABLE) [LibraryClasses.common.SEC] > DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf > DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf* > > > > *[LibraryClasses.common.PEIM] > DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf > DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf* > > > > *[LibraryClasses.common.DXE_DRIVER] > DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf > !endif* > > > > > > > > *[LibraryClasses.common.DXE_CORE] > HobLib|MdePkg/Library/DxeCoreHobLib/DxeCoreHobLib.inf > MemoryAllocationLib|MdeModulePkg/Library/DxeCoreMemoryAllocationLib/DxeCoreMemoryAllocationLib.inf > !ifdef $(SOURCE_DEBUG_ENABLE) > DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf > DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf > !endif* > > > > > > > > > > > *[PcdsFixedAtBuild] > gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x0 > gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x0 > gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x0 > gEfiMdeModulePkgTokenSpaceGuid.PcdResetOnMemoryTypeInformationChange|FALSE > !ifdef $(SOURCE_DEBUG_ENABLE) > gPcAtChipsetPkgTokenSpaceGuid.PcdIsaAcpiCom1Enable|FALSE > gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17 > gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x2 !endif* > > *and the following changes to DuetPkg.fdf* > > *!ifndef $(SOURCE_DEBUG_ENABLE)* > > * INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf ## > comment this out to free serial port for debugging !endif* > > > > *!ifndef $(SOURCE_DEBUG_ENABLE) INF > IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf !endif* > > > > From: Ni, Ruiyu <ruiyu.ni@in...> - 2015-05-18 02:21:33 > > *Attachments:* Message as HTML > <https://sourceforge.net/p/edk2/mailman/attachment/734D49CCEBEEF84792F5B80ED585239D0ABAE9B3%40SHSMSX103.ccr.corp.intel.com/1/> > > > Please give a list of detailed steps about what you did to try UDK Debugger. > > > > From: Kan Qiu [mailto:kanqiu@...] > > Sent: Sunday, May 17, 2015 1:43 PM > > To: edk2-devel@... > > Subject: [edk2] Debug UEFI driver using EDKII > > > > Hi I'm new to EDKII. I need to write a UEFI driver and I'm having difficulty > setting up SourceLevelDebugging. I can build DuetPkg and boot up the > firmware, but I'm not able to enable SourceLevelDebug with COM port using > Windbg, I followed > http://firmware.intel.com/sites/default/files/UDK-Debugger-Tool-User-Manual-SR1-v1-91_0.pdf > and incorporated DuetPkg with needed debugger libs. > > Could anyone please advise me or point me a working example of enabling > source level debugging ? > > Thanks > > Kan > > > -- Kan Qiu OSBASE LLC (425)869-6118 (425)503-0125(Cell)
udk-debugger-trace.log
Description: Binary data
------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel