]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/Nt32Pkg.fdf
1. PI SMBIOS Checkin. Major change include:
[mirror_edk2.git] / Nt32Pkg / Nt32Pkg.fdf
1 # This is NT32 FDF file with UEFI HII features enabled
2 #
3 # Copyright (c) 2007 - 2009, 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 MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
158 INF IntelFrameworkModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
159 INF Nt32Pkg/WinNtOemHookStatusCodeHandlerPei/WinNtOemHookStatusCodeHandlerPei.inf
160 }
161 APRIORI DXE {
162 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
163 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
164 }
165
166 INF MdeModulePkg/Core/Pei/PeiMain.inf
167 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
168 INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
169 INF IntelFrameworkModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
170 INF Nt32Pkg/WinNtOemHookStatusCodeHandlerPei/WinNtOemHookStatusCodeHandlerPei.inf
171 INF Nt32Pkg/BootModePei/BootModePei.inf
172 INF Nt32Pkg/WinNtFlashMapPei/WinNtFlashMapPei.inf
173 INF Nt32Pkg/WinNtAutoScanPei/WinNtAutoScanPei.inf
174 INF Nt32Pkg/WinNtFirmwareVolumePei/WinNtFirmwareVolumePei.inf
175 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
176 INF Nt32Pkg/WinNtThunkPPIToProtocolPei/WinNtThunkPPIToProtocolPei.inf
177 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
178
179 ##
180 # DXE Phase modules
181 ##
182 INF MdeModulePkg/Core/Dxe/DxeMain.inf
183 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
184 INF Nt32Pkg/MetronomeDxe/MetronomeDxe.inf
185 INF Nt32Pkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
186 INF Nt32Pkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
187 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
188 INF Nt32Pkg/FvbServicesRuntimeDxe/FvbServicesRuntimeDxe.inf
189 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
190 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
191 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
192 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
193 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
194 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
195 INF Nt32Pkg/WinNtThunkDxe/WinNtThunkDxe.inf
196 INF Nt32Pkg/CpuRuntimeDxe/CpuRuntimeDxe.inf
197 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
198 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
199 INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf
200 INF Nt32Pkg/MiscSubClassPlatformDxe/MiscSubClassPlatformDxe.inf
201 INF Nt32Pkg/TimerDxe/TimerDxe.inf
202 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
203 INF IntelFrameworkModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
204 INF Nt32Pkg/WinNtOemHookStatusCodeHandlerDxe/WinNtOemHookStatusCodeHandlerDxe.inf
205 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
206 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
207 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
208 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
209 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
210 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
211 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
212 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
213 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
214 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
215 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
216 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
217 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
218 INF RuleOverride = TIANOCOMPRESSED MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
219 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
220 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
221 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
222 INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
223 INF Nt32Pkg/WinNtBusDriverDxe/WinNtBusDriverDxe.inf
224 INF Nt32Pkg/WinNtBlockIoDxe/WinNtBlockIoDxe.inf
225 INF Nt32Pkg/WinNtSerialIoDxe/WinNtSerialIoDxe.inf
226 INF Nt32Pkg/WinNtGopDxe/WinNtGopDxe.inf
227 INF Nt32Pkg/WinNtSimpleFileSystemDxe/WinNtSimpleFileSystemDxe.inf
228 INF MdeModulePkg/Universal/PlatformDriOverrideDxe/PlatformDriOverrideDxe.inf
229 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
230
231 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
232 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
233 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
234 INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
235 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
236 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
237 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
238 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
239 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
240 INF Nt32Pkg/SnpNt32Dxe/SnpNt32Dxe.inf
241 INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
242 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
243 ################################################################################
244 #
245 # FILE statements are provided so that a platform integrator can include
246 # complete EFI FFS files, as well as a method for constructing FFS files
247 # using curly "{}" brace scoping. The following three FILEs are
248 # for binary shell, binary fat and logo module.
249 #
250 ################################################################################
251 FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
252 SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
253 }
254
255 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
256 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
257 }
258
259 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
260 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
261 }
262
263
264 ################################################################################
265 #
266 # Rules are use with the [FV] section's module INF type to define
267 # how an FFS file is created for a given INF file. The following Rule are the default
268 # rules for the different module type. User can add the customized rules to define the
269 # content of the FFS file.
270 #
271 ################################################################################
272
273
274 ############################################################################
275 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
276 ############################################################################
277 #
278 #[Rule.Common.DXE_DRIVER]
279 # FILE DRIVER = $(NAMED_GUID) {
280 # DXE_DEPEX DXE_DEPEX Optional |.depex
281 # COMPRESS PI_STD {
282 # GUIDED {
283 # PE32 PE32 |.efi
284 # UI STRING="$(MODULE_NAME)" Optional
285 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
286 # }
287 # }
288 # }
289 #
290 ############################################################################
291
292 [Rule.Common.PEI_CORE]
293 FILE PEI_CORE = $(NAMED_GUID) {
294 PE32 PE32 Align=4K |.efi
295 UI STRING ="$(MODULE_NAME)" Optional
296 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
297 }
298
299 [Rule.Common.PEIM]
300 FILE PEIM = $(NAMED_GUID) {
301 PEI_DEPEX PEI_DEPEX Optional |.depex
302 PE32 PE32 Align=4K |.efi
303 UI STRING="$(MODULE_NAME)" Optional
304 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
305 }
306
307 [Rule.Common.DXE_CORE]
308 FILE DXE_CORE = $(NAMED_GUID) {
309 COMPRESS PI_STD {
310 PE32 PE32 |.efi
311 UI STRING="$(MODULE_NAME)" Optional
312 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
313 }
314 }
315
316 [Rule.Common.UEFI_DRIVER]
317 FILE DRIVER = $(NAMED_GUID) {
318 DXE_DEPEX DXE_DEPEX Optional |.depex
319 COMPRESS PI_STD {
320 GUIDED {
321 PE32 PE32 |.efi
322 UI STRING="$(MODULE_NAME)" Optional
323 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
324 }
325 }
326 }
327
328 [Rule.Common.UEFI_DRIVER.TIANOCOMPRESSED]
329 FILE DRIVER = $(NAMED_GUID) {
330 DXE_DEPEX DXE_DEPEX Optional |.depex
331 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
332 PE32 PE32 |.efi
333 UI STRING="$(MODULE_NAME)" Optional
334 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
335 }
336 }
337
338 [Rule.Common.DXE_DRIVER]
339 FILE DRIVER = $(NAMED_GUID) {
340 DXE_DEPEX DXE_DEPEX Optional |.depex
341 COMPRESS PI_STD {
342 GUIDED {
343 PE32 PE32 |.efi
344 UI STRING="$(MODULE_NAME)" Optional
345 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
346 }
347 }
348 }
349
350 [Rule.Common.DXE_RUNTIME_DRIVER]
351 FILE DRIVER = $(NAMED_GUID) {
352 DXE_DEPEX DXE_DEPEX Optional |.depex
353 COMPRESS PI_STD {
354 GUIDED {
355 PE32 PE32 |.efi
356 UI STRING="$(MODULE_NAME)" Optional
357 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
358 }
359 }
360 }
361
362 [Rule.Common.UEFI_APPLICATION]
363 FILE APPLICATION = $(NAMED_GUID) {
364 COMPRESS PI_STD {
365 GUIDED {
366 PE32 PE32 |.efi
367 UI STRING="$(MODULE_NAME)" Optional
368 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
369 }
370 }
371 }