1 # This is NT32 FDF file with UEFI HII features enabled
\r
3 # Copyright (c) 2007, Intel Corporation
\r
5 # All rights reserved. This program and the accompanying materials
\r
6 # are licensed and made available under the terms and conditions of the BSD License
\r
7 # which accompanies this distribution. The full text of the license may be found at
\r
8 # http://opensource.org/licenses/bsd-license.php
\r
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
\r
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
\r
14 ################################################################################
\r
17 # The [FD] Section is made up of the definition statements and a
\r
18 # description of what goes into the Flash Device Image. Each FD section
\r
19 # defines one flash "device" image. A flash device image may be one of
\r
20 # the following: Removable media bootable image (like a boot floppy
\r
21 # image,) an Option ROM image (that would be "flashed" into an add-in
\r
22 # card,) a System "Flash" image (that would be burned into a system's
\r
23 # flash) or an Update ("Capsule") image that will be used to update and
\r
24 # existing system flash.
\r
26 ################################################################################
\r
28 BaseAddress = 0x0|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFdBaseAddress #The base address of the FLASH Device.
\r
29 Size = 0x002a0000 #The size in bytes of the FLASH Device
\r
34 ################################################################################
\r
36 # Following are lists of FD Region layout which correspond to the locations of different
\r
37 # images within the flash device.
\r
39 # Regions must be defined in ascending order and may not overlap.
\r
41 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
\r
42 # the pipe "|" character, followed by the size of the region, also in hex with the leading
\r
43 # "0x" characters. Like:
\r
45 # PcdOffsetCName|PcdSizeCName
\r
46 # RegionType <FV, DATA, or FILE>
\r
48 ################################################################################
\r
49 0x00000000|0x00280000
\r
50 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoveryBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashFvRecoverySize
\r
53 0x00280000|0x0000c000
\r
54 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
\r
57 ## This is the EFI_FIRMWARE_VOLUME_HEADER
\r
59 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
\r
60 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
\r
61 # FileSystemGuid: gEfiSystemNvDataFvGuid =
\r
62 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
\r
63 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
\r
64 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
\r
66 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
\r
67 #Signature "_FVH" #Attributes
\r
68 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
\r
69 #HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision
\r
70 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,
\r
71 #Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block
\r
72 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
\r
74 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
\r
75 ## This is the VARIABLE_STORE_HEADER
\r
76 #Signature: "$VSS" #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (HeaderLength) = 0xBFB8
\r
77 # This can speed up the Variable Dispatch a bit.
\r
78 0x24, 0x56, 0x53, 0x53, 0xB8, 0xBF, 0x00, 0x00,
\r
79 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
\r
80 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
\r
83 0x0028c000|0x00002000
\r
85 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogSize
\r
87 0x0028e000|0x00002000
\r
88 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
\r
91 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEfiSystemNvDataFvGuid =
\r
92 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
\r
93 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
\r
94 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
\r
95 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
\r
96 0x77, 0x13, 0x9B, 0xD7, 0xFE, 0xFF, 0xFF, 0xFF,
\r
97 # WriteQueueSize: UINT64
\r
98 0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
\r
101 0x00290000|0x00010000
\r
103 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
\r
105 ################################################################################
\r
109 # [FV] section is used to define what components or modules are placed within a flash
\r
110 # device file. This section also defines order the components and modules are positioned
\r
111 # within the image. The [FV] section consists of define statements, set statements and
\r
112 # module statements.
\r
114 ################################################################################
\r
116 FvAlignment = 16 #FV alignment and FV attributes setting.
\r
118 MEMORY_MAPPED = TRUE
\r
119 STICKY_WRITE = TRUE
\r
122 WRITE_DISABLED_CAP = TRUE
\r
123 WRITE_ENABLED_CAP = TRUE
\r
124 WRITE_STATUS = TRUE
\r
125 WRITE_LOCK_CAP = TRUE
\r
126 WRITE_LOCK_STATUS = TRUE
\r
127 READ_DISABLED_CAP = TRUE
\r
128 READ_ENABLED_CAP = TRUE
\r
130 READ_LOCK_CAP = TRUE
\r
131 READ_LOCK_STATUS = TRUE
\r
133 ################################################################################
\r
135 # The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.
\r
136 # Parsing tools will scan the INF file to determine the type of component or module.
\r
137 # The component or module type is used to reference the standard rules
\r
138 # defined elsewhere in the FDF file.
\r
140 # The format for INF statements is:
\r
141 # INF $(PathAndInfFileName)
\r
143 ################################################################################
\r
145 # PEI Phase modules
\r
148 # PEI Apriori file example, more PEIM module added later.
\r
151 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
\r
152 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
\r
155 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
\r
156 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
\r
159 INF MdeModulePkg/Core/Pei/PeiMain.inf
\r
160 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
\r
161 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
\r
162 INF Nt32Pkg/BootModePei/BootModePei.inf
\r
163 INF Nt32Pkg/WinNtFlashMapPei/WinNtFlashMapPei.inf
\r
164 INF MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTestPei.inf
\r
165 INF Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf
\r
166 INF Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
\r
167 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
\r
168 INF Nt32Pkg/WinNtThunkPPIToProtocolPei/WinNtThunkPPIToProtocolPei.inf
\r
169 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
\r
172 # DXE Phase modules
\r
174 INF MdeModulePkg/Core/Dxe/DxeMain.inf
\r
175 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
\r
176 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
\r
177 INF Nt32Pkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
\r
178 INF Nt32Pkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
\r
179 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
\r
180 INF Nt32Pkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
\r
181 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
\r
182 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
\r
183 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
\r
184 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
\r
185 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
\r
186 INF Nt32Pkg/WinNtThunkDxe/WinNtThunkDxe.inf
\r
187 INF Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
\r
188 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
\r
189 INF MdeModulePkg/Universal/FirmwareVolume/FaultTolerantWriteDxe/FtwLite.inf
\r
190 INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf
\r
191 INF Nt32Pkg/MiscSubClassPlatformDxe/MiscSubClassPlatformDxe.inf
\r
192 INF Nt32Pkg/TimerDxe/TimerDxe.inf
\r
193 INF IntelFrameworkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.inf
\r
194 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
\r
195 INF MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.inf
\r
196 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
\r
197 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
\r
198 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
\r
199 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
\r
200 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
\r
201 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
\r
202 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
\r
203 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
\r
204 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
\r
205 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
\r
206 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
\r
207 INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
\r
208 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf ##This driver follows UEFI specification definition
\r
209 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf ##This driver follows UEFI specification definition
\r
210 INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
\r
211 INF Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriverDxe.inf
\r
212 INF Nt32Pkg/WinNtBlockIoDxe/WinNtBlockIoDxe.inf
\r
213 INF Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIoDxe.inf
\r
214 INF Nt32Pkg/WinNtGopDxe/WinNtGopDxe.inf
\r
215 INF Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf
\r
216 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
\r
217 INF MdeModulePkg/Application/HelloWorld/HelloWorld.inf
\r
219 ################################################################################
\r
221 # FILE statements are provided so that a platform integrator can include
\r
222 # complete EFI FFS files, as well as a method for constructing FFS files
\r
223 # using curly "{}" brace scoping. The following three FILEs are
\r
224 # for binary shell, binary fat and logo module.
\r
226 ################################################################################
\r
227 FILE APPLICATION = c57ad6b7-0515-40a8-9d21-551652854e37 {
\r
228 SECTION COMPRESS PI_STD {
\r
230 SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
\r
235 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
\r
236 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
\r
239 FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {
\r
240 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
\r
244 ################################################################################
\r
246 # Rules are use with the [FV] section's module INF type to define
\r
247 # how an FFS file is created for a given INF file. The following Rule are the default
\r
248 # rules for the different module type. User can add the customized rules to define the
\r
249 # content of the FFS file.
\r
251 ################################################################################
\r
254 ############################################################################
\r
255 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
\r
256 ############################################################################
\r
258 #[Rule.Common.DXE_DRIVER]
\r
259 # FILE DRIVER = $(NAMED_GUID) {
\r
260 # DXE_DEPEX DXE_DEPEX Optional |.depex
\r
261 # COMPRESS PI_STD {
\r
264 # UI STRING="$(MODULE_NAME)" Optional
\r
265 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
270 ############################################################################
\r
272 [Rule.Common.PEI_CORE]
\r
273 FILE PEI_CORE = $(NAMED_GUID) {
\r
275 UI STRING ="$(MODULE_NAME)" Optional
\r
276 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
280 FILE PEIM = $(NAMED_GUID) {
\r
281 PEI_DEPEX PEI_DEPEX Optional |.depex
\r
283 UI STRING="$(MODULE_NAME)" Optional
\r
284 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
287 [Rule.Common.PEIM.TIANOCOMPRESSED]
\r
288 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
\r
289 PEI_DEPEX PEI_DEPEX Optional |.depex
\r
290 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
\r
292 UI STRING="$(MODULE_NAME)" Optional
\r
293 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
297 [Rule.Common.DXE_CORE]
\r
298 FILE DXE_CORE = $(NAMED_GUID) {
\r
301 UI STRING="$(MODULE_NAME)" Optional
\r
302 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
306 [Rule.Common.UEFI_DRIVER]
\r
307 FILE DRIVER = $(NAMED_GUID) {
\r
308 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
312 UI STRING="$(MODULE_NAME)" Optional
\r
313 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
318 [Rule.Common.DXE_DRIVER]
\r
319 FILE DRIVER = $(NAMED_GUID) {
\r
320 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
324 UI STRING="$(MODULE_NAME)" Optional
\r
325 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
330 [Rule.Common.DXE_RUNTIME_DRIVER]
\r
331 FILE DRIVER = $(NAMED_GUID) {
\r
332 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
336 UI STRING="$(MODULE_NAME)" Optional
\r
337 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
342 [Rule.Common.UEFI_APPLICATION]
\r
343 FILE APPLICATION = $(NAMED_GUID) {
\r
347 UI STRING="$(MODULE_NAME)" Optional
\r
348 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r