lm及观察加载的Modules

2024.04.11

美美的模块列表,除了第一、三、四需手动加载符号,其余的模块均由NDB自动加载。


2024.05.05
继续深挖下去,其实还有一些modules没有被列出来:

学习观察dblk时发现EFI_BLOCK_READ 没有符号,这应该有问题:

找了好一阵,终于想起前些天追查到的lm的新缺失,按地址应该是 NvmExpressDxe:
参阅:NDB lm命令实现的猜想

Bingo, so happy with the powerful NDB.

修改NDB加载的脚本文件,添加手动加载部分:

.logopen /t d:\Gedu\uefi\log\uefi.txt
.sympath D:\Gedu\edk2-yourland2024\workspace\efisym
.srcpath D:\Gedu\edk2-yourland2024
*.srcpath d:\Gedu\uefi
.reload ArmPlatformPrePiUniCore.dll=0`00201000,0`A000; x ArmPlatformPrePiUniCore!_ModuleEntryPoint
.reload UiApp.dll=0`E9E74000,0`2A600; x UiApp!_ModuleEntryPoint
.reload Shell.dll=0`e9c62000,0`10e000; x Shell!_ModuleEntryPoint
.reload SdhciHostDxe.dll=00000000`ea6ff000,0`8000; x SdhciHostDxe!_ModuleEntryPoint
.reload MmcDxe.dll=00000000`ea707000,0`c000; x MmcDxe!_ModuleEntryPoint
.reload NvmExpressDxe.dll=00000000`ea713000,0`e000; x NvmExpressDxe!_ModuleEntryPoint
.reload PciBusDxe.dll=00000000`ea721000,0`16000; x PciBusDxe!_ModuleEntryPoint
.reload Ax88772c.dll=00000000`ea737000,0`9000; x Ax88772c!_ModuleEntryPoint
x DxeCore!_ModuleEntryPoint
lm
bl
lsp -a 5 9
l+l
l+s
l-t
k

新的lm输出:

kd> .reload ArmPlatformPrePiUniCore.dll=0`00201000,0`A000; x ArmPlatformPrePiUniCore!_ModuleEntryPoint
Read system version block failed 1
Read system version block failed 1
Opcode 0x38401401, DSCR.ERR=1, DSCR.EL=2
Opcode 0x38401401, DSCR.ERR=1, DSCR.EL=2
00000000`00208698  ArmPlatformPrePiUniCore!_ModuleEntryPoint 
kd> 
.reload UiApp.dll=0`E9E74000,0`2A600; x UiApp!_ModuleEntryPoint
00000000`e9e7c6c0  UiApp!_ModuleEntryPoint (void, void)
kd> 
.reload Shell.dll=0`e9c62000,0`10e000; x Shell!_ModuleEntryPoint
00000000`e9c690b0  Shell!_ModuleEntryPoint (void, void)
kd> 
.reload SdhciHostDxe.dll=00000000`ea6ff000,0`8000; x SdhciHostDxe!_ModuleEntryPoint
00000000`ea7032d4  SdhciHostDxe!_ModuleEntryPoint (void, void)
kd> 
.reload MmcDxe.dll=00000000`ea707000,0`c000; x MmcDxe!_ModuleEntryPoint
00000000`ea70d0f8  MmcDxe!_ModuleEntryPoint (void, void)
kd> .reload NvmExpressDxe.dll=00000000`ea713000,0`e000; x NvmExpressDxe!_ModuleEntryPoint
00000000`ea71bdc0  NvmExpressDxe!_ModuleEntryPoint (void, void)
kd> .reload PciBusDxe.dll=00000000`ea721000,0`16000; x PciBusDxe!_ModuleEntryPoint
00000000`ea726f80  PciBusDxe!_ModuleEntryPoint (void, void)
kd> .reload Ax88772c.dll=00000000`ea737000,0`9000; x Ax88772c!_ModuleEntryPoint
00000000`ea73c150  Ax88772c!_ModuleEntryPoint (void, void)
kd> x DxeCore!_ModuleEntryPoint
00000000`3ec320c8  DxeCore!_ModuleEntryPoint (void)
kd> lm
start             end                 name
00000000`00201000 00000000`0020b000   ArmPlatformPrePiUniCore   T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\ArmPlatformPrePiUniCore.dll
00000000`3ec27000 00000000`3ec71000   DxeCore    T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\DxeCore.dll
00000000`e9c62000 00000000`e9d70000   Shell      T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\Shell.dll
00000000`e9e74000 00000000`e9e9e600   UiApp      T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\UiApp.dll
00000000`ea6ff000 00000000`ea707000   SdhciHostDxe   T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\SdhciHostDxe.dll
00000000`ea707000 00000000`ea713000   MmcDxe     T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\MmcDxe.dll
00000000`ea713000 00000000`ea721000   NvmExpressDxe   T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\NvmExpressDxe.dll
00000000`ea721000 00000000`ea737000   PciBusDxe   T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\PciBusDxe.dll
00000000`ea737000 00000000`ea740000   Ax88772c   T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\Ax88772c.dll
00000000`ea759000 00000000`ea76e000   HttpBootDxe     (deferred)                 
00000000`ea76e000 00000000`ea77f000   HttpDxe      (deferred)                 
00000000`ea77f000 00000000`ea78e000   DnsDxe       (deferred)                 
00000000`ea78e000 00000000`ea878000   TlsDxe       (deferred)                 
00000000`ea878000 00000000`ea88d000   UefiPxeBcDxe     (deferred)                 
00000000`ea88d000 00000000`ea8a3000   TcpDxe       (deferred)                 
00000000`ea8a3000 00000000`ea8b0000   Mtftp6Dxe     (deferred)                 
00000000`ea8b0000 00000000`ea8bc000   Udp6Dxe      (deferred)                 
00000000`ea8bc000 00000000`ea8db000   Ip6Dxe       (deferred)                 
00000000`ea8db000 00000000`ea8e9000   Dhcp6Dxe     (deferred)                 
00000000`ea8e9000 00000000`ea8f6000   Mtftp4Dxe     (deferred)                 
00000000`ea8f6000 00000000`ea902000   Udp4Dxe      (deferred)                 
00000000`ea902000 00000000`ea919000   Ip4Dxe       (deferred)                 
00000000`ea919000 00000000`ea926000   Dhcp4Dxe     (deferred)                 
00000000`ea926000 00000000`ea930000   ArpDxe       (deferred)                 
00000000`ea930000 00000000`ea93e000   MnpDxe       (deferred)                 
00000000`ea93e000 00000000`ea948000   VlanConfigDxe     (deferred)                 
00000000`ea948000 00000000`ea953000   SnpDxe       (deferred)                 
00000000`ea953000 00000000`ea958000   EnglishDxe     (deferred)                 
00000000`ea958000 00000000`ea966000   Fat          (deferred)                 
00000000`ea966000 00000000`ea970000   PartitionDxe     (deferred)                 
00000000`ea970000 00000000`ea978000   DiskIoDxe     (deferred)                 
00000000`ea978000 00000000`ea982000   AtaBusDxe     (deferred)                 
00000000`ea982000 00000000`ea991000   AtaAtapiPassThruDxe     (deferred)                 
00000000`ea991000 00000000`ea999000   NonDiscoverablePciDeviceDxe     (deferred)                 
00000000`ea999000 00000000`ea9a1000   UsbMouseAbsolutePointerDxe     (deferred)                 
00000000`ea9a1000 00000000`ea9a9000   UsbMouseDxe     (deferred)                 
00000000`ea9a9000 00000000`ea9b3000   UsbKbDxe     (deferred)                 
00000000`ea9b3000 00000000`ea9bd000   UsbMassStorageDxe     (deferred)                 
00000000`ea9bd000 00000000`ea9ca000   UsbBusDxe     (deferred)                 
00000000`ea9ca000 00000000`ea9db000   XhciDxe      (deferred)                 
00000000`ea9db000 00000000`ea9e7000   EhciDxe      (deferred)                 
00000000`ea9e7000 00000000`ea9f0000   I2cDxe_ea9e7000     (deferred)                 
00000000`ea9f0000 00000000`ea9fc000   TerminalDxe     (deferred)                 
00000000`ea9fc000 00000000`eaa05000   GraphicsConsoleDxe     (deferred)                 
00000000`eaa05000 00000000`eaa10000   ConSplitterDxe     (deferred)                 
00000000`eaa10000 00000000`eaa40000   RealTimeClock     (deferred)                 
00000000`eaa50000 00000000`eaa57000   SataController     (deferred)                 
00000000`eaa57000 00000000`eaa5f000   ConPlatformDxe     (deferred)                 
00000000`eaa5f000 00000000`eaa70000   PciHostBridgeDxe     (deferred)                 
00000000`eaa70000 00000000`eaaa0000   I2cDxe       (deferred)                 
00000000`eaab0000 00000000`eaae0000   CapsuleRuntimeDxe     (deferred)                 
00000000`eaaf2000 00000000`eaafd000   FdtPlatformDxe     (deferred)                 
00000000`eaafd000 00000000`eabb0000   LogoDxe      (deferred)                 
00000000`eabf0000 00000000`eac20000   Reset        (deferred)                 
00000000`eacb0000 00000000`eacf0000   VariableRuntimeDxe     (deferred)                 
00000000`ead50000 00000000`ead90000   RkFvbDxe     (deferred)                 
00000000`eadf0000 00000000`eae30000   NorFlashDxe     (deferred)                 
00000000`eae90000 00000000`eaed0000   ResetSystemRuntimeDxe     (deferred)                 
00000000`eaee0000 00000000`eaf10000   EmbeddedMonotonicCounter     (deferred)                 
00000000`eaf70000 00000000`eafb0000   RuntimeDxe     (deferred)                 
00000000`eafc0000 00000000`eafc6000   BootGraphicsResourceTableDxe     (deferred)                 
00000000`eafc6000 00000000`eafcc000   AcpiPlatformDxe     (deferred)                 
00000000`efe00000 00000000`efe07000   UsbDpPhyDxe     (deferred)                 
00000000`efe07000 00000000`efe0e000   NonCoherentIoMmuDxe     (deferred)                 
00000000`efe0e000 00000000`efe25000   DisplayEngine     (deferred)                 
00000000`efe25000 00000000`efe36000   TlsAuthConfigDxe     (deferred)                 
00000000`efe36000 00000000`efe45000   RamDiskDxe     (deferred)                 
00000000`efe45000 00000000`efe51000   OhciDxe      (deferred)                 
00000000`efe51000 00000000`efe59000   LcdGraphicsOutputDxe     (deferred)                 
00000000`efe59000 00000000`efe5e000   WatchdogTimer     (deferred)                 
00000000`efe5e000 00000000`efe73000   RK3588Dxe     (deferred)                 
00000000`efe73000 00000000`efe8f000   BdsDxe       (deferred)                 
00000000`efe8f000 00000000`efeab000   SetupBrowser     (deferred)                 
00000000`efeab000 00000000`efeb3000   PlatformSmbiosDxe     (deferred)                 
00000000`efeb3000 00000000`efeb9000   ArmTimerDxe     (deferred)                 
00000000`efeb9000 00000000`efec2000   FaultTolerantWriteDxe     (deferred)                 
00000000`efec2000 00000000`efecf000   ArmCpuDxe   T (pdb/dwarf symbols)        D:\Gedu\edk2-yourland2024\workspace\efisym\ArmCpuDxe.dll
00000000`efecf000 00000000`efed3000   GmacPlatformDxe     (deferred)                 
00000000`efed3000 00000000`efed9000   ArmPciCpuIo2Dxe     (deferred)                 
00000000`efed9000 00000000`efee8000   DevicePathDxe     (deferred)                 
00000000`efee8000 00000000`efeef000   HttpUtilitiesDxe     (deferred)                 
00000000`efeef000 00000000`efef5000   DpcDxe       (deferred)                 
00000000`efef5000 00000000`efefc000   UsbHcdDxe     (deferred)                 
00000000`efefc000 00000000`eff04000   DwDpLib      (deferred)                 
00000000`eff04000 00000000`eff0b000   DwHdmiQpLib     (deferred)                 
00000000`eff0b000 00000000`eff14000   AnalogixDpLib     (deferred)                 
00000000`eff14000 00000000`eff25000   Vop2Dxe      (deferred)                 
00000000`eff25000 00000000`eff2b000   RtcPlatformDxe     (deferred)                 
00000000`eff2b000 00000000`eff34000   SmbiosDxe     (deferred)                 
00000000`eff34000 00000000`eff3f000   AcpiTableDxe     (deferred)                 
00000000`eff3f000 00000000`eff46000   ArmScmiDxe     (deferred)                 
00000000`eff46000 00000000`eff4d000   ArmGicDxe     (deferred)                 
00000000`eff4d000 00000000`eff52000   SerialDxe     (deferred)                 
00000000`eff52000 00000000`eff72000   HiiDatabase     (deferred)                 
00000000`eff72000 00000000`eff77000   MetronomeDxe     (deferred)                 
00000000`eff77000 00000000`eff81000   SecurityStubDxe     (deferred)                 
00000000`eff81000 00000000`eff8b000   PcdDxe       (deferred)                 
00000000`eff8b000 00000000`eff90000   StatusLedDxe     (deferred)                 

漂亮的输出结果:

通过lm这一条线索追下去,也可以学到不少的知识。

作者:朱博渊  创建时间:2024-04-11 21:46
最后编辑:朱博渊  更新时间:2024-11-15 17:44