<div dir="ltr">Hi , <br><br>I'm want to do source level debugging on target ( minnowMax board ) with ajays 2.0 debug device but I can't build firmware image with SourceLevelDebugPkg which will work correctly. <br><br><b>For source level debugging I use: </b><br><ul><li>UDK debuger tool and UDK debuger tool user manuel (<a href="https://firmware.intel.com/develop/intel-uefi-tools-and-utilities/intel-uefi-development-kit-debugger-tool">https://firmware.intel.com/develop/intel-uefi-tools-and-utilities/intel-uefi-development-kit-debugger-tool</a> ) </li><li>WinDbg and usb2dbg.sys --> version 6.3.9600.17298 </li><li>Development tree for building firmwares versions: 0.76, 0.77, 0.78</li></ul><div><b>Logs:</b> <br><ul><li>version minnowmax 0.76</li><ul><li>when debug cable is not plug in and Udk debuger tool is not started </li></ul></ul></div><div><div>>>>>SecStartup</div><div><br></div><div>Mono Status Code PEIM Loaded</div><div>Install PPI: 1F4C6F90-B06B-48D8-A201-BAE5F1CD7D56</div><div>Install PPI: AB294A92-EAF5-4CF3-AB2B-2D4BED4DB63D</div><div>Register PPI Notify: F894643D-C449-42D1-8EA8-85BDD8C65BDE</div><div>GGC: 0x00000210 GMSsize:0x00000002</div><div>I'm Minnow2!</div><div>CheckCfioPnpSettings: CFIO Pnp Settings Disabled</div><div>Setting BootMode to BOOT_WITH_FULL_CONFIGURATION</div><div>Setup MMIO size ... </div><div><br></div><div>Install PPI: E767BF7F-4DB6-5B34-1011-4FBE4CA7AFD2</div><div>PROGRESS CODE: V3020003 I0</div><div>Loading PEIM at 0x000FFFDE8A0 EntryPoint=0x000FFFDEB00 SeCUma.efi</div><div>PROGRESS CODE: V3020002 I0</div><div>POSTCODE=<6543></div><div>Install PPI: CBD86677-362F-4C04-9459-A741326E05CF</div><div>Info: SeC PPI load sucessfully</div><div>PROGRESS CODE: V3020003 I0</div><div>Loading PEIM at 0x000FFFE03A0 EntryPoint=0x000FFFE0600 DebugAgentPei.efi</div><div>PROGRESS CODE: V3020002 I0</div><div>POSTCODE=<F5BD></div><div>Install PPI: 3CD652B4-6D33-4DCE-89DB-83DF9766FCCA</div><div>Register PPI Notify: F894643D-C449-42D1-8EA8-85BDD8C65BDE</div><div>TimerFrequency = 0x369E99</div><div>TimerStartValue = 0x0</div><div>TimerEndValue = 0xFFFFFF</div><div>UsbDbg: Start EHCI debug port initialization!</div><div>USB Debugging__Function:InitializeUsbDebugHardware__Need to reset the host controller.USB Debugging__Function:InitializeUsbDebugHardware__Reset the host controller </div><div> PDB = c:\minmax076\Build\Vlv2TbltDevicePkg\DEBUG_VS2008x86\IA32\SourceLevelDebugPkg\DebugAgentPei\DebugAgentPei\DEBUG\DebugAgentPei.pdb</div><div>PROGRESS CODE: V3020003 I0</div><div>Loading PEIM at 0x000FFFE7CA0 EntryPoint=0x000FFFE7F00 PchEarlyInitPeim.efi</div><div>PROGRESS CODE: V3020002 I0</div><div>POSTCODE=<45FF></div><div>PROGRESS CODE: V3020003 I0</div><div>Loading PEIM at 0x000FFFEB7A0 EntryPoint=0x000FFFEBA00 MemoryInit.efi</div><div>PROGRESS CODE: V3020002 I0</div><div>POSTCODE=<43B3></div><div>Reg_EFF_DualCH_EN = 0x200301C0.</div><div>Buffer size brefore add 1673, after adjust 1680.</div><div>MRC Parameters not valid. status is 8000000E</div><div>MmioConf0[0xFED0E220], MmioPadval[0xFED0E228]</div><div>Gpio_S5_5 value is 0x3</div><div>Determine the memory size is [2GB]</div><div>DRAM_Speed is 1, EccEnabled = 1</div><div>MemoryInit for Minnow2 </div><div>tCL = 11</div><div>tRP_tRCD = 11</div><div>tWR = 12</div><div>tWTR = 6</div><div>tRRD = 6</div><div>tRTP = 6</div><div>tFAW = 32</div><div>PROGRESS CODE: V51001 I0</div><div>POSTCODE=<0024></div><div>PROGRESS CODE: V51002 I0</div><div>POSTCODE=<0025></div><div>PROGRESS CODE: V51003 I0</div><div>POSTCODE=<0027></div><div>Configuring Memory...</div><div>Current function is McEnableHPET</div><div> Current function is ClearSelfRefresh</div><div> Current function is OemTrackInitComplete</div><div> Current function is ProgSFRVolSel</div><div> Current function is ProgDdrTimingControl</div><div> Current function is ProgBunit</div><div> Current function is ProgMpllSetup</div><div> Current function is ProgStaticDdrSetup</div><div> Current function is ProgStaticInitPerf</div><div> Current function is ProgStaticPwrClkGating</div><div> Current function is DUnitBlMode</div><div> Current function is ControlDDR3Reset</div><div> Current function is EnableVreg</div><div> Current function is ProgHmc</div><div> Current function is ProgReadWriteFifoPtr</div><div> Current function is ProgComp</div><div> Current function is SetIOBUFACT</div><div> Current function is ProgDdecodeBeforeJedec</div><div> Current function is PerformDDR3Reset</div><div> Current function is PreJedecInit</div><div> Current function is PerformJedecInit</div><div> Current function is SetDDRInitializationComplete</div><div> Current function is PerformJedecInit</div><div> Current function is DisableRank2RankSwitching</div><div> Current function is MMRC_RcvnTrain</div><div> ReceiveEnable: ch 0 </div><div>ReceiveEnableEntryHooks: ch 0 </div><div>DecodeAndExeRegAssignment: ch 0 </div><div>CPGC_Setup: ch 0 rk 0</div><div>CPGC_S_SetupSeq: ch 0 </div><div>GetSetDataSignal - RCVN_MIN: ch 0 </div><div>GetSetDataSignal - DELAYS_RCVN_DEL: ch 0 </div><div>GetSetDataSignal - RCVN_MIN: ch 0 </div><div>GetSetDataSignal - DELAYS_RCVN_DEL: ch 0 </div><div>GetSetDataSignal - RCVN_MIN: ch 0 </div><div>GetSetDataSignal - DELAYS_RCVN_DEL: ch 0 </div><div>GetSetDataSignal - RCVN_MIN: ch 0 </div><div>GetSetDataSignal - DELAYS_RCVN_DEL: ch 0 </div><div>GetSetDataSignal - RCVN_MIN: ch 0 </div><div>GetSetDataSignal - DELAYS_RCVN_DEL: ch 0 </div><div>GetSetDataSignal - RCVN_MIN: ch 0 </div><div>GetSetDataSignal - DELAYS_RCVN_DEL: ch 0 </div><div>GetSetDataSignal - RCVN_MIN: ch 0 </div><div>GetSetDataSignal - DELAYS_RCVN_DEL: ch 0 </div><div>GetSetDataSignal - RCVN_MIN: ch 0 </div><div>GetSetDataSignal - DELAYS_RCVN_DEL: ch 0 </div><div>JedecCmd - JEDEC_PRECHARGEALL: ch 0 rk 0 </div><div>GetSetDataSignal - strob 0: ch 0 rk 0 </div><div>GetSetDataSignal - strob 1: ch 0 rk 0 </div><div>GetSetDataSignal - strob 2: ch 0 rk 0 </div><div>GetSetDataSignal - strob 3: ch 0 rk 0 </div><div>GetSetDataSigna</div></div><ul><ul><li> when debug cable is plug in and and Udk debuger tool is started </li></ul></ul>>>>>SecStartup<br><ul><ul></ul></ul>Mono Status Code PEIM Loaded<br><ul><ul></ul></ul>Install PPI: 1F4C6F90-B06B-48D8-A201-BAE5F1CD7D56<br><ul><ul></ul></ul>Install PPI: AB294A92-EAF5-4CF3-AB2B-2D4BED4DB63D<br><ul><ul></ul></ul>Register PPI Notify: F894643D-C449-42D1-8EA8-85BDD8C65BDE<br><ul><ul></ul></ul>GGC: 0x00000210 GMSsize:0x00000002<br><ul><ul></ul></ul>I'm Minnow2!<br><ul><ul></ul></ul>CheckCfioPnpSettings: CFIO Pnp Settings Disabled<br><ul><ul></ul></ul>Setting BootMode to BOOT_WITH_FULL_CONFIGURATION<br><ul><ul></ul></ul>Setup MMIO size ... <br><ul><ul></ul></ul><br><ul><ul></ul></ul>Install PPI: E767BF7F-4DB6-5B34-1011-4FBE4CA7AFD2<br><ul><ul></ul></ul>PROGRESS CODE: V3020003 I0<br><ul><ul></ul></ul>Loading PEIM at 0x000FFFDE8A0 EntryPoint=0x000FFFDEB00 SeCUma.efi<br><ul><ul></ul></ul>PROGRESS CODE: V3020002 I0<br><ul><ul></ul></ul>POSTCODE=<6543><br><ul><ul></ul></ul>Install PPI: CBD86677-362F-4C04-9459-A741326E05CF<br><ul><ul></ul></ul>Info: SeC PPI load sucessfully<br><ul><ul></ul></ul>PROGRESS CODE: V3020003 I0<br><ul><ul></ul></ul>Loading PEIM at 0x000FFFE03A0 EntryPoint=0x000FFFE0600 DebugAgentPei.efi<br><ul><ul></ul></ul>PROGRESS CODE: V3020002 I0<br><ul><ul></ul></ul>POSTCODE=<F5BD><br><ul><ul></ul></ul>Install PPI: 3CD652B4-6D33-4DCE-89DB-83DF9766FCCA<br><ul><ul></ul></ul>Register PPI Notify: F894643D-C449-42D1-8EA8-85BDD8C65BDE<br><ul><ul></ul></ul>TimerFrequency = 0x369E99<br><ul><ul></ul></ul>TimerStartValue = 0x0<br><ul><ul></ul></ul>TimerEndValue = 0xFFFFFF<br><ul><ul></ul></ul>UsbDbg: Start EHCI debug port initialization!<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Need to reset the host controller.USB Debugging__Function:InitializeUsbDebugHardware__Reset the host controller <br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Reset the debug port.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Enable Usb Debug Port Capability.<br><ul><ul></ul></ul> PDB = c:\minmax076\Build\Vlv2TbltDevicePkg\DEBUG_VS2008x86\IA32\SourceLevelDebugPkg\DebugAgentPei\DebugAgentPei\DEBUG\DebugAgentPei.pdb<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Reset the debug port.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Enable Usb Debug Port Capability.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Reset the debug port.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Enable Usb Debug Port Capability.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Reset the debug port.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Enable Usb Debug Port Capability.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Reset the debug port.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Enable Usb Debug Port Capability.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Reset the debug port.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Enable Usb Debug Port Capability.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Reset the debug port.<br><ul><ul></ul></ul>USB Debugging__Function:InitializeUsbDebugHardware__Enable Usb Debug Port Capability.<div><br></div><div><br></div><div><ul><li>verzion minnowMax 0.78 ( when is debug cable is plug in ) </li></ul><div><div>>>>>SecStartup</div><div><br></div><div>Mono Status Code PEIM Loaded</div><div>Install PPI: 1F4C6F90-B06B-48D8-A201-BAE5F1CD7D56</div><div>Install PPI: AB294A92-EAF5-4CF3-AB2B-2D4BED4DB63D</div><div>Register PPI Notify: F894643D-C449-42D1-8EA8-85BDD8C65BDE</div><div>GGC: 0x00000210 GMSsize:0x00000002</div><div>I'm Minnow2!</div><div>CheckCfioPnpSettings: CFIO Pnp Settings Disabled</div><div>Setting BootMode to BOOT_WITH_FULL_CONFIGURATION</div><div>Setup MMIO size ... </div><div><br></div><div>Install PPI: E767BF7F-4DB6-5B34-1011-4FBE4CA7AFD2</div><div>PROGRESS CODE: V3020003 I0</div><div>Loading PEIM at 0x000FFFDEDA0 EntryPoint=0x000FFFDF000 SeCUma.efi</div><div>PROGRESS CODE: V3020002 I0</div><div>POSTCODE=<6543></div><div>Install PPI: CBD86677-362F-4C04-9459-A741326E05CF</div><div>Info: SeC PPI load sucessfully</div><div>PROGRESS CODE: V3020003 I0</div><div>Loading PEIM at 0x000FFFE08A0 EntryPoint=0x000FFFE0B00 DebugAgentPei.efi</div><div>PROGRESS CODE: V3020002 I0</div><div>POSTCODE=<F5BD></div><div>Install PPI: 3CD652B4-6D33-4DCE-89DB-83DF9766FCCA</div><div>Register PPI Notify: F894643D-C449-42D1-8EA8-85BDD8C65BDE</div><div>USB Debug Port: TimerFrequency = 0x369E99</div><div>USB Debug Port: TimerStartValue = 0x0</div><div>USB Debug Port: TimerEndValue = 0xFFFFFF</div><div>UsbDbg: Start EHCI debug port initialization!</div><div>UsbDbg: Need to reset the host controller. ControlStatus = 00000000</div><div>UsbDbg: Reset the host controller.</div><div>UsbDbg: Failed, please check if USB debug cable is plugged into EHCI debug port correctly!</div><div> PDB = c:\minnowboard078\Build\Vlv2TbltDevicePkg\DEBUG_VS2008x86\IA32\SourceLevelDebugPkg\DebugAgentPei\DebugAgentPei\DEBUG\DebugAgentPei.pdb</div><div>PROGRESS CODE: V3020003 I0</div><div>Loading PEIM at 0x000FFFE7F20 EntryPoint=0x000FFFE8180 PchEarlyInitPeim.efi</div><div>PROGRESS CODE: V3020002 I0</div><div>POSTCODE=<45FF></div><div>PROGRESS CODE: V3020003 I0</div><div>Loading PEIM at 0x000FFFEBA20 EntryPoint=0x000FFFEBC80 MemoryInit.efi</div><div>PROGRESS CODE: V3020002 I0</div><div>POSTCODE=<43B3></div><div>Reg_EFF_DualCH_EN = 0x200301C0.</div><div>Buffer size brefore add 165B, after adjust 1668.</div><div>MRC Parameters not valid. status is 8000000E</div><div>Set MRC paramaters for MinnowBoard Max. </div><div>MmioConf0[0xFED0E220], MmioPadval[0xFED0E228]</div><div>Gpio_S5_5 value is 0x3</div><div>Determine the memory size is [2GB]</div><div>DRAM_Speed is 1066MHz!</div><div>DRAM_Speed is type 1, EccEnabled = 0</div><div>tCL = 7</div><div>tRP_tRCD = 7</div><div>tWR = 8</div><div>tWTR = 5</div><div>tRRD = 6</div><div>tRTP = 4</div><div>tFAW = 28</div><div>PROGRESS CODE: V51001 I0</div><div>POSTCODE=<0024></div><div>PROGRESS CODE: V51002 I0</div><div>POSTCODE=<0025></div><div>PROGRESS CODE: V51003 I0</div><div>POSTCODE=<0027></div><div>Configuring Memory...</div><div>CheckMicrocodeRevision = 00000321, CpuId = 00030673</div><div>####: ConfigureMemory() Entry</div><div>Current function is McEnableHPET</div><div> Current function is ClearSelfRefresh</div><div> Current function is OemTrackInitComplete</div><div> Current function is ProgSFRVolSel</div><div> Current function is ProgDdrTimingControl</div><div> Current function is ProgBunit</div><div> Current function is ProgMpllSetup</div><div> Current function is ProgStaticDdrSetup</div><div> Current function is ProgStaticInitPerf</div><div> Current function is ProgStaticPwrClkGating</div><div> Current function is DUnitBlMode</div><div> Current function is ControlDDR3Reset</div><div> Current function is EnableVreg</div><div> Current function is ProgHmc</div><div> Current function is ProgReadWriteFifoPtr</div><div> Current function is ProgComp</div><div> Current function is SetIOBUFACT</div><div> Current function is ProgDdecodeBeforeJedec</div><div> Current function is PerformDDR3Reset</div><div> Current function is PreJedecInit</div><div> Current function is PerformJedecInit</div><div> Current function is SetDDRInitializationComplete</div><div> Current function is PerformJedecInit</div><div> Current function is DisableRank2RankSwitching</div><div> Current function is MMRC_RcvnTrain</div><div> Current function is MMRC_WrLvlFineTrain</div><div> Current function is MMRC_WrLvlCoarseTrain</div><div> Current function is MMRC_RdVrefTrain<br><br></div><div>I try to do source level debugging on three version, because I think maybe is some improvement but it is same in source level debugging. <br><b>Problem:</b> I'm think that in DebugComunicationLibUsb library is some kind of bug. May somebody look DebugCommunicationLibUsb library and try to do source level debugging with usb. Why firmware stoped in MemoryInit ? </div><div><br></div><div>P.S I send in attacment PlatformPkg.fdf and PlatformPkgIA32 from Vlv2TbltDevicePkg package. In PlatformPkg.fdf I increase FV Recovery and decrease FV Recovery2. May somebody look this files and tell me if I do something wrong ? </div></div><div><br></div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:Verdana,sans-serif;font-size:12.8000001907349px">Best regards</span><span style="background-color:rgb(255,255,255)"><span style="font-family:'comic sans ms',sans-serif">,<br><span></span><br></span></span></div><div style="margin-left:40px"><font face="comic sans ms,sans-serif"><span style="background-color:rgb(166,77,121)"><span style="background-color:rgb(255,255,255)">Anteja Vuk-Maček</span><span style="background-color:rgb(243,243,243)"><span></span></span><span style="background-color:rgb(243,243,243)"><span></span></span></span></font></div></div></div></div></div>
</div></div>