>> On Jun 13, 2015, at 9:38 AM, Eric Wittmayer <e...@frescologic.com> wrote: >> >> Hello EDK developers, >> I'm looking for suggestions on the easiest development setup for a USB 3 >> device Dxe driver. Ideally, I'd prefer a virtualized on a windows host that >> lets me pass through the USB3 device to the UEFI guest. >> I have been using Duet and can build and run a basic driver that will start >> on my device. I haven't been able to get debug output using the DEBUG macro >> from my driver. I check DebugPrintEnabled ( ) and DebugCodeEnabled ( ) in >> my driver and I can see they are both enabled so I'm not sure why I don't >> see output from DEBUG. >> I would also like to see the debug output from the USB stack. Is that >> possible with Duet? >> > >Eric, > >I?m not sure what Duet does? But if you add the -y build.log (or --report-file=build.log) to the build command the log file will show you what instance of the DebugLib is in use. You can also see the PCD settings, and other useful information about all the drivers.
Andrew, here is the build report for my driver. Is the default target for debug output the serial port or the console and how do I change it? Thanks, Eric >=========================================================================== ===========================================< Module Summary Module Name: FOneDxe Module INF Path: FOneDxe\FOneDxe.inf File GUID: b336c0c0-0ea9-11e5-af3c-74d435885aa3 Size: 0x42A0 (16.66K) Build Time Stamp: 1969-12-31 16:00:00 Driver Type: 0x7 (DRIVER) ============================================================================ ============================================ >--------------------------------------------------------------------------- -------------------------------------------< PCD ---------------------------------------------------------------------------- -------------------------------------------- gEfiMdePkgTokenSpaceGuid PcdVerifyNodeInList : FLAG (BOOLEAN) = 0 PcdDriverDiagnosticsDisable : FLAG (BOOLEAN) = 0 PcdComponentNameDisable : FLAG (BOOLEAN) = 0 PcdDriverDiagnostics2Disable : FLAG (BOOLEAN) = 0 PcdComponentName2Disable : FLAG (BOOLEAN) = 0 PcdUgaConsumeSupport : FLAG (BOOLEAN) = 1 PcdMaximumDevicePathNodeCount : FIXED (UINT32) = 0 *P PcdDebugPrintErrorLevel : FIXED (UINT32) = 0x900805C3 DEC DEFAULT = 0x80000000 PcdDebugClearMemoryValue : FIXED (UINT8) = 0xAF *P PcdDebugPropertyMask : FIXED (UINT8) = 0x7 DEC DEFAULT = 0 PcdFixedDebugPrintErrorLevel : FIXED (UINT32) = 0xFFFFFFFF *P PcdReportStatusCodePropertyMask : FIXED (UINT8) = 0x7 DEC DEFAULT = 0 PcdMaximumLinkedListLength : FIXED (UINT32) = 1000000 PcdMaximumAsciiStringLength : FIXED (UINT32) = 1000000 PcdMaximumUnicodeStringLength : FIXED (UINT32) = 1000000 PcdUefiLibMaxPrintBufferSize : FIXED (UINT32) = 320 <--------------------------------------------------------------------------- -------------------------------------------> >--------------------------------------------------------------------------- -------------------------------------------< Library ---------------------------------------------------------------------------- -------------------------------------------- c:\src\uefi\edk2\MdePkg\Library\BasePrintLib\BasePrintLib.inf {PrintLib} c:\src\uefi\edk2\MdePkg\Library\BaseDebugPrintErrorLevelLib\BaseDebugPrintEr rorLevelLib.inf {DebugPrintErrorLevelLib} c:\src\uefi\edk2\MdeModulePkg\Library\DxeReportStatusCodeLib\DxeReportStatus CodeLib.inf {ReportStatusCodeLib} c:\src\uefi\edk2\MdePkg\Library\BasePcdLibNull\BasePcdLibNull.inf {PcdLib} c:\src\uefi\edk2\IntelFrameworkModulePkg\Library\PeiDxeDebugLibReportStatusC ode\PeiDxeDebugLibReportStatusCode.inf {DebugLib} c:\src\uefi\edk2\MdePkg\Library\UefiDevicePathLib\UefiDevicePathLib.inf {DevicePathLib} c:\src\uefi\edk2\MdePkg\Library\BaseLib\BaseLib.inf {BaseLib} c:\src\uefi\edk2\MdePkg\Library\BaseMemoryLib\BaseMemoryLib.inf {BaseMemoryLib} c:\src\uefi\edk2\MdePkg\Library\UefiMemoryAllocationLib\UefiMemoryAllocation Lib.inf {MemoryAllocationLib} c:\src\uefi\edk2\MdePkg\Library\UefiBootServicesTableLib\UefiBootServicesTab leLib.inf {UefiBootServicesTableLib: C = UefiBootServicesTableLibConstructor} c:\src\uefi\edk2\MdePkg\Library\UefiRuntimeServicesTableLib\UefiRuntimeServi cesTableLib.inf {UefiRuntimeServicesTableLib: C = UefiRuntimeServicesTableLibConstructor} c:\src\uefi\edk2\MdePkg\Library\UefiDriverEntryPoint\UefiDriverEntryPoint.in f {UefiDriverEntryPoint: Depex = gEfiBdsArchProtocolGuid AND gEfiCpuArchProtocolGuid AND gEfiMetronomeArchProtocolGuid AND gEfiMonotonicCounterArchProtocolGuid AND gEfiRealTimeClockArchProtocolGuid AND gEfiResetArchProtocolGuid AND gEfiRuntimeArchProtocolGuid AND gEfiSecurityArchProtocolGuid AND gEfiTimerArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid AND gEfiVariableArchProtocolGuid AND gEfiWatchdogTimerArchProtocolGuid } c:\src\uefi\edk2\MdePkg\Library\UefiLib\UefiLib.inf {UefiLib: C = UefiLibConstructor} <--------------------------------------------------------------------------- -------------------------------------------> ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel