VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware2/VBoxPkg/VBoxPkg.fdf@ 32394

Last change on this file since 32394 was 32394, checked in by vboxsync, 15 years ago

more branding and header fixes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.9 KB
Line 
1# $Id: VBoxPkg.fdf 32394 2010-09-10 12:13:11Z 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]
51BaseAddress = 0xFFE00000 # The base address of the FLASH Device.
52Size = 0x001f0000 # The size in bytes of the FLASH Device
53ErasePolarity = 1
54BlockSize = 0x10000
55NumBlocks = 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################################################################################
720x0|0x1F0000
73gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoveryBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoverySize
74FV = 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]
87BlockSize = 0x1000
88FvAlignment = 16 #FV alignment and FV attributes setting.
89ERASE_POLARITY = 1
90MEMORY_MAPPED = TRUE
91STICKY_WRITE = TRUE
92LOCK_CAP = TRUE
93LOCK_STATUS = TRUE
94WRITE_DISABLED_CAP = TRUE
95WRITE_ENABLED_CAP = TRUE
96WRITE_STATUS = TRUE
97WRITE_LOCK_CAP = TRUE
98WRITE_LOCK_STATUS = TRUE
99READ_DISABLED_CAP = TRUE
100READ_ENABLED_CAP = TRUE
101READ_STATUS = TRUE
102READ_LOCK_CAP = TRUE
103READ_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
114APRIORI DXE {
115 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
116 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
117}
118
119#
120# DXE Phase modules
121#
122INF MdeModulePkg/Core/Dxe/DxeMain.inf
123
124INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
125INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
126
127INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
128INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
129INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
130INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
131INF PcAtChipsetPkg/8259InterruptControllerDxe/8259.inf
132INF UefiCpuPkg/CpuIoDxe/CpuIo.inf
133INF UefiCpuPkg/CpuDxe/CpuDxe.inf
134INF PcAtChipsetPkg/8254TimerDxe/8254Timer.inf
135INF PcAtChipsetPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
136INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
137INF PcAtChipsetPkg/KbcResetDxe/Reset.inf
138INF MdeModulePkg/Universal/Metronome/Metronome.inf
139INF PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcatRealTimeClockRuntimeDxe.inf
140#INF PcAtChipsetPkg/PcRtc/RealTimeClock.inf
141
142INF OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf
143INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
144INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
145INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
146INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
147INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
148INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
149INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
150INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
151INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
152INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
153INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
154INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
155INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
156INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
157INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
158#INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
159#INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
160INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
161INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
162INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
163INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
164
165# VBOX
166INF VBoxPkg/VBoxFsDxe/VBoxIso9660.inf
167INF VBoxPkg/VBoxFsDxe/VBoxHfs.inf
168INF VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
169INF VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf
170INF VBoxPkg/VBoxSysTables/VBoxSysTables.inf
171INF VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
172INF VBoxPkg/VBoxConsoleDxe/VBoxConsoleDxe.inf
173#INF RuleOverride=ACPITABLE VBoxPkg/AcpiTables/AcpiTables.inf
174#INF VBoxPkg/VBoxInterceptorDxe/VBoxInterceptorDxe.inf
175# VBOX end
176#INF IntelFrameworkModulePkg/Universal/Console/VgaClassDxe/VgaClassDxe.inf
177
178INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
179INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
180INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
181INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
182INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
183
184INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
185INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
186
187INF FatBinPkg/EnhancedFatDxe/Fat.inf
188INF EdkShellBinPkg/FullShell/FullShell.inf
189#FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
190# SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
191# }
192#
193#FILE APPLICATION = c57ad6b7-0515-40a8-9d21-551652854e37 {
194# SECTION COMPRESS PI_STD {
195# SECTION GUIDED {
196# SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
197# }
198# }
199# }
200
201FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {
202 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
203 # OSE build should use VBoxOSELogo/ose_logo.bmp
204 SECTION RAW = VBoxPkg/VBoxPUELLogo/puel_logo.bmp
205 }
206 }
207
208################################################################################
209
210[FV.MAINFV]
211FvAlignment = 16
212ERASE_POLARITY = 1
213MEMORY_MAPPED = TRUE
214STICKY_WRITE = TRUE
215LOCK_CAP = TRUE
216LOCK_STATUS = TRUE
217WRITE_DISABLED_CAP = TRUE
218WRITE_ENABLED_CAP = TRUE
219WRITE_STATUS = TRUE
220WRITE_LOCK_CAP = TRUE
221WRITE_LOCK_STATUS = TRUE
222READ_DISABLED_CAP = TRUE
223READ_ENABLED_CAP = TRUE
224READ_STATUS = TRUE
225READ_LOCK_CAP = TRUE
226READ_LOCK_STATUS = TRUE
227
228#
229# Files to be placed in MAINFV
230#
231# This firmware volume will have all the files placed in it which
232# must not be compressed at the initial boot phase. The only
233# exception to this is the compressed 'DXEFV'.
234#
235
236APRIORI PEI {
237 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
238}
239
240#
241# SEC Phase modules
242#
243INF OvmfPkg/Sec/SecMain.inf
244#INF VBoxPkg/VBoxSec/VBoxSec.inf
245
246#
247# PEI Phase modules
248#
249INF MdeModulePkg/Core/Pei/PeiMain.inf
250INF RuleOverride=NORELOC MdeModulePkg/Universal/PCD/Pei/Pcd.inf
251INF RuleOverride=NORELOC IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
252INF RuleOverride=NORELOC OvmfPkg/PlatformPei/PlatformPei.inf
253INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
254
255#
256# This file contains the compressed 'DXEFV', which is compressed
257# in a single compression operation in order to achieve better
258# overall compression.
259#
260FILE FV_IMAGE = 20bc8ac9-94d1-4208-ab28-5d673fd73486 {
261 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { # LzmaCompress
262 SECTION FV_IMAGE = DXEFV
263 }
264 }
265
266#INF RuleOverride=RESET_VECTOR OvmfPkg/ResetVector/Bin/ResetVector.inf
267
268################################################################################
269#
270# Rules are use with the [FV] section's module INF type to define
271# how an FFS file is created for a given INF file. The following Rule are the default
272# rules for the different module type. User can add the customized rules to define the
273# content of the FFS file.
274#
275################################################################################
276
277[Rule.Common.PEI_CORE]
278 FILE PEI_CORE = $(NAMED_GUID) {
279 PE32 PE32 |.efi
280 UI STRING ="$(MODULE_NAME)" Optional
281 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
282 }
283
284[Rule.Common.SEC]
285 FILE SEC = $(NAMED_GUID) {
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.PEIM]
292 FILE PEIM = $(NAMED_GUID) {
293 PEI_DEPEX PEI_DEPEX Optional |.depex
294 PE32 PE32 Align=32 |.efi
295 UI STRING="$(MODULE_NAME)" Optional
296 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
297 }
298
299[Rule.Common.PEIM.NORELOC]
300 FILE PEIM = $(NAMED_GUID) RELOCS_STRIPPED {
301 PEI_DEPEX PEI_DEPEX Optional |.depex
302 TE TE |.efi
303 UI STRING="$(MODULE_NAME)" Optional
304 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
305 }
306[Rule.Common.PEIM.TIANOCOMPRESSED]
307 FILE PEIM = $(NAMED_GUID) {
308 PEI_DEPEX PEI_DEPEX Optional |.depex
309 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
310 PE32 PE32 |.efi
311 UI STRING="$(MODULE_NAME)" Optional
312 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
313 }
314 }
315
316[Rule.Common.DXE_CORE]
317 FILE DXE_CORE = $(NAMED_GUID) {
318 PE32 PE32 |.efi
319 UI STRING="$(MODULE_NAME)" Optional
320 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
321 }
322
323[Rule.Common.UEFI_DRIVER]
324 FILE DRIVER = $(NAMED_GUID) {
325 DXE_DEPEX DXE_DEPEX Optional |.depex
326 PE32 PE32 |.efi
327 UI STRING="$(MODULE_NAME)" Optional
328 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
329 }
330
331[Rule.Common.DXE_DRIVER]
332 FILE DRIVER = $(NAMED_GUID) {
333 DXE_DEPEX DXE_DEPEX Optional |.depex
334 PE32 PE32 |.efi
335 UI STRING="$(MODULE_NAME)" Optional
336 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
337 }
338
339[Rule.Common.DXE_RUNTIME_DRIVER]
340 FILE DRIVER = $(NAMED_GUID) {
341 DXE_DEPEX DXE_DEPEX Optional |.depex
342 PE32 PE32 |.efi
343 UI STRING="$(MODULE_NAME)" Optional
344 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
345 }
346
347[Rule.Common.UEFI_APPLICATION]
348 FILE APPLICATION = $(NAMED_GUID) {
349 PE32 PE32 |.efi
350 UI STRING="$(MODULE_NAME)" Optional
351 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
352 }
353
354[Rule.Common.USER_DEFINED.ACPITABLE]
355 FILE FREEFORM = $(NAMED_GUID) {
356 RAW ACPI |.acpi
357 RAW ASL |.aml
358 }
359
360[Rule.Common.SEC.RESET_VECTOR]
361 FILE RAW = $(NAMED_GUID) {
362 RAW RAW |.raw
363 }
364
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette