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