Add in commented out hooks for Shell and FatPkg.
[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 #INF FatPkg/EnhancedFatDxe/Fat.inf
247
248
249
250 ################################################################################
251 #
252 # FILE statements are provided so that a platform integrator can include
253 # complete EFI FFS files, as well as a method for constructing FFS files
254 # using curly "{}" brace scoping. The following three FILEs are
255 # for binary shell, binary fat and logo module.
256 #
257 ################################################################################
258 FILE APPLICATION = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile) {
259 SECTION COMPRESS PI_STD {
260 SECTION GUIDED {
261 SECTION PE32 = EdkShellBinPkg/FullShell/Ia32/Shell_Full.efi
262 # SECTION PE32 =Build/GccShellPkg/DEBUG_XCODE32/IA32/ShellFull.efi
263 }
264 }
265 }
266
267 FILE DRIVER = 961578FE-B6B7-44c3-AF35-6BC705CD2B1F {
268 SECTION COMPRESS PI_STD {
269 SECTION GUIDED {
270 SECTION PE32 = FatBinPkg/EnhancedFatDxe/Ia32/Fat.efi
271 }
272 }
273 }
274
275 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
276 SECTION COMPRESS PI_STD {
277 SECTION GUIDED {
278 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
279 }
280 }
281 }
282
283
284 ################################################################################
285 #
286 # Rules are use with the [FV] section's module INF type to define
287 # how an FFS file is created for a given INF file. The following Rule are the default
288 # rules for the different module type. User can add the customized rules to define the
289 # content of the FFS file.
290 #
291 ################################################################################
292
293
294 ############################################################################
295 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
296 ############################################################################
297 #
298 #[Rule.Common.DXE_DRIVER]
299 # FILE DRIVER = $(NAMED_GUID) {
300 # DXE_DEPEX DXE_DEPEX Optional |.depex
301 # COMPRESS PI_STD {
302 # GUIDED {
303 # PE32 PE32 |.efi
304 # UI STRING="$(MODULE_NAME)" Optional
305 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
306 # }
307 # }
308 # }
309 #
310 ############################################################################
311
312 [Rule.Common.PEI_CORE]
313 FILE PEI_CORE = $(NAMED_GUID) {
314 PE32 PE32 Align=32 |.efi
315 UI STRING ="$(MODULE_NAME)" Optional
316 VERSION STRING ="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
317 }
318
319 [Rule.Common.PEIM]
320 FILE PEIM = $(NAMED_GUID) {
321 PEI_DEPEX PEI_DEPEX Optional |.depex
322 PE32 PE32 Align=32 |.efi
323 UI STRING="$(MODULE_NAME)" Optional
324 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
325 }
326
327 [Rule.Common.PEIM.TIANOCOMPRESSED]
328 FILE PEIM = $(NAMED_GUID) {
329 PEI_DEPEX PEI_DEPEX Optional |.depex
330 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
331 PE32 PE32 |.efi
332 UI STRING="$(MODULE_NAME)" Optional
333 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
334 }
335 }
336
337 [Rule.Common.DXE_CORE]
338 FILE DXE_CORE = $(NAMED_GUID) {
339 COMPRESS PI_STD {
340 PE32 PE32 |.efi
341 UI STRING="$(MODULE_NAME)" Optional
342 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
343 }
344 }
345
346 [Rule.Common.UEFI_DRIVER]
347 FILE DRIVER = $(NAMED_GUID) {
348 DXE_DEPEX DXE_DEPEX Optional |.depex
349 COMPRESS PI_STD {
350 GUIDED {
351 PE32 PE32 |.efi
352 UI STRING="$(MODULE_NAME)" Optional
353 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
354 }
355 }
356 }
357
358 [Rule.Common.DXE_DRIVER]
359 FILE DRIVER = $(NAMED_GUID) {
360 DXE_DEPEX DXE_DEPEX Optional |.depex
361 COMPRESS PI_STD {
362 GUIDED {
363 PE32 PE32 |.efi
364 UI STRING="$(MODULE_NAME)" Optional
365 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
366 }
367 }
368 }
369
370 [Rule.Common.DXE_RUNTIME_DRIVER]
371 FILE DRIVER = $(NAMED_GUID) {
372 DXE_DEPEX DXE_DEPEX Optional |.depex
373 COMPRESS PI_STD {
374 GUIDED {
375 PE32 PE32 |.efi
376 UI STRING="$(MODULE_NAME)" Optional
377 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
378 }
379 }
380 }
381
382 [Rule.Common.UEFI_APPLICATION]
383 FILE APPLICATION = $(NAMED_GUID) {
384 COMPRESS PI_STD {
385 GUIDED {
386 PE32 PE32 |.efi
387 UI STRING="$(MODULE_NAME)" Optional
388 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
389 }
390 }
391 }