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: gEfiVariableGuid =
\r
77 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}
\r
78 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
\r
79 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
\r
80 #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8
\r
81 # This can speed up the Variable Dispatch a bit.
\r
82 0xB8, 0xBF, 0x00, 0x00,
\r
83 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
\r
84 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
\r
87 0x0028c000|0x00002000
\r
89 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogBase|gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageEventLogSize
\r
91 0x0028e000|0x00002000
\r
92 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
\r
95 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEfiSystemNvDataFvGuid =
\r
96 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
\r
97 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
\r
98 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
\r
99 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
\r
100 0x77, 0x13, 0x9B, 0xD7, 0xFE, 0xFF, 0xFF, 0xFF,
\r
101 # WriteQueueSize: UINT64
\r
102 0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
\r
105 0x00290000|0x00010000
\r
107 gEfiNt32PkgTokenSpaceGuid.PcdWinNtFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
\r
109 ################################################################################
\r
113 # [FV] section is used to define what components or modules are placed within a flash
\r
114 # device file. This section also defines order the components and modules are positioned
\r
115 # within the image. The [FV] section consists of define statements, set statements and
\r
116 # module statements.
\r
118 ################################################################################
\r
120 FvAlignment = 16 #FV alignment and FV attributes setting.
\r
122 MEMORY_MAPPED = TRUE
\r
123 STICKY_WRITE = TRUE
\r
126 WRITE_DISABLED_CAP = TRUE
\r
127 WRITE_ENABLED_CAP = TRUE
\r
128 WRITE_STATUS = TRUE
\r
129 WRITE_LOCK_CAP = TRUE
\r
130 WRITE_LOCK_STATUS = TRUE
\r
131 READ_DISABLED_CAP = TRUE
\r
132 READ_ENABLED_CAP = TRUE
\r
134 READ_LOCK_CAP = TRUE
\r
135 READ_LOCK_STATUS = TRUE
\r
136 FvNameGuid = 6D99E806-3D38-42c2-A095-5F4300BFD7DC
\r
138 ################################################################################
\r
140 # The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.
\r
141 # Parsing tools will scan the INF file to determine the type of component or module.
\r
142 # The component or module type is used to reference the standard rules
\r
143 # defined elsewhere in the FDF file.
\r
145 # The format for INF statements is:
\r
146 # INF $(PathAndInfFileName)
\r
148 ################################################################################
\r
150 # PEI Phase modules
\r
153 # PEI Apriori file example, more PEIM module added later.
\r
156 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
\r
157 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
\r
160 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
\r
161 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
\r
164 INF MdeModulePkg/Core/Pei/PeiMain.inf
\r
165 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
\r
166 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
\r
167 INF Nt32Pkg/BootModePei/BootModePei.inf
\r
168 INF Nt32Pkg/WinNtFlashMapPei/WinNtFlashMapPei.inf
\r
169 INF Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf
\r
170 INF Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
\r
171 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
\r
172 INF Nt32Pkg/WinNtThunkPPIToProtocolPei/WinNtThunkPPIToProtocolPei.inf
\r
173 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
\r
176 # DXE Phase modules
\r
178 INF MdeModulePkg/Core/Dxe/DxeMain.inf
\r
179 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
\r
180 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
\r
181 INF Nt32Pkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
\r
182 INF Nt32Pkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
\r
183 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
\r
184 INF Nt32Pkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
\r
185 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
\r
186 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
\r
187 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
\r
188 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
\r
189 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
\r
190 INF Nt32Pkg/WinNtThunkDxe/WinNtThunkDxe.inf
\r
191 INF Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
\r
192 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
\r
193 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
\r
194 INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf
\r
195 INF Nt32Pkg/MiscSubClassPlatformDxe/MiscSubClassPlatformDxe.inf
\r
196 INF Nt32Pkg/TimerDxe/TimerDxe.inf
\r
197 INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
\r
198 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
\r
199 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
\r
200 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
\r
201 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
\r
202 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
\r
203 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
\r
204 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
\r
205 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
\r
206 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
\r
207 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
\r
208 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
\r
209 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
\r
210 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
\r
211 INF RuleOverride = TIANOCOMPRESSED MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
\r
212 INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
\r
213 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
\r
214 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
\r
215 INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
\r
216 INF Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriverDxe.inf
\r
217 INF Nt32Pkg/WinNtBlockIoDxe/WinNtBlockIoDxe.inf
\r
218 INF Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIoDxe.inf
\r
219 INF Nt32Pkg/WinNtGopDxe/WinNtGopDxe.inf
\r
220 INF Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf
\r
221 INF MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
\r
222 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
\r
224 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
\r
225 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
\r
226 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
\r
227 INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
\r
228 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
\r
229 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
\r
230 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
\r
231 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
\r
232 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
\r
233 INF Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf
\r
234 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
\r
235 ################################################################################
\r
237 # FILE statements are provided so that a platform integrator can include
\r
238 # complete EFI FFS files, as well as a method for constructing FFS files
\r
239 # using curly "{}" brace scoping. The following three FILEs are
\r
240 # for binary shell, binary fat and logo module.
\r
242 ################################################################################
\r
243 FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
\r
244 SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
\r
247 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
\r
248 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
\r
251 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
\r
252 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
\r
256 ################################################################################
\r
258 # Rules are use with the [FV] section's module INF type to define
\r
259 # how an FFS file is created for a given INF file. The following Rule are the default
\r
260 # rules for the different module type. User can add the customized rules to define the
\r
261 # content of the FFS file.
\r
263 ################################################################################
\r
266 ############################################################################
\r
267 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
\r
268 ############################################################################
\r
270 #[Rule.Common.DXE_DRIVER]
\r
271 # FILE DRIVER = $(NAMED_GUID) {
\r
272 # DXE_DEPEX DXE_DEPEX Optional |.depex
\r
273 # COMPRESS PI_STD {
\r
276 # UI STRING="$(MODULE_NAME)" Optional
\r
277 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
282 ############################################################################
\r
284 [Rule.Common.PEI_CORE]
\r
285 FILE PEI_CORE = $(NAMED_GUID) {
\r
287 UI STRING ="$(MODULE_NAME)" Optional
\r
288 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
292 FILE PEIM = $(NAMED_GUID) {
\r
293 PEI_DEPEX PEI_DEPEX Optional |.depex
\r
295 UI STRING="$(MODULE_NAME)" Optional
\r
296 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
299 [Rule.Common.DXE_CORE]
\r
300 FILE DXE_CORE = $(NAMED_GUID) {
\r
303 UI STRING="$(MODULE_NAME)" Optional
\r
304 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
308 [Rule.Common.UEFI_DRIVER]
\r
309 FILE DRIVER = $(NAMED_GUID) {
\r
310 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
314 UI STRING="$(MODULE_NAME)" Optional
\r
315 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
320 [Rule.Common.UEFI_DRIVER.TIANOCOMPRESSED]
\r
321 FILE DRIVER = $(NAMED_GUID) {
\r
322 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
323 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
\r
325 UI STRING="$(MODULE_NAME)" Optional
\r
326 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
330 [Rule.Common.DXE_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.DXE_RUNTIME_DRIVER]
\r
343 FILE DRIVER = $(NAMED_GUID) {
\r
344 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
348 UI STRING="$(MODULE_NAME)" Optional
\r
349 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
354 [Rule.Common.UEFI_APPLICATION]
\r
355 FILE APPLICATION = $(NAMED_GUID) {
\r
359 UI STRING="$(MODULE_NAME)" Optional
\r
360 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r