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