]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-CTA9x4.fdf
Add ArmPlatformPkg from ARM Ltd. patch.
[mirror_edk2.git] / ArmPlatformPkg / ArmVExpressPkg / ArmVExpress-CTA9x4.fdf
1 # FLASH layout file for ARM VE.
2 #
3 # Copyright (c) 2011, ARM Limited. All rights reserved.
4 #
5 # 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
28 [FD.Sec_ArmVExpress_EFI]
29 BaseAddress = 0x44000000|gArmTokenSpaceGuid.PcdSecureFdBaseAddress #The base address of the Secure FLASH Device.
30 Size = 0x00200000|gArmTokenSpaceGuid.PcdSecureFdSize #The size in bytes of the Secure FLASH Device
31 ErasePolarity = 1
32 BlockSize = 0x00001000
33 NumBlocks = 0x200
34
35 ################################################################################
36 #
37 # Following are lists of FD Region layout which correspond to the locations of different
38 # images within the flash device.
39 #
40 # Regions must be defined in ascending order and may not overlap.
41 #
42 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
43 # the pipe "|" character, followed by the size of the region, also in hex with the leading
44 # "0x" characters. Like:
45 # Offset|Size
46 # PcdOffsetCName|PcdSizeCName
47 # RegionType <FV, DATA, or FILE>
48 #
49 ################################################################################
50
51 0x00000000|0x00200000
52 gEmbeddedTokenSpaceGuid.PcdFlashFvSecBase|gEmbeddedTokenSpaceGuid.PcdFlashFvSecSize
53 FV = FVMAIN_SEC
54
55
56 [FD.ArmVExpress_EFI]
57 !if $(EDK2_ARMVE_STANDALONE) == 1
58 BaseAddress = 0x45000000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress # The base address of the Firmware in NOR Flash.
59 !else
60 BaseAddress = 0x80000000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress # The base address of the Firmware in remapped DRAM.
61 !endif
62 Size = 0x00200000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdSize # The size in bytes of the FLASH Device
63 ErasePolarity = 1
64
65 # This one is tricky, it must be: BlockSize * NumBlocks = Size
66 BlockSize = 0x00001000
67 NumBlocks = 0x200
68
69 ################################################################################
70 #
71 # Following are lists of FD Region layout which correspond to the locations of different
72 # images within the flash device.
73 #
74 # Regions must be defined in ascending order and may not overlap.
75 #
76 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
77 # the pipe "|" character, followed by the size of the region, also in hex with the leading
78 # "0x" characters. Like:
79 # Offset|Size
80 # PcdOffsetCName|PcdSizeCName
81 # RegionType <FV, DATA, or FILE>
82 #
83 ################################################################################
84
85 0x00000000|0x00200000
86 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
87 FV = FVMAIN_COMPACT
88
89
90 [FD.NVVariableStore]
91 BaseAddress = 0x47FC0000
92 Size = 0x00030000
93 ErasePolarity = 1
94 BlockSize = 0x00010000
95 NumBlocks = 0x3
96
97 0x00000000|0x00010000
98 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
99 #NV_VARIABLE_STORE
100 DATA = {
101 ## This is the EFI_FIRMWARE_VOLUME_HEADER
102 # ZeroVector []
103 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
104 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
105 # FileSystemGuid: gEfiSystemNvDataFvGuid =
106 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
107 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
108 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
109 # FvLength: 0x30000
110 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
111 #Signature "_FVH" #Attributes
112 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
113 #HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision
114 0x48, 0x00, 0x34, 0x09, 0x00, 0x00, 0x00, 0x02,
115 #Blockmap[0]: 3 Blocks * 0x10000 Bytes / Block
116 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
117 #Blockmap[1]: End
118 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
119
120 ## This is the VARIABLE_STORE_HEADER
121 #Signature: gEfiVariableGuid =
122 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}
123 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
124 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
125 #Size: 0x10000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER: HeaderLength) = 0xFFB8
126 # This can speed up the Variable Dispatch a bit.
127 0xB8, 0xFF, 0x00, 0x00,
128 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
129 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
130 }
131
132 0x00010000|0x00010000
133 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
134 #FTW_SPARE_STORE - See EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER
135 DATA = {
136 #Signature: gEfiSystemNvDataFvGuid =
137 # { 0xfff12b8d, 0x7696, 0x4c8b, { 0xa9, 0x85, 0x27, 0x47, 0x07, 0x5b, 0x4f, 0x50 } }
138 0x8d, 0x2b, 0xf1, 0xff, 0x96, 0x32, 0x8b, 0x4c,
139 0xa9, 0x85, 0x27, 0x47, 0x07, 0x5b, 0x4f, 0x50,
140 #FIXME: 32bit CRC caculated for this header.
141 0x00, 0x00, 0x00, 0x00,
142 # Working block valid bit
143 0x00,
144 # Total size of the following write queue range. (64bit)
145 0xB8, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
146
147 # Write Queue data: EFI_FAULT_TOLERANT_WRITE_HEADER
148 # State
149 0x00,
150 # CallerId: Guid
151 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
152 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
153 # NumberOfWrites, PrivateDataSize
154 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
155 }
156
157 0x00020000|0x00010000
158 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
159 DATA = {
160 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
161 }
162
163
164
165 ################################################################################
166 #
167 # FV Section
168 #
169 # [FV] section is used to define what components or modules are placed within a flash
170 # device file. This section also defines order the components and modules are positioned
171 # within the image. The [FV] section consists of define statements, set statements and
172 # module statements.
173 #
174 ################################################################################
175
176 [FV.FVMAIN_SEC]
177 FvAlignment = 8
178 ERASE_POLARITY = 1
179 MEMORY_MAPPED = TRUE
180 STICKY_WRITE = TRUE
181 LOCK_CAP = TRUE
182 LOCK_STATUS = TRUE
183 WRITE_DISABLED_CAP = TRUE
184 WRITE_ENABLED_CAP = TRUE
185 WRITE_STATUS = TRUE
186 WRITE_LOCK_CAP = TRUE
187 WRITE_LOCK_STATUS = TRUE
188 READ_DISABLED_CAP = TRUE
189 READ_ENABLED_CAP = TRUE
190 READ_STATUS = TRUE
191 READ_LOCK_CAP = TRUE
192 READ_LOCK_STATUS = TRUE
193
194 INF ArmPlatformPkg/Sec/Sec.inf
195
196
197 [FV.FvMain]
198 BlockSize = 0x40
199 NumBlocks = 0 # This FV gets compressed so make it just big enough
200 FvAlignment = 8 # FV alignment and FV attributes setting.
201 ERASE_POLARITY = 1
202 MEMORY_MAPPED = TRUE
203 STICKY_WRITE = TRUE
204 LOCK_CAP = TRUE
205 LOCK_STATUS = TRUE
206 WRITE_DISABLED_CAP = TRUE
207 WRITE_ENABLED_CAP = TRUE
208 WRITE_STATUS = TRUE
209 WRITE_LOCK_CAP = TRUE
210 WRITE_LOCK_STATUS = TRUE
211 READ_DISABLED_CAP = TRUE
212 READ_ENABLED_CAP = TRUE
213 READ_STATUS = TRUE
214 READ_LOCK_CAP = TRUE
215 READ_LOCK_STATUS = TRUE
216
217 INF MdeModulePkg/Core/Dxe/DxeMain.inf
218
219 #
220 # PI DXE Drivers producing Architectural Protocols (EFI Services)
221 #
222 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
223 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
224 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
225 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
226 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
227 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
228 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
229 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
230 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
231 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
232 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
233
234 INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
235
236 INF ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf
237 INF ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
238 INF ArmPlatformPkg/ArmVExpressPkg/NorFlashDxe/NorFlashDxe.inf
239
240 #
241 # Semi-hosting filesystem
242 #
243 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
244
245 #
246 # FAT filesystem + GPT/MBR partitioning
247 #
248 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
249 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
250 INF FatPkg/EnhancedFatDxe/Fat.inf
251 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
252
253 #
254 # Multimedia Card Interface
255 #
256 INF ArmPkg/Universal/MmcDxe/MmcDxe.inf
257 INF ArmPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
258
259 #
260 # UEFI application (Shell Embedded Boot Loader)
261 #
262 INF EmbeddedPkg/Ebl/Ebl.inf
263
264 #
265 # Bds
266 #
267 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
268 INF ArmPlatformPkg/Bds/Bds.inf
269
270
271 [FV.FVMAIN_COMPACT]
272 FvAlignment = 8
273 ERASE_POLARITY = 1
274 MEMORY_MAPPED = TRUE
275 STICKY_WRITE = TRUE
276 LOCK_CAP = TRUE
277 LOCK_STATUS = TRUE
278 WRITE_DISABLED_CAP = TRUE
279 WRITE_ENABLED_CAP = TRUE
280 WRITE_STATUS = TRUE
281 WRITE_LOCK_CAP = TRUE
282 WRITE_LOCK_STATUS = TRUE
283 READ_DISABLED_CAP = TRUE
284 READ_ENABLED_CAP = TRUE
285 READ_STATUS = TRUE
286 READ_LOCK_CAP = TRUE
287 READ_LOCK_STATUS = TRUE
288
289 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
290 INF MdeModulePkg/Core/Pei/PeiMain.inf
291 INF ArmPlatformPkg/PlatformPei/PlatformPei.inf
292 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPei.inf
293 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
294 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
295 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
296 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
297
298 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
299 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
300 SECTION FV_IMAGE = FVMAIN
301 }
302 }
303
304
305 ################################################################################
306 #
307 # Rules are use with the [FV] section's module INF type to define
308 # how an FFS file is created for a given INF file. The following Rule are the default
309 # rules for the different module type. User can add the customized rules to define the
310 # content of the FFS file.
311 #
312 ################################################################################
313
314
315 ############################################################################
316 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
317 ############################################################################
318 #
319 #[Rule.Common.DXE_DRIVER]
320 # FILE DRIVER = $(NAMED_GUID) {
321 # DXE_DEPEX DXE_DEPEX Optional |.depex
322 # COMPRESS PI_STD {
323 # GUIDED {
324 # PE32 PE32 |.efi
325 # UI STRING="$(MODULE_NAME)" Optional
326 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
327 # }
328 # }
329 # }
330 #
331 ############################################################################
332
333 [Rule.Common.SEC]
334 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
335 TE TE Align = 8 |.efi
336 }
337
338 [Rule.Common.PEI_CORE]
339 FILE PEI_CORE = $(NAMED_GUID) {
340 TE TE |.efi
341 UI STRING ="$(MODULE_NAME)" Optional
342 }
343
344 [Rule.Common.PEIM]
345 FILE PEIM = $(NAMED_GUID) {
346 PEI_DEPEX PEI_DEPEX Optional |.depex
347 TE TE |.efi
348 UI STRING="$(MODULE_NAME)" Optional
349 }
350
351 [Rule.Common.PEIM.TIANOCOMPRESSED]
352 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
353 PEI_DEPEX PEI_DEPEX Optional |.depex
354 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
355 PE32 PE32 |.efi
356 UI STRING="$(MODULE_NAME)" Optional
357 }
358 }
359
360 [Rule.Common.DXE_CORE]
361 FILE DXE_CORE = $(NAMED_GUID) {
362 PE32 PE32 |.efi
363 UI STRING="$(MODULE_NAME)" Optional
364 }
365
366 [Rule.Common.UEFI_DRIVER]
367 FILE DRIVER = $(NAMED_GUID) {
368 DXE_DEPEX DXE_DEPEX Optional |.depex
369 PE32 PE32 |.efi
370 UI STRING="$(MODULE_NAME)" Optional
371 }
372
373 [Rule.Common.DXE_DRIVER]
374 FILE DRIVER = $(NAMED_GUID) {
375 DXE_DEPEX DXE_DEPEX Optional |.depex
376 PE32 PE32 |.efi
377 UI STRING="$(MODULE_NAME)" Optional
378 }
379
380 [Rule.Common.DXE_RUNTIME_DRIVER]
381 FILE DRIVER = $(NAMED_GUID) {
382 DXE_DEPEX DXE_DEPEX Optional |.depex
383 PE32 PE32 |.efi
384 UI STRING="$(MODULE_NAME)" Optional
385 }
386
387 [Rule.Common.UEFI_APPLICATION]
388 FILE APPLICATION = $(NAMED_GUID) {
389 UI STRING ="$(MODULE_NAME)" Optional
390 PE32 PE32 |.efi
391 }