]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Nt32Pkg.fdf
Merge Temporary Ram support patch.
[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.Fv_Recovery]
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 0x85, 0xae, 0x2d, 0xbf, 0xFE, 0xFF, 0xFF, 0xFF,
97 # WriteQueueSize: UINT32
98 0xE4, 0x1F, 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 MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTestPei.inf
165 INF Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf
166 INF Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
167 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
168 INF Nt32Pkg/WinNtThunkPPIToProtocolPei/WinNtThunkPPIToProtocolPei.inf
169 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
170
171 ##
172 # DXE Phase modules
173 ##
174 INF MdeModulePkg/Core/Dxe/DxeMain.inf
175 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
176 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
177 INF Nt32Pkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
178 INF Nt32Pkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
179 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
180 INF Nt32Pkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
181 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
182 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
183 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
184 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
185 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
186 INF Nt32Pkg/WinNtThunkDxe/WinNtThunkDxe.inf
187 INF Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
188 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
189 INF MdeModulePkg/Universal/FirmwareVolume/FaultTolerantWriteDxe/FtwLite.inf
190 INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf
191 INF Nt32Pkg/MiscSubClassPlatformDxe/MiscSubClassPlatformDxe.inf
192 INF Nt32Pkg/TimerDxe/TimerDxe.inf
193 INF IntelFrameworkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.inf
194 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
195 INF MdeModulePkg/Universal/WatchDogTimerDxe/WatchDogTimer.inf
196 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
197 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
198 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
199 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
200 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
201 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
202 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
203 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
204 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
205 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
206 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
207 INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
208 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf ##This driver follows UEFI specification definition
209 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf ##This driver follows UEFI specification definition
210 INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
211 INF Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriverDxe.inf
212 INF Nt32Pkg/WinNtBlockIoDxe/WinNtBlockIoDxe.inf
213 INF Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIoDxe.inf
214 INF Nt32Pkg/WinNtGopDxe/WinNtGopDxe.inf
215 INF Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf
216 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
217 INF MdeModulePkg/Application/HelloWorld/HelloWorld.inf
218
219 ################################################################################
220 #
221 # FILE statements are provided so that a platform integrator can include
222 # complete EFI FFS files, as well as a method for constructing FFS files
223 # using curly "{}" brace scoping. The following three FILEs are
224 # for binary shell, binary fat and logo module.
225 #
226 ################################################################################
227 FILE APPLICATION = c57ad6b7-0515-40a8-9d21-551652854e37 {
228 SECTION COMPRESS PI_STD {
229 SECTION GUIDED {
230 SECTION PE32 = EdkShellBinPkg/FullShell/ia32/Shell_Full.efi
231 }
232 }
233 }
234 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
235 SECTION COMPRESS PI_STD {
236 SECTION GUIDED {
237 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
238 }
239 }
240 }
241 FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {
242 SECTION COMPRESS PI_STD {
243 SECTION GUIDED {
244 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
245 }
246 }
247 }
248
249
250 ################################################################################
251 #
252 # Rules are use with the [FV] section's module INF type to define
253 # how an FFS file is created for a given INF file. The following Rule are the default
254 # rules for the different module type. User can add the customized rules to define the
255 # content of the FFS file.
256 #
257 ################################################################################
258
259
260 ############################################################################
261 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
262 ############################################################################
263 #
264 #[Rule.Common.DXE_DRIVER]
265 # FILE DRIVER = $(NAMED_GUID) {
266 # DXE_DEPEX DXE_DEPEX Optional |.depex
267 # COMPRESS PI_STD {
268 # GUIDED {
269 # PE32 PE32 |.efi
270 # UI STRING="$(MODULE_NAME)" Optional
271 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
272 # }
273 # }
274 # }
275 #
276 ############################################################################
277
278 [Rule.Common.PEI_CORE]
279 FILE PEI_CORE = $(NAMED_GUID) {
280 PE32 PE32 |.efi
281 UI STRING ="$(MODULE_NAME)" Optional
282 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
283 }
284
285 [Rule.Common.PEIM]
286 FILE PEIM = $(NAMED_GUID) {
287 PEI_DEPEX PEI_DEPEX Optional |.depex
288 PE32 PE32 |.efi
289 UI STRING="$(MODULE_NAME)" Optional
290 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
291 }
292
293 [Rule.Common.PEIM.TIANOCOMPRESSED]
294 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
295 PEI_DEPEX PEI_DEPEX Optional |.depex
296 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
297 PE32 PE32 |.efi
298 UI STRING="$(MODULE_NAME)" Optional
299 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
300 }
301 }
302
303 [Rule.Common.DXE_CORE]
304 FILE DXE_CORE = $(NAMED_GUID) {
305 COMPRESS PI_STD {
306 PE32 PE32 |.efi
307 UI STRING="$(MODULE_NAME)" Optional
308 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
309 }
310 }
311
312 [Rule.Common.UEFI_DRIVER]
313 FILE DRIVER = $(NAMED_GUID) {
314 DXE_DEPEX DXE_DEPEX Optional |.depex
315 COMPRESS PI_STD {
316 GUIDED {
317 PE32 PE32 |.efi
318 UI STRING="$(MODULE_NAME)" Optional
319 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
320 }
321 }
322 }
323
324 [Rule.Common.DXE_DRIVER]
325 FILE DRIVER = $(NAMED_GUID) {
326 DXE_DEPEX DXE_DEPEX Optional |.depex
327 COMPRESS PI_STD {
328 GUIDED {
329 PE32 PE32 |.efi
330 UI STRING="$(MODULE_NAME)" Optional
331 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
332 }
333 }
334 }
335
336 [Rule.Common.DXE_RUNTIME_DRIVER]
337 FILE DRIVER = $(NAMED_GUID) {
338 DXE_DEPEX DXE_DEPEX Optional |.depex
339 COMPRESS PI_STD {
340 GUIDED {
341 PE32 PE32 |.efi
342 UI STRING="$(MODULE_NAME)" Optional
343 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
344 }
345 }
346 }
347
348 [Rule.Common.UEFI_APPLICATION]
349 FILE APPLICATION = $(NAMED_GUID) {
350 COMPRESS PI_STD {
351 GUIDED {
352 PE32 PE32 |.efi
353 UI STRING="$(MODULE_NAME)" Optional
354 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
355 }
356 }
357 }