2024.04.10
在UEFI的log打印中,可以看到UiApp已经被加载,但lm命令没有列出。
add-symbol-file /home/geduer/UEFI/edk2-yourland2024/workspace/Build/YourLand/DEBUG_GCC/AARCH64/MdeModulePkg/Application/UiApp/UiApp/DEBUG/UiApp.dll 0xE9E75000
Loading driver at 0x000E9E74000 EntryPoint=0x000E9E7C6C0 UiApp.efi
.reload UiApp.dll=0`E9E74000,0`2A600
此处下断点:
DxeCore!CoreLoadImageCommon.constprop.0+12b0:
3ec436fc d2800880 mov x0, #0x44
3ec43700 97ffce67 bl #0x3ec3709c
3ec43704 d2800880 mov x0, #0x44
3ec43708 97ffce9d bl #0x3ec3717c
3ec4370c 72001c1f tst w0, #0xff
3ec43710 54ffd380 b.eq #0x3ec43180
3ec43714 d0000041 adrp x1, #0x3ec4d000
3ec43718 d2800880 mov x0, #0x44
加载上符号,调用栈里终于看到UiApp
k
Read system version block failed 1
Read system version block failed 1
abort occurred - dscr = 0x03047247
Opcode 0x38401401, DSCR.ERR=1, DSCR.EL=2
Opcode 0x38401401, DSCR.ERR=1, DSCR.EL=2
abort occurred - dscr = 0x03047247
abort occurred - dscr = 0x03047247
abort occurred - dscr = 0x03047247
abort occurred - dscr = 0x03047247
abort occurred - dscr = 0x03047247
Child-SP RetAddr Call Site
00000000`3ffff090 00000000`3ec29d88 DxeCore!CoreLoadImageCommon.constprop.0+0x12b0
00000000`3ffff0d8 00000000`e9e7f85c DxeCore!CoreLoadImage+0x70
00000000`3ffff398 00000000`00000000 UiApp!EfiBootManagerBoot+0xe40 [/home/geduer/UEFI/edk2-yourland2024/edk2-platforms/Silicon/Hisilicon/Library/Dw8250SerialPortLib/Dw8250SerialPortLib.c @ 1932]
lm显示已经加载上:
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
dt -b EFI_BOOT_MANAGER_LOAD_OPTION 0`eeb4d228
+0x000 OptionNumber : 5
+0x008 OptionType : 2 ( LoadOptionTypeBoot )
+0x00c Attributes : 0
+0x010 Description : (null)
+0x018 FilePath : (null)
+0x020 OptionalData : (null)
+0x028 OptionalDataSize : 0
+0x02c VendorGuid :
+0x000 Data1 : 0x8be4df61
+0x004 Data2 : 0x93ca
+0x006 Data3 : 0x11d2
+0x008 Data4 :
[00] 0xaa ''
[01] 0xd ''
[02] 0 ''
[03] 0xe0 ''
[04] 0x98 ''
[05] 0x3 ''
[06] 0x2b '+'
[07] 0x8c ''
+0x040 Status : 0
+0x048 ExitData : (null)
+0x050 ExitDataSize : 0
dqs 0`eeb4d228 l 58/8
00000000`eeb4d228 00000000`00000005
00000000`eeb4d230 00000000`00000002
00000000`eeb4d238 00000000`eeb4ef18
00000000`eeb4d240 00000000`eeb47b18
00000000`eeb4d248 00000000`00000000
00000000`eeb4d250 8be4df61`00000000
00000000`eeb4d258 e0000daa`11d293ca
00000000`eeb4d260 00000000`8c2b0398
00000000`eeb4d268 00000000`00000000
00000000`eeb4d270 00000000`00000000
00000000`eeb4d278 00000000`00000000
db 0`eeb47b18
00000000`eeb47b18 01 03 18 00 0b 00 00 00-00 10 c7 3e 00 00 00 00 ...........>....
00000000`eeb47b28 3f e3 61 3f 00 00 00 00-04 06 14 00 83 a5 04 7c ?.a?...........|
00000000`eeb47b38 3e 9e 1c 4f ad 65 e0 52-68 d0 b4 d1 7f ff 04 00 >..O.e.Rh.......
00000000`eeb47b48 70 74 61 6c af af af af-58 00 00 00 00 00 00 00 ptal....X.......
00000000`eeb47b58 af af af af af af af af-af af af af af af af af ................
00000000`eeb47b68 af af af af af af af af-af af af af af af af af ................
00000000`eeb47b78 af af af af af af af af-70 68 64 30 01 00 00 00 ........phd0....
00000000`eeb47b88 04 00 00 00 00 00 00 00-f0 00 00 00 00 00 00 00 ................
EFI_BOOT_MANAGER_LOAD_OPTION Description
db 0`eeb4ef18
00000000`eeb4ef18 55 00 45 00 46 00 49 00-20 00 53 00 68 00 65 00 U.E.F.I. .S.h.e.
00000000`eeb4ef28 6c 00 6c 00 00 00 af af-70 74 61 6c af af af af l.l.....ptal....
00000000`eeb4ef38 40 00 00 00 00 00 00 00-af af af af af af af af @...............
00000000`eeb4ef48 af af af af af af af af-af af af af af af af af ................
00000000`eeb4ef58 af af af af af af af af-af af af af af af af af ................
00000000`eeb4ef68 af af af af af af af af-af af af af af af af af ................
00000000`eeb4ef78 af af af af af af af af-70 68 64 30 00 00 00 00 ........phd0....
00000000`eeb4ef88 04 00 00 00 00 00 00 00-68 00 00 00 00 00 00 00 ........h.......
作者:朱博渊 创建时间:2024-04-16 22:28
最后编辑:朱博渊 更新时间:2024-11-15 17:44
最后编辑:朱博渊 更新时间:2024-11-15 17:44