forked from Metabolix/HackBGRT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows_WSL_Debian_3rd.txt
181 lines (169 loc) · 6.49 KB
/
Windows_WSL_Debian_3rd.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# How to build HackBGRT.efi using Windows 10 WSL Debian
# 3rd
# UEFI OVMF Open Virtual Machine Firmware
wget http://downloads.sourceforge.net/project/edk2/OVMF/OVMF-X64-r15214.zip
unzip OVMF-X64-r15214.zip OVMF.fd
rm OVMF-X64-r15214.zip
# Create EFI area
mkdir image
rem cp HackBGRT_*.efi ./image
mkdir image/EFI
mkdir image/EFI/HackBGRT
mkdir image/EFI/boot
cp HackBGRT_*.efi ./image/EFI/boot/bootx64.efi
# Enable Debug mode
sed -i 's/debug=0/debug=1/' config.txt
cp config.txt ./image/EFI/HackBGRT
cp splash.bmp ./image/EFI/HackBGRT
cp ./PngSuite/PngSuite.png ./image/EFI/HackBGRT
# image=path=\EFI\HackBGRT\PngSuite.png
# QEMU
qemu-system-x86_64 -nographic -bios OVMF.fd -drive file=fat:rw:image,media=disk,format=raw
# Type in Shell
# Shell>
# fs0:
# cls
# ls
# HackBGRT_x86_64.efi
# END QEMU (Ctrl + a),(x)
--------
FS0:\> HackBGRT_PNG_x86_64.efi
Looking for resolution 2147483647x2147483647...
Found resolution 1024x768.
RSDP: revision = 2, OEM ID = OVMF
* XSDT: OEM ID = OVMF , entry count = 4
- ACPI table: BGRT, revision = 0, OEM ID = Mtblx*
-> Returning this one for later use.
HackBGRT: Loading \EFI\HackBGRT\splash.bmp.
HackBGRT: Filename Len 24, Last Char p.
HackBGRT: BMP at (384, 192).
RSDP: revision = 2, OEM ID = OVMF
* XSDT: OEM ID = OVMF , entry count = 4
- ACPI table: BGRT, revision = 0, OEM ID = Mtblx*
-> Replacing.
HackBGRT: Loading application \EFI\HackBGRT\bootmgfw-original.efi.
HackBGRT: Failed to load application \EFI\HackBGRT\bootmgfw-original.efi.
HackBGRT: Loading application \EFI\HackBGRT\bootmgfw-original.efi.
HackBGRT: Also failed to load application \EFI\HackBGRT\bootmgfw-original.efi.
HackBGRT has failed. Use parameter debug=1 for details.
Get a Windows install disk or a recovery disk to fix your boot.
HackBGRT version: v1.5.1-9-g6f0b028
Press any key to exit.
--------
FS0:\> cls
FS0:\> HackBGRT_MULTI_x86_64.efi
Looking for resolution 2147483647x2147483647...
Found resolution 1024x768.
RSDP: revision = 2, OEM ID = OVMF
* XSDT: OEM ID = OVMF , entry count = 4
- ACPI table: BGRT, revision = 0, OEM ID = Mtblx*
-> Returning this one for later use.
HackBGRT: Loading \EFI\HackBGRT\PngSuite.png.
HackBGRT: Filename Len 26, Last Char n.
HackBGRT: Loading PNG \EFI\HackBGRT\PngSuite.png.
HackBGRT: init_bmp() (256 x 256).
HackBGRT: init_bmp() AllocatePool 196662.
size: 256x256x24 (196608)
format: 1
HackBGRT: bmp ( 0, 0) #000000.
HackBGRT: bmp ( 32, 0) #000000.
HackBGRT: bmp ( 64, 0) #000000.
HackBGRT: bmp ( 96, 0) #000000.
HackBGRT: bmp ( 128, 0) #000000.
HackBGRT: bmp ( 160, 0) #000000.
HackBGRT: bmp ( 192, 0) #000000.
HackBGRT: bmp ( 224, 0) #000000.
HackBGRT: bmp ( 0, 32) #400000.
HackBGRT: bmp ( 32, 32) #402000.
HackBGRT: bmp ( 64, 32) #404000.
HackBGRT: bmp ( 96, 32) #204000.
HackBGRT: bmp ( 128, 32) #004000.
HackBGRT: bmp ( 160, 32) #004040.
HackBGRT: bmp ( 192, 32) #000040.
HackBGRT: bmp ( 224, 32) #400040.
HackBGRT: bmp ( 0, 64) #800000.
HackBGRT: bmp ( 32, 64) #804000.
HackBGRT: bmp ( 64, 64) #808000.
HackBGRT: bmp ( 96, 64) #408000.
HackBGRT: bmp ( 128, 64) #008000.
HackBGRT: bmp ( 160, 64) #008080.
HackBGRT: bmp ( 192, 64) #000080.
HackBGRT: bmp ( 224, 64) #800080.
HackBGRT: bmp ( 0, 96) #C00000.
HackBGRT: bmp ( 32, 96) #C06000.
HackBGRT: bmp ( 64, 96) #C0C000.
HackBGRT: bmp ( 96, 96) #60C000.
HackBGRT: bmp ( 128, 96) #00C000.
HackBGRT: bmp ( 160, 96) #00C0C0.
HackBGRT: bmp ( 192, 96) #0000C0.
HackBGRT: bmp ( 224, 96) #C000C0.
HackBGRT: bmp ( 0, 128) #FF0101.
HackBGRT: bmp ( 32, 128) #FF8001.
HackBGRT: bmp ( 64, 128) #FFFF01.
HackBGRT: bmp ( 96, 128) #80FF01.
HackBGRT: bmp ( 128, 128) #01FF01.
HackBGRT: bmp ( 160, 128) #01FFFF.
HackBGRT: bmp ( 192, 128) #0101FF.
HackBGRT: bmp ( 224, 128) #FF01FF.
HackBGRT: bmp ( 0, 160) #FF4141.
HackBGRT: bmp ( 32, 160) #FFA041.
HackBGRT: bmp ( 64, 160) #FFFF41.
HackBGRT: bmp ( 96, 160) #A0FF41.
HackBGRT: bmp ( 128, 160) #41FF41.
HackBGRT: bmp ( 160, 160) #41FFFF.
HackBGRT: bmp ( 192, 160) #4141FF.
HackBGRT: bmp ( 224, 160) #FF41FF.
HackBGRT: bmp ( 0, 192) #FF8181.
HackBGRT: bmp ( 32, 192) #FFC081.
HackBGRT: bmp ( 64, 192) #FFFF81.
HackBGRT: bmp ( 96, 192) #C0FF81.
HackBGRT: bmp ( 128, 192) #81FF81.
HackBGRT: bmp ( 160, 192) #81FFFF.
HackBGRT: bmp ( 192, 192) #8181FF.
HackBGRT: bmp ( 224, 192) #FF81FF.
HackBGRT: bmp ( 0, 224) #FFC1C1.
HackBGRT: bmp ( 32, 224) #FFE0C1.
HackBGRT: bmp ( 64, 224) #FFFFC1.
HackBGRT: bmp ( 96, 224) #E0FFC1.
HackBGRT: bmp ( 128, 224) #C1FFC1.
HackBGRT: bmp ( 160, 224) #C1FFFF.
HackBGRT: bmp ( 192, 224) #C1C1FF.
HackBGRT: bmp ( 224, 224) #FFC1FF.
HackBGRT: Load Success \EFI\HackBGRT\PngSuite.png.
HackBGRT: BMP at (384, 128).
RSDP: revision = 2, OEM ID = OVMF
* XSDT: OEM ID = OVMF , entry count = 4
- ACPI table: BGRT, revision = 0, OEM ID = Mtblx*
-> Replacing.
HackBGRT: Loading application \EFI\HackBGRT\bootmgfw-original.efi.
HackBGRT: Failed to load application \EFI\HackBGRT\bootmgfw-original.efi.
HackBGRT: Loading application \EFI\HackBGRT\bootmgfw-original.efi.
HackBGRT: Also failed to load application \EFI\HackBGRT\bootmgfw-original.efi.
HackBGRT has failed. Use parameter debug=1 for details.
Get a Windows install disk or a recovery disk to fix your boot.
HackBGRT version: 2020_1120_multi-3-ged36697
Press any key to exit.
--------
EFI file broken
FS0:\> HackBGRT_PNG_x86_64.efi
!!!! X64 Exception Type - 000000000000000E CPU Apic ID - 00000000 !!!!
RIP - 0000000006491E77, CS - 0000000000000028, RFLAGS - 0000000000000202
ExceptionData - 0000000000000000
RAX - 0000006800740061, RCX - 00000000064FD718, RDX - 000000000649F240
RBX - 00000000064FD718, RSP - 0000000007F94650, RBP - 0000000007F947B0
RSI - 0000000007F21F18, RDI - 00000000064FD718
R8 - 0000000007F946C0, R9 - 0000000007D4DF18, R10 - 00000000064FCF60
R11 - 0000000006EFCE30, R12 - 0000000000000000, R13 - 0000000000000000
R14 - 0000000000000000, R15 - 0000000000000000
DS - 0000000000000008, ES - 0000000000000008, FS - 0000000000000008
GS - 0000000000000008, SS - 0000000000000008
CR0 - 0000000080000033, CR2 - 00000068007400F9, CR3 - 0000000007F33000
CR4 - 0000000000000668, CR8 - 0000000000000000
DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000
DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400
GDTR - 0000000007F1CE98 000000000000003F, LDTR - 0000000000000000
IDTR - 0000000007C07018 0000000000000FFF, TR - 0000000000000000
FXSAVE_STATE - 0000000007F942B0
!!!! Find PE image (No PDB) (ImageBase=000000000648D000, EntryPoint=0000000006491000) !!!!
--------
[EOF]