1 # This is Unix FDF file with UEFI HII features enabled
\r
3 # Copyright (c) 2008, 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|gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress #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 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoveryBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoverySize
\r
53 0x00280000|0x0000c000
\r
54 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageVariableBase|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: "$VSS" #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (HeaderLength) = 0xBFB8
\r
77 # This can speed up the Variable Dispatch a bit.
\r
78 0x24, 0x56, 0x53, 0x53, 0xB8, 0xBF, 0x00, 0x00,
\r
79 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
\r
80 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
\r
83 0x0028c000|0x00002000
\r
85 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageEventLogBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageEventLogSize
\r
87 0x0028e000|0x00002000
\r
88 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
\r
91 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEfiSystemNvDataFvGuid =
\r
92 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
\r
93 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
\r
94 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
\r
95 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
\r
96 0x85, 0xae, 0x2d, 0xbf, 0xFE, 0xFF, 0xFF, 0xFF,
\r
97 # WriteQueueSize: UINT32
\r
98 0xE4, 0x1F, 0x00, 0x00
\r
101 0x00290000|0x00010000
\r
103 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
\r
105 ################################################################################
\r
109 # [FV] section is used to define what components or modules are placed within a flash
\r
110 # device file. This section also defines order the components and modules are positioned
\r
111 # within the image. The [FV] section consists of define statements, set statements and
\r
112 # module statements.
\r
114 ################################################################################
\r
116 FvAlignment = 16 #FV alignment and FV attributes setting.
\r
118 MEMORY_MAPPED = TRUE
\r
119 STICKY_WRITE = TRUE
\r
122 WRITE_DISABLED_CAP = TRUE
\r
123 WRITE_ENABLED_CAP = TRUE
\r
124 WRITE_STATUS = TRUE
\r
125 WRITE_LOCK_CAP = TRUE
\r
126 WRITE_LOCK_STATUS = TRUE
\r
127 READ_DISABLED_CAP = TRUE
\r
128 READ_ENABLED_CAP = TRUE
\r
130 READ_LOCK_CAP = TRUE
\r
131 READ_LOCK_STATUS = TRUE
\r
133 ################################################################################
\r
135 # The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.
\r
136 # Parsing tools will scan the INF file to determine the type of component or module.
\r
137 # The component or module type is used to reference the standard rules
\r
138 # defined elsewhere in the FDF file.
\r
140 # The format for INF statements is:
\r
141 # INF $(PathAndInfFileName)
\r
143 ################################################################################
\r
145 # PEI Phase modules
\r
148 # PEI Apriori file example, more PEIM module added later.
\r
151 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
\r
152 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
\r
155 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
\r
156 INF IntelFrameworkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.inf
\r
157 INF UnixPkg/MetronomeDxe/Metronome.inf
\r
159 INF MdeModulePkg/Core/Pei/PeiMain.inf
\r
160 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
\r
161 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/PeiStatusCode.inf
\r
162 INF UnixPkg/BootModePei/BootModePei.inf
\r
163 INF UnixPkg/UnixFlashMapPei/FlashMap.inf
\r
164 INF MdeModulePkg/Universal/MemoryTest/BaseMemoryTestPei/BaseMemoryTestPei.inf
\r
165 INF UnixPkg/UnixAutoScanPei/UnixAutoScan.inf
\r
166 INF UnixPkg/UnixFirmwareVolumePei/UnixFwh.inf
\r
167 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
\r
168 INF UnixPkg/UnixThunkPpiToProtocolPei/UnixThunkPpiToProtocol.inf
\r
169 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
\r
172 # DXE Phase modules
\r
174 INF MdeModulePkg/Core/Dxe/DxeMain.inf
\r
175 INF IntelFrameworkModulePkg/Universal/StatusCode/Dxe/DxeStatusCode.inf
\r
176 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
\r
177 INF UnixPkg/MetronomeDxe/Metronome.inf
\r
178 INF UnixPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf
\r
179 INF UnixPkg/ResetRuntimeDxe/Reset.inf
\r
180 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
\r
181 INF UnixPkg/FvbServicesRuntimeDxe/UnixFwh.inf
\r
182 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
\r
183 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
\r
184 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
\r
185 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
\r
186 INF UnixPkg/UnixThunkDxe/UnixThunk.inf
\r
187 INF UnixPkg/CpuRuntimeDxe/Cpu.inf
\r
188 INF MdeModulePkg/Universal/FirmwareVolume/FaultTolerantWriteDxe/FtwLite.inf
\r
189 INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf
\r
190 INF UnixPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf
\r
191 INF UnixPkg/TimerDxe/Timer.inf
\r
192 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
\r
193 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
\r
194 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
\r
195 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
\r
196 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
\r
197 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
\r
198 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
\r
199 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
\r
200 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
\r
201 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
\r
202 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
\r
203 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
\r
204 INF IntelFrameworkModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
\r
205 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
\r
206 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
\r
207 INF IntelFrameworkModulePkg/Bus/Pci/IdeBusDxe/IdeBusDxe.inf
\r
208 INF UnixPkg/UnixBusDriverDxe/UnixBusDriver.inf
\r
210 INF UnixPkg/UnixBlockIoDxe/UnixBlockIo.inf
\r
211 INF UnixPkg/UnixSerialIoDxe/UnixSerialIo.inf
\r
212 INF UnixPkg/UnixUgaDxe/UnixUga.inf
\r
213 #INF UnixPkg/UnixConsoleDxe/UnixConsole.inf
\r
214 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
\r
215 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
\r
216 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
\r
217 INF UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.inf
\r
218 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
\r
219 INF MdeModulePkg/Application/HelloWorld/HelloWorld.inf
\r
222 # Network stack drivers
\r
223 # To test network drivers, need network Io driver(SnpNt32Io.dll), please refer to NETWORK-IO Subproject.
\r
225 #INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
\r
226 #INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
\r
227 #INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
\r
228 #INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
\r
229 #INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
\r
230 #INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
\r
231 #INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
\r
232 #INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
\r
233 #INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
\r
234 #INF UnixPkg/SnpUnixDxe/SnpUnixDxe.inf
\r
238 ################################################################################
\r
240 # FILE statements are provided so that a platform integrator can include
\r
241 # complete EFI FFS files, as well as a method for constructing FFS files
\r
242 # using curly "{}" brace scoping. The following three FILEs are
\r
243 # for binary shell, binary fat and logo module.
\r
245 ################################################################################
\r
246 FILE APPLICATION = c57ad6b7-0515-40a8-9d21-551652854e37 {
\r
247 SECTION COMPRESS PI_STD {
\r
249 SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
\r
253 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
\r
254 SECTION COMPRESS PI_STD {
\r
256 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
\r
260 FILE FREEFORM = 7BB28B99-61BB-11D5-9A5D-0090273FC14D {
\r
261 SECTION COMPRESS PI_STD {
\r
263 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
\r
269 ################################################################################
\r
271 # Rules are use with the [FV] section's module INF type to define
\r
272 # how an FFS file is created for a given INF file. The following Rule are the default
\r
273 # rules for the different module type. User can add the customized rules to define the
\r
274 # content of the FFS file.
\r
276 ################################################################################
\r
279 ############################################################################
\r
280 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
\r
281 ############################################################################
\r
283 #[Rule.Common.DXE_DRIVER]
\r
284 # FILE DRIVER = $(NAMED_GUID) {
\r
285 # DXE_DEPEX DXE_DEPEX Optional |.depex
\r
286 # COMPRESS PI_STD {
\r
289 # UI STRING="$(MODULE_NAME)" Optional
\r
290 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
295 ############################################################################
\r
297 [Rule.Common.PEI_CORE]
\r
298 FILE PEI_CORE = $(NAMED_GUID) {
\r
300 UI STRING ="$(MODULE_NAME)" Optional
\r
301 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
305 FILE PEIM = $(NAMED_GUID) {
\r
306 PEI_DEPEX PEI_DEPEX Optional |.depex
\r
308 UI STRING="$(MODULE_NAME)" Optional
\r
309 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
312 [Rule.Common.PEIM.TIANOCOMPRESSED]
\r
313 FILE PEIM = $(NAMED_GUID) {
\r
314 PEI_DEPEX PEI_DEPEX Optional |.depex
\r
315 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
\r
317 UI STRING="$(MODULE_NAME)" Optional
\r
318 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
322 [Rule.Common.DXE_CORE]
\r
323 FILE DXE_CORE = $(NAMED_GUID) {
\r
326 UI STRING="$(MODULE_NAME)" Optional
\r
327 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
331 [Rule.Common.UEFI_DRIVER]
\r
332 FILE DRIVER = $(NAMED_GUID) {
\r
333 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
337 UI STRING="$(MODULE_NAME)" Optional
\r
338 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
343 [Rule.Common.DXE_DRIVER]
\r
344 FILE DRIVER = $(NAMED_GUID) {
\r
345 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
349 UI STRING="$(MODULE_NAME)" Optional
\r
350 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
355 [Rule.Common.DXE_RUNTIME_DRIVER]
\r
356 FILE DRIVER = $(NAMED_GUID) {
\r
357 DXE_DEPEX DXE_DEPEX Optional |.depex
\r
361 UI STRING="$(MODULE_NAME)" Optional
\r
362 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r
367 [Rule.Common.UEFI_APPLICATION]
\r
368 FILE APPLICATION = $(NAMED_GUID) {
\r
372 UI STRING="$(MODULE_NAME)" Optional
\r
373 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
\r