]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/OvmfPkgIa32X64.fdf
OVMF: Fix a hang after resetting when NV variables are preserved.
[mirror_edk2.git] / OvmfPkg / OvmfPkgIa32X64.fdf
1 #/** @file
2 # Open Virtual Machine Firmware: FDF
3 #
4 # Copyright (c) 2006 - 2009, Intel Corporation
5 #
6 # All rights reserved. This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14 #**/
15
16 ################################################################################
17 #
18 # FD Section
19 # The [FD] Section is made up of the definition statements and a
20 # description of what goes into the Flash Device Image. Each FD section
21 # defines one flash "device" image. A flash device image may be one of
22 # the following: Removable media bootable image (like a boot floppy
23 # image,) an Option ROM image (that would be "flashed" into an add-in
24 # card,) a System "Flash" image (that would be burned into a system's
25 # flash) or an Update ("Capsule") image that will be used to update and
26 # existing system flash.
27 #
28 ################################################################################
29 [FD.OVMF]
30 BaseAddress = 0xFFE00000 # The base address of the FLASH Device.
31 Size = 0x00200000 # The size in bytes of the FLASH Device
32 ErasePolarity = 1
33 BlockSize = 0x10000
34 NumBlocks = 0x20
35
36 ################################################################################
37 #
38 # Following are lists of FD Region layout which correspond to the locations of different
39 # images within the flash device.
40 #
41 # Regions must be defined in ascending order and may not overlap.
42 #
43 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
44 # the pipe "|" character, followed by the size of the region, also in hex with the leading
45 # "0x" characters. Like:
46 # Offset|Size
47 # PcdOffsetCName|PcdSizeCName
48 # RegionType <FV, DATA, or FILE>
49 #
50 ################################################################################
51 0x0|0x200000
52 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoveryBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoverySize
53 FV = MAINFV
54
55 ################################################################################
56 #
57 # FV Section
58 #
59 # [FV] section is used to define what components or modules are placed within a flash
60 # device file. This section also defines order the components and modules are positioned
61 # within the image. The [FV] section consists of define statements, set statements and
62 # module statements.
63 #
64 ################################################################################
65 [FV.DXEFV]
66 BlockSize = 0x1000
67 FvAlignment = 16 #FV alignment and FV attributes setting.
68 ERASE_POLARITY = 1
69 MEMORY_MAPPED = TRUE
70 STICKY_WRITE = TRUE
71 LOCK_CAP = TRUE
72 LOCK_STATUS = TRUE
73 WRITE_DISABLED_CAP = TRUE
74 WRITE_ENABLED_CAP = TRUE
75 WRITE_STATUS = TRUE
76 WRITE_LOCK_CAP = TRUE
77 WRITE_LOCK_STATUS = TRUE
78 READ_DISABLED_CAP = TRUE
79 READ_ENABLED_CAP = TRUE
80 READ_STATUS = TRUE
81 READ_LOCK_CAP = TRUE
82 READ_LOCK_STATUS = TRUE
83
84 #
85 # Files to be placed in DXEFV
86 #
87 # This firmware volume will have files placed in it uncompressed,
88 # and then then entire firmware volume will be compressed in a
89 # single compression operation in order to achieve better
90 # overall compression.
91 #
92
93 APRIORI DXE {
94 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
95 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
96 }
97
98 #
99 # DXE Phase modules
100 #
101 INF MdeModulePkg/Core/Dxe/DxeMain.inf
102
103 INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
104 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
105
106 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
107 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
108 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
109 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
110 INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
111 INF UefiCpuPkg/CpuIoDxe/CpuIo.inf
112 INF UefiCpuPkg/CpuDxe/CpuDxe.inf
113 INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
114 INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
115 INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
116 INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
117 INF MdeModulePkg/Universal/Metronome/Metronome.inf
118 INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
119
120 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
121 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
122 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
123 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
124 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
125 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
126 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
127 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
128 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
129 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
130 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
131 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
132 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
133 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
134 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
135 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
136 INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
137 INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
138 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
139 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
140
141 INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
142 INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
143 INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
144 INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
145 INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
146
147 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
148 INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
149 INF RuleOverride = ACPITABLE OvmfPkg/AcpiTables/AcpiTables.inf
150
151 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
152 SECTION PE32 = FatBinPkg/EnhancedFatDxe/X64/Fat.efi
153 }
154
155 FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
156 SECTION PE32 = EdkShellBinPkg/FullShell/X64/Shell_full.efi
157 }
158
159 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
160 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
161 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
162 }
163 }
164
165 ################################################################################
166
167 [FV.MAINFV]
168 FvAlignment = 16
169 ERASE_POLARITY = 1
170 MEMORY_MAPPED = TRUE
171 STICKY_WRITE = TRUE
172 LOCK_CAP = TRUE
173 LOCK_STATUS = TRUE
174 WRITE_DISABLED_CAP = TRUE
175 WRITE_ENABLED_CAP = TRUE
176 WRITE_STATUS = TRUE
177 WRITE_LOCK_CAP = TRUE
178 WRITE_LOCK_STATUS = TRUE
179 READ_DISABLED_CAP = TRUE
180 READ_ENABLED_CAP = TRUE
181 READ_STATUS = TRUE
182 READ_LOCK_CAP = TRUE
183 READ_LOCK_STATUS = TRUE
184
185 #
186 # Files to be placed in MAINFV
187 #
188 # This firmware volume will have all the files placed in it which
189 # must not be compressed at the initial boot phase. The only
190 # exception to this is the compressed 'DXEFV'.
191 #
192
193 APRIORI PEI {
194 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
195 }
196
197 #
198 # SEC Phase modules
199 #
200 INF OvmfPkg/Sec/SecMain.inf
201
202 #
203 # PEI Phase modules
204 #
205 INF MdeModulePkg/Core/Pei/PeiMain.inf
206 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
207 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
208 INF OvmfPkg/PlatformPei/PlatformPei.inf
209 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
210
211 #
212 # This file contains the compressed 'DXEFV', which is compressed
213 # in a single compression operation in order to achieve better
214 # overall compression.
215 #
216 FILE FV_IMAGE = 20bc8ac9-94d1-4208-ab28-5d673fd73486 {
217 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
218 SECTION FV_IMAGE = DXEFV
219 }
220 }
221
222 FILE RAW = 1BA0062E-C779-4582-8566-336AE8F78F09 {
223 SECTION RAW = OvmfPkg/ResetVector/Bin/ResetVector.ia32.raw
224 }
225
226
227 ################################################################################
228 #
229 # Rules are use with the [FV] section's module INF type to define
230 # how an FFS file is created for a given INF file. The following Rule are the default
231 # rules for the different module type. User can add the customized rules to define the
232 # content of the FFS file.
233 #
234 ################################################################################
235
236 [Rule.Common.PEI_CORE]
237 FILE PEI_CORE = $(NAMED_GUID) {
238 PE32 PE32 |.efi
239 UI STRING ="$(MODULE_NAME)" Optional
240 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
241 }
242
243 [Rule.Common.SEC]
244 FILE SEC = $(NAMED_GUID) {
245 PE32 PE32 |.efi
246 UI STRING ="$(MODULE_NAME)" Optional
247 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
248 }
249
250 [Rule.Common.PEIM]
251 FILE PEIM = $(NAMED_GUID) {
252 PEI_DEPEX PEI_DEPEX Optional |.depex
253 PE32 PE32 |.efi
254 UI STRING="$(MODULE_NAME)" Optional
255 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
256 }
257
258 [Rule.Common.PEIM.TIANOCOMPRESSED]
259 FILE PEIM = $(NAMED_GUID) {
260 PEI_DEPEX PEI_DEPEX Optional |.depex
261 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
262 PE32 PE32 |.efi
263 UI STRING="$(MODULE_NAME)" Optional
264 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
265 }
266 }
267
268 [Rule.Common.DXE_CORE]
269 FILE DXE_CORE = $(NAMED_GUID) {
270 PE32 PE32 |.efi
271 UI STRING="$(MODULE_NAME)" Optional
272 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
273 }
274
275 [Rule.Common.UEFI_DRIVER]
276 FILE DRIVER = $(NAMED_GUID) {
277 DXE_DEPEX DXE_DEPEX Optional |.depex
278 PE32 PE32 |.efi
279 UI STRING="$(MODULE_NAME)" Optional
280 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
281 }
282
283 [Rule.Common.DXE_DRIVER]
284 FILE DRIVER = $(NAMED_GUID) {
285 DXE_DEPEX DXE_DEPEX Optional |.depex
286 PE32 PE32 |.efi
287 UI STRING="$(MODULE_NAME)" Optional
288 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
289 }
290
291 [Rule.Common.DXE_RUNTIME_DRIVER]
292 FILE DRIVER = $(NAMED_GUID) {
293 DXE_DEPEX DXE_DEPEX Optional |.depex
294 PE32 PE32 |.efi
295 UI STRING="$(MODULE_NAME)" Optional
296 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
297 }
298
299 [Rule.Common.UEFI_APPLICATION]
300 FILE APPLICATION = $(NAMED_GUID) {
301 PE32 PE32 |.efi
302 UI STRING="$(MODULE_NAME)" Optional
303 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
304 }
305
306 [Rule.Common.USER_DEFINED.ACPITABLE]
307 FILE FREEFORM = $(NAMED_GUID) {
308 RAW ACPI |.acpi
309 RAW ASL |.aml
310 }
311
312 [Rule.Common.SEC.RESET_VECTOR]
313 FILE RAW = $(NAMED_GUID) {
314 RAW RAW |.raw
315 }
316
317 [OptionRom.CirrusLogic5446]
318 INF OptionRomPkg/CirrusLogic5430Dxe/CirrusLogic5430Dxe.inf {
319 PCI_DEVICE_ID = 0x00B8
320 }
321