VirtualBox

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

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

more EFI OSE fixes

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

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