7fe962d1e24c67705f09fdf70beb937dd8ede501
[mirror_edk2.git] / UnixPkg / UnixPkg.fdf
1 # This is Unix FDF file with UEFI HII features enabled
2 #
3 # Copyright (c) 2008, 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 #
29 # In OS X PEIMs are really XIP, so we need to make this address match the malloced
30 # buffer for the FD (0x41000000). If this address does not match the FV will get
31 # relocated in place (works, but not a great idea).
32 #
33 BaseAddress = 0x41000000|gEfiUnixPkgTokenSpaceGuid.PcdUnixFdBaseAddress #The base address of the FLASH Device.
34 Size = 0x002a0000|gEfiUnixPkgTokenSpaceGuid.PcdUnixFirmwareFdSize #The size in bytes of the FLASH Device
35 ErasePolarity = 1
36 BlockSize = 0x10000
37 NumBlocks = 0x2a
38
39 ################################################################################
40 #
41 # Following are lists of FD Region layout which correspond to the locations of different
42 # images within the flash device.
43 #
44 # Regions must be defined in ascending order and may not overlap.
45 #
46 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
47 # the pipe "|" character, followed by the size of the region, also in hex with the leading
48 # "0x" characters. Like:
49 # Offset|Size
50 # PcdOffsetCName|PcdSizeCName
51 # RegionType <FV, DATA, or FILE>
52 #
53 ################################################################################
54 0x00000000|0x00280000
55 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoveryBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashFvRecoverySize
56 FV = FvRecovery
57
58 0x00280000|0x0000c000
59 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
60 #NV_VARIABLE_STORE
61 DATA = {
62 ## This is the EFI_FIRMWARE_VOLUME_HEADER
63 # ZeroVector []
64 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
65 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
66 # FileSystemGuid: gEfiSystemNvDataFvGuid =
67 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
68 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
69 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
70 # FvLength: 0x20000
71 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
72 # Signature "_FVH" #Attributes
73 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
74 # HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision
75 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,
76 # Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block
77 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
78 # Blockmap[1]: End
79 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
80 ## This is the VARIABLE_STORE_HEADER
81 #Signature: gEfiVariableGuid =
82 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}
83 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
84 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
85 #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8
86 # This can speed up the Variable Dispatch a bit.
87 0xB8, 0xBF, 0x00, 0x00,
88 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
89 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
90 }
91
92 0x0028c000|0x00002000
93 #NV_EVENT_LOG
94 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageEventLogBase|gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageEventLogSize
95
96 0x0028e000|0x00002000
97 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
98 #NV_FTW_WORKING
99 DATA = {
100 # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEfiSystemNvDataFvGuid =
101 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
102 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
103 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
104 # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
105 0x77, 0x13, 0x9B, 0xD7, 0xFE, 0xFF, 0xFF, 0xFF,
106 # WriteQueueSize: UINT64
107 0xE0, 0x1F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
108 }
109
110 0x00290000|0x00010000
111 #NV_FTW_SPARE
112 gEfiUnixPkgTokenSpaceGuid.PcdUnixFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
113
114 ################################################################################
115 #
116 # FV Section
117 #
118 # [FV] section is used to define what components or modules are placed within a flash
119 # device file. This section also defines order the components and modules are positioned
120 # within the image. The [FV] section consists of define statements, set statements and
121 # module statements.
122 #
123 ################################################################################
124 [FV.FvRecovery]
125 FvAlignment = 16 #FV alignment and FV attributes setting.
126 ERASE_POLARITY = 1
127 MEMORY_MAPPED = TRUE
128 STICKY_WRITE = TRUE
129 LOCK_CAP = TRUE
130 LOCK_STATUS = TRUE
131 WRITE_DISABLED_CAP = TRUE
132 WRITE_ENABLED_CAP = TRUE
133 WRITE_STATUS = TRUE
134 WRITE_LOCK_CAP = TRUE
135 WRITE_LOCK_STATUS = TRUE
136 READ_DISABLED_CAP = TRUE
137 READ_ENABLED_CAP = TRUE
138 READ_STATUS = TRUE
139 READ_LOCK_CAP = TRUE
140 READ_LOCK_STATUS = TRUE
141
142 ################################################################################
143 #
144 # The INF statements point to EDK component and EDK II module INF files, which will be placed into this FV image.
145 # Parsing tools will scan the INF file to determine the type of component or module.
146 # The component or module type is used to reference the standard rules
147 # defined elsewhere in the FDF file.
148 #
149 # The format for INF statements is:
150 # INF $(PathAndInfFileName)
151 #
152 ################################################################################
153 ##
154 # PEI Phase modules
155 ##
156 ##
157 # PEI Apriori file example, more PEIM module added later.
158 ##
159 APRIORI PEI {
160 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
161 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
162 }
163 APRIORI DXE {
164 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
165 INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
166 INF UnixPkg/MetronomeDxe/Metronome.inf
167 }
168 INF MdeModulePkg/Core/Pei/PeiMain.inf
169 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
170 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
171 INF UnixPkg/BootModePei/BootModePei.inf
172 INF UnixPkg/UnixFlashMapPei/FlashMap.inf
173 INF UnixPkg/UnixAutoScanPei/UnixAutoScan.inf
174 INF UnixPkg/UnixFirmwareVolumePei/UnixFwh.inf
175 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
176 INF UnixPkg/UnixThunkPpiToProtocolPei/UnixThunkPpiToProtocol.inf
177 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
178
179 ##
180 # DXE Phase modules
181 ##
182 INF MdeModulePkg/Core/Dxe/DxeMain.inf
183 INF IntelFrameworkModulePkg/Universal/StatusCode/RuntimeDxe/StatusCodeRuntimeDxe.inf
184 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
185 INF UnixPkg/MetronomeDxe/Metronome.inf
186 INF UnixPkg/RealTimeClockRuntimeDxe/RealTimeClock.inf
187 INF UnixPkg/ResetRuntimeDxe/Reset.inf
188 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
189 INF UnixPkg/FvbServicesRuntimeDxe/UnixFwh.inf
190 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
191 INF IntelFrameworkModulePkg/Universal/DataHubDxe/DataHubDxe.inf
192 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
193 INF MdeModulePkg/Universal/MemoryTest/NullMemoryTestDxe/NullMemoryTestDxe.inf
194 INF UnixPkg/UnixThunkDxe/UnixThunk.inf
195 INF UnixPkg/CpuRuntimeDxe/Cpu.inf
196 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
197 INF IntelFrameworkModulePkg/Universal/DataHubStdErrDxe/DataHubStdErrDxe.inf
198 INF UnixPkg/MiscSubClassPlatformDxe/MiscSubClassDriver.inf
199 INF UnixPkg/TimerDxe/Timer.inf
200 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
201 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
202 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
203 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
204 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
205 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
206 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
207 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
208 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
209 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
210 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
211 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
212 INF MdeModulePkg/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 UnixPkg/UnixBusDriverDxe/UnixBusDriver.inf
217
218 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
219 INF UnixPkg/UnixBlockIoDxe/UnixBlockIo.inf
220 INF UnixPkg/UnixSerialIoDxe/UnixSerialIo.inf
221 INF UnixPkg/UnixUgaDxe/UnixUga.inf
222 #INF UnixPkg/UnixConsoleDxe/UnixConsole.inf
223 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
224 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
225 INF MdeModulePkg/Universal/PrintDxe/PrintDxe.inf
226 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
227 INF UnixPkg/UnixSimpleFileSystemDxe/UnixSimpleFileSystem.inf
228 INF MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe.inf
229 INF MdeModulePkg/Application/HelloWorld/HelloWorld.inf
230
231 #
232 # Network stack drivers
233 # To test network drivers, need network Io driver(SnpNt32Io.dll), please refer to NETWORK-IO Subproject.
234 #
235 #INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
236 #INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
237 #INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
238 #INF MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDxe.inf
239 #INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
240 #INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
241 #INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
242 #INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
243 #INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
244 #INF UnixPkg/SnpUnixDxe/SnpUnixDxe.inf
245
246
247
248 ################################################################################
249 #
250 # FILE statements are provided so that a platform integrator can include
251 # complete EFI FFS files, as well as a method for constructing FFS files
252 # using curly "{}" brace scoping. The following three FILEs are
253 # for binary shell, binary fat and logo module.
254 #
255 ################################################################################
256 FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
257 SECTION COMPRESS PI_STD {
258 SECTION GUIDED {
259 SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
260 }
261 }
262 }
263
264 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
265 SECTION COMPRESS PI_STD {
266 SECTION GUIDED {
267 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
268 }
269 }
270 }
271
272 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
273 SECTION COMPRESS PI_STD {
274 SECTION GUIDED {
275 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
276 }
277 }
278 }
279
280
281 ################################################################################
282 #
283 # Rules are use with the [FV] section's module INF type to define
284 # how an FFS file is created for a given INF file. The following Rule are the default
285 # rules for the different module type. User can add the customized rules to define the
286 # content of the FFS file.
287 #
288 ################################################################################
289
290
291 ############################################################################
292 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
293 ############################################################################
294 #
295 #[Rule.Common.DXE_DRIVER]
296 # FILE DRIVER = $(NAMED_GUID) {
297 # DXE_DEPEX DXE_DEPEX Optional |.depex
298 # COMPRESS PI_STD {
299 # GUIDED {
300 # PE32 PE32 |.efi
301 # UI STRING="$(MODULE_NAME)" Optional
302 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
303 # }
304 # }
305 # }
306 #
307 ############################################################################
308
309 [Rule.Common.PEI_CORE]
310 FILE PEI_CORE = $(NAMED_GUID) {
311 PE32 PE32 Align=32 |.efi
312 UI STRING ="$(MODULE_NAME)" Optional
313 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
314 }
315
316 [Rule.Common.PEIM]
317 FILE PEIM = $(NAMED_GUID) {
318 PEI_DEPEX PEI_DEPEX Optional |.depex
319 PE32 PE32 Align=32 |.efi
320 UI STRING="$(MODULE_NAME)" Optional
321 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
322 }
323
324 [Rule.Common.PEIM.TIANOCOMPRESSED]
325 FILE PEIM = $(NAMED_GUID) {
326 PEI_DEPEX PEI_DEPEX Optional |.depex
327 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
328 PE32 PE32 |.efi
329 UI STRING="$(MODULE_NAME)" Optional
330 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
331 }
332 }
333
334 [Rule.Common.DXE_CORE]
335 FILE DXE_CORE = $(NAMED_GUID) {
336 COMPRESS PI_STD {
337 PE32 PE32 |.efi
338 UI STRING="$(MODULE_NAME)" Optional
339 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
340 }
341 }
342
343 [Rule.Common.UEFI_DRIVER]
344 FILE DRIVER = $(NAMED_GUID) {
345 DXE_DEPEX DXE_DEPEX Optional |.depex
346 COMPRESS PI_STD {
347 GUIDED {
348 PE32 PE32 |.efi
349 UI STRING="$(MODULE_NAME)" Optional
350 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
351 }
352 }
353 }
354
355 [Rule.Common.DXE_DRIVER]
356 FILE DRIVER = $(NAMED_GUID) {
357 DXE_DEPEX DXE_DEPEX Optional |.depex
358 COMPRESS PI_STD {
359 GUIDED {
360 PE32 PE32 |.efi
361 UI STRING="$(MODULE_NAME)" Optional
362 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
363 }
364 }
365 }
366
367 [Rule.Common.DXE_RUNTIME_DRIVER]
368 FILE DRIVER = $(NAMED_GUID) {
369 DXE_DEPEX DXE_DEPEX Optional |.depex
370 COMPRESS PI_STD {
371 GUIDED {
372 PE32 PE32 |.efi
373 UI STRING="$(MODULE_NAME)" Optional
374 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
375 }
376 }
377 }
378
379 [Rule.Common.UEFI_APPLICATION]
380 FILE APPLICATION = $(NAMED_GUID) {
381 COMPRESS PI_STD {
382 GUIDED {
383 PE32 PE32 |.efi
384 UI STRING="$(MODULE_NAME)" Optional
385 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
386 }
387 }
388 }