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