VirtualBox

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

Last change on this file since 33211 was 33028, checked in by vboxsync, 14 years ago

EFI: replaces IdeBus{Conroller,Bus}Dxe drivers with VBox's ones.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.0 KB
Line 
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]
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
158INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
159INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
160#INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
161# VBOX
162INF VBoxPkg/VBoxIdeBusDxe/VBoxIdeBusDxe.inf
163INF VBoxPkg/VBoxIdeControllerDxe/VBoxIdeControllerDxe.inf
164# VBOX end
165#INF PcAtChipsetPkg/Bus/Pci/IdeControllerDxe/IdeControllerDxe.inf
166INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
167INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
168
169# VBOX
170INF VBoxPkg/VBoxFsDxe/VBoxIso9660.inf
171INF VBoxPkg/VBoxFsDxe/VBoxHfs.inf
172INF VBoxPkg/VBoxVgaMiniPortDxe/VBoxVgaMiniPortDxe.inf
173INF VBoxPkg/VBoxVgaDxe/VBoxVgaDxe.inf
174INF VBoxPkg/VBoxSysTables/VBoxSysTables.inf
175INF VBoxPkg/VBoxAppleSim/VBoxAppleSim.inf
176INF 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
182INF PcAtChipsetPkg/IsaAcpiDxe/IsaAcpi.inf
183INF IntelFrameworkModulePkg/Bus/Isa/IsaBusDxe/IsaBusDxe.inf
184INF IntelFrameworkModulePkg/Bus/Isa/IsaSerialDxe/IsaSerialDxe.inf
185INF IntelFrameworkModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2keyboardDxe.inf
186INF IntelFrameworkModulePkg/Bus/Isa/IsaFloppyDxe/IsaFloppyDxe.inf
187
188INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
189INF MdeModulePkg/Universal/Acpi/AcpiPlatformDxe/AcpiPlatformDxe.inf
190
191INF FatBinPkg/EnhancedFatDxe/Fat.inf
192INF 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
205FILE 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]
215FvAlignment = 16
216ERASE_POLARITY = 1
217MEMORY_MAPPED = TRUE
218STICKY_WRITE = TRUE
219LOCK_CAP = TRUE
220LOCK_STATUS = TRUE
221WRITE_DISABLED_CAP = TRUE
222WRITE_ENABLED_CAP = TRUE
223WRITE_STATUS = TRUE
224WRITE_LOCK_CAP = TRUE
225WRITE_LOCK_STATUS = TRUE
226READ_DISABLED_CAP = TRUE
227READ_ENABLED_CAP = TRUE
228READ_STATUS = TRUE
229READ_LOCK_CAP = TRUE
230READ_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
240APRIORI PEI {
241 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
242}
243
244#
245# SEC Phase modules
246#
247INF OvmfPkg/Sec/SecMain.inf
248#INF VBoxPkg/VBoxSec/VBoxSec.inf
249
250#
251# PEI Phase modules
252#
253INF MdeModulePkg/Core/Pei/PeiMain.inf
254INF RuleOverride=NORELOC MdeModulePkg/Universal/PCD/Pei/Pcd.inf
255INF RuleOverride=NORELOC IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
256INF RuleOverride=NORELOC OvmfPkg/PlatformPei/PlatformPei.inf
257INF 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#
264FILE 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
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