]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/ArmRealViewEbPkg/ArmRealViewEb-RTSM-MPCore.fdf
2873c562a97441ac4b3301bf39b980879d18ebff
[mirror_edk2.git] / ArmPlatformPkg / ArmRealViewEbPkg / ArmRealViewEb-RTSM-MPCore.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
29 [FD.ArmRealViewEb_EFI]
30 BaseAddress = 0x40000000 # The base address of the FLASH Device.
31 Size = 0x00200000 # The size in bytes of the FLASH Device
32 ErasePolarity = 1
33 BlockSize = 0x00010000
34 NumBlocks = 0x20
35
36 ################################################################################
37 #
38 # Following are lists of FD Region layout which correspond to the locations of different
39 # images within the flash device.
40 #
41 # Regions must be defined in ascending order and may not overlap.
42 #
43 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
44 # the pipe "|" character, followed by the size of the region, also in hex with the leading
45 # "0x" characters. Like:
46 # Offset|Size
47 # PcdOffsetCName|PcdSizeCName
48 # RegionType <FV, DATA, or FILE>
49 #
50 ################################################################################
51
52 0x00000000|0x00050000
53 gEmbeddedTokenSpaceGuid.PcdFlashFvSecBase|gEmbeddedTokenSpaceGuid.PcdFlashFvSecSize
54 FV = FVMAIN_SEC
55
56 0x00050000|0x00100000
57 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
58 FV = FVMAIN_COMPACT
59
60 0x00150000|0x00010000
61 gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
62 #NV_VARIABLE_STORE
63 DATA = {
64 ## This is the EFI_FIRMWARE_VOLUME_HEADER
65 # ZeroVector []
66 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
67 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
68 # FileSystemGuid: gEfiSystemNvDataFvGuid =
69 # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
70 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
71 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
72 # FvLength: 0x20000
73 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,
74 #Signature "_FVH" #Attributes
75 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
76 #HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision
77 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,
78 #Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block
79 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
80 #Blockmap[1]: End
81 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
82 ## This is the VARIABLE_STORE_HEADER
83 #Signature: gEfiVariableGuid =
84 # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}
85 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,
86 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,
87 #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8
88 # This can speed up the Variable Dispatch a bit.
89 0xB8, 0xBF, 0x00, 0x00,
90 #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
91 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
92 }
93
94 ################################################################################
95 #
96 # FV Section
97 #
98 # [FV] section is used to define what components or modules are placed within a flash
99 # device file. This section also defines order the components and modules are positioned
100 # within the image. The [FV] section consists of define statements, set statements and
101 # module statements.
102 #
103 ################################################################################
104
105 [FV.FVMAIN_SEC]
106 FvAlignment = 8
107 ERASE_POLARITY = 1
108 MEMORY_MAPPED = TRUE
109 STICKY_WRITE = TRUE
110 LOCK_CAP = TRUE
111 LOCK_STATUS = TRUE
112 WRITE_DISABLED_CAP = TRUE
113 WRITE_ENABLED_CAP = TRUE
114 WRITE_STATUS = TRUE
115 WRITE_LOCK_CAP = TRUE
116 WRITE_LOCK_STATUS = TRUE
117 READ_DISABLED_CAP = TRUE
118 READ_ENABLED_CAP = TRUE
119 READ_STATUS = TRUE
120 READ_LOCK_CAP = TRUE
121 READ_LOCK_STATUS = TRUE
122
123 INF ArmPlatformPkg/Sec/Sec.inf
124
125
126 [FV.FvMain]
127 BlockSize = 0x40
128 NumBlocks = 0 # This FV gets compressed so make it just big enough
129 FvAlignment = 8 # FV alignment and FV attributes setting.
130 ERASE_POLARITY = 1
131 MEMORY_MAPPED = TRUE
132 STICKY_WRITE = TRUE
133 LOCK_CAP = TRUE
134 LOCK_STATUS = TRUE
135 WRITE_DISABLED_CAP = TRUE
136 WRITE_ENABLED_CAP = TRUE
137 WRITE_STATUS = TRUE
138 WRITE_LOCK_CAP = TRUE
139 WRITE_LOCK_STATUS = TRUE
140 READ_DISABLED_CAP = TRUE
141 READ_ENABLED_CAP = TRUE
142 READ_STATUS = TRUE
143 READ_LOCK_CAP = TRUE
144 READ_LOCK_STATUS = TRUE
145
146 INF MdeModulePkg/Core/Dxe/DxeMain.inf
147
148 #
149 # PI DXE Drivers producing Architectural Protocols (EFI Services)
150 #
151 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
152 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
153 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
154 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
155 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
156 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
157 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
158 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
159 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
160 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
161
162 INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
163
164 INF ArmPlatformPkg/ArmRealViewEbPkg/InterruptDxe/InterruptDxe.inf
165 INF ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
166
167 #
168 # Semi-hosting filesystem
169 #
170 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
171
172 #
173 # FAT filesystem + GPT/MBR partitioning
174 #
175 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
176 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
177 INF FatPkg/EnhancedFatDxe/Fat.inf
178 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
179
180 #
181 # UEFI application (Shell Embedded Boot Loader)
182 #
183 INF EmbeddedPkg/Ebl/Ebl.inf
184
185
186 #
187 # Bds
188 #
189 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
190 INF ArmPlatformPkg/Bds/Bds.inf
191
192
193 [FV.FVMAIN_COMPACT]
194 FvAlignment = 8
195 ERASE_POLARITY = 1
196 MEMORY_MAPPED = TRUE
197 STICKY_WRITE = TRUE
198 LOCK_CAP = TRUE
199 LOCK_STATUS = TRUE
200 WRITE_DISABLED_CAP = TRUE
201 WRITE_ENABLED_CAP = TRUE
202 WRITE_STATUS = TRUE
203 WRITE_LOCK_CAP = TRUE
204 WRITE_LOCK_STATUS = TRUE
205 READ_DISABLED_CAP = TRUE
206 READ_ENABLED_CAP = TRUE
207 READ_STATUS = TRUE
208 READ_LOCK_CAP = TRUE
209 READ_LOCK_STATUS = TRUE
210
211 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
212 INF MdeModulePkg/Core/Pei/PeiMain.inf
213 INF ArmPlatformPkg/PlatformPei/PlatformPei.inf
214 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPei.inf
215 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
216 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
217 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
218 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
219
220 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
221 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
222 SECTION FV_IMAGE = FVMAIN
223 }
224 }
225
226
227 ################################################################################
228 #
229 # Rules are use with the [FV] section's module INF type to define
230 # how an FFS file is created for a given INF file. The following Rule are the default
231 # rules for the different module type. User can add the customized rules to define the
232 # content of the FFS file.
233 #
234 ################################################################################
235
236
237 ############################################################################
238 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
239 ############################################################################
240 #
241 #[Rule.Common.DXE_DRIVER]
242 # FILE DRIVER = $(NAMED_GUID) {
243 # DXE_DEPEX DXE_DEPEX Optional |.depex
244 # COMPRESS PI_STD {
245 # GUIDED {
246 # PE32 PE32 |.efi
247 # UI STRING="$(MODULE_NAME)" Optional
248 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
249 # }
250 # }
251 # }
252 #
253 ############################################################################
254
255 [Rule.Common.SEC]
256 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
257 TE TE Align = 32 |.efi
258 }
259
260 [Rule.Common.PEI_CORE]
261 FILE PEI_CORE = $(NAMED_GUID) {
262 TE TE |.efi
263 UI STRING ="$(MODULE_NAME)" Optional
264 }
265
266 [Rule.Common.PEIM]
267 FILE PEIM = $(NAMED_GUID) {
268 PEI_DEPEX PEI_DEPEX Optional |.depex
269 TE TE |.efi
270 UI STRING="$(MODULE_NAME)" Optional
271 }
272
273 [Rule.Common.PEIM.TIANOCOMPRESSED]
274 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
275 PEI_DEPEX PEI_DEPEX Optional |.depex
276 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
277 PE32 PE32 |.efi
278 UI STRING="$(MODULE_NAME)" Optional
279 }
280 }
281
282 [Rule.Common.DXE_CORE]
283 FILE DXE_CORE = $(NAMED_GUID) {
284 PE32 PE32 |.efi
285 UI STRING="$(MODULE_NAME)" Optional
286 }
287
288 [Rule.Common.UEFI_DRIVER]
289 FILE DRIVER = $(NAMED_GUID) {
290 DXE_DEPEX DXE_DEPEX Optional |.depex
291 PE32 PE32 |.efi
292 UI STRING="$(MODULE_NAME)" Optional
293 }
294
295 [Rule.Common.DXE_DRIVER]
296 FILE DRIVER = $(NAMED_GUID) {
297 DXE_DEPEX DXE_DEPEX Optional |.depex
298 PE32 PE32 |.efi
299 UI STRING="$(MODULE_NAME)" Optional
300 }
301
302 [Rule.Common.DXE_RUNTIME_DRIVER]
303 FILE DRIVER = $(NAMED_GUID) {
304 DXE_DEPEX DXE_DEPEX Optional |.depex
305 PE32 PE32 |.efi
306 UI STRING="$(MODULE_NAME)" Optional
307 }
308
309 [Rule.Common.UEFI_APPLICATION]
310 FILE APPLICATION = $(NAMED_GUID) {
311 UI STRING ="$(MODULE_NAME)" Optional
312 PE32 PE32 |.efi
313 }