1 # FLASH layout file for ARM VE.
3 # Copyright (c) 2011, ARM Limited. All rights reserved.
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
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.
14 ################################################################################
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.
26 ################################################################################
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
32 BlockSize = 0x00001000
35 ################################################################################
37 # Following are lists of FD Region layout which correspond to the locations of different
38 # images within the flash device.
40 # Regions must be defined in ascending order and may not overlap.
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:
46 # PcdOffsetCName|PcdSizeCName
47 # RegionType <FV, DATA, or FILE>
49 ################################################################################
52 gEmbeddedTokenSpaceGuid.PcdFlashFvSecBase|gEmbeddedTokenSpaceGuid.PcdFlashFvSecSize
57 !if $(EDK2_ARMVE_STANDALONE) == 1
58 BaseAddress = 0x45000000|gArmTokenSpaceGuid.PcdNormalFdBaseAddress # The base address of the Firmware in NOR Flash.
60 BaseAddress = 0x80000000|gArmTokenSpaceGuid.PcdNormalFdBaseAddress # The base address of the Firmware in remapped DRAM.
62 Size = 0x00200000|gArmTokenSpaceGuid.PcdNormalFdSize # The size in bytes of the FLASH Device
65 # This one is tricky, it must be: BlockSize * NumBlocks = Size
66 BlockSize = 0x00001000
69 ################################################################################
71 # Following are lists of FD Region layout which correspond to the locations of different
72 # images within the flash device.
74 # Regions must be defined in ascending order and may not overlap.
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:
80 # PcdOffsetCName|PcdSizeCName
81 # RegionType <FV, DATA, or FILE>
83 ################################################################################
86 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
90 ################################################################################
94 # [FV] section is used to define what components or modules are placed within a flash
95 # device file. This section also defines order the components and modules are positioned
96 # within the image. The [FV] section consists of define statements, set statements and
99 ################################################################################
108 WRITE_DISABLED_CAP = TRUE
109 WRITE_ENABLED_CAP = TRUE
111 WRITE_LOCK_CAP = TRUE
112 WRITE_LOCK_STATUS = TRUE
113 READ_DISABLED_CAP = TRUE
114 READ_ENABLED_CAP = TRUE
117 READ_LOCK_STATUS = TRUE
119 INF ArmPlatformPkg/Sec/Sec.inf
124 NumBlocks = 0 # This FV gets compressed so make it just big enough
125 FvAlignment = 8 # FV alignment and FV attributes setting.
131 WRITE_DISABLED_CAP = TRUE
132 WRITE_ENABLED_CAP = TRUE
134 WRITE_LOCK_CAP = TRUE
135 WRITE_LOCK_STATUS = TRUE
136 READ_DISABLED_CAP = TRUE
137 READ_ENABLED_CAP = TRUE
140 READ_LOCK_STATUS = TRUE
142 INF MdeModulePkg/Core/Dxe/DxeMain.inf
145 # PI DXE Drivers producing Architectural Protocols (EFI Services)
147 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
148 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
149 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
150 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
151 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
152 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
153 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
154 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
155 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
156 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
157 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
159 INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
161 INF ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf
162 INF ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
163 INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
164 INF ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf
165 INF ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf
168 # Semi-hosting filesystem
170 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
173 # FAT filesystem + GPT/MBR partitioning
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
181 # Multimedia Card Interface
183 INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf
184 INF ArmPkg/Drivers/PL180MciDxe/PL180MciDxe.inf
187 # UEFI application (Shell Embedded Boot Loader)
189 INF EmbeddedPkg/Ebl/Ebl.inf
194 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
195 INF ArmPlatformPkg/Bds/Bds.inf
205 WRITE_DISABLED_CAP = TRUE
206 WRITE_ENABLED_CAP = TRUE
208 WRITE_LOCK_CAP = TRUE
209 WRITE_LOCK_STATUS = TRUE
210 READ_DISABLED_CAP = TRUE
211 READ_ENABLED_CAP = TRUE
214 READ_LOCK_STATUS = TRUE
216 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
217 INF MdeModulePkg/Core/Pei/PeiMain.inf
218 INF ArmPlatformPkg/PlatformPei/PlatformPei.inf
219 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPei.inf
220 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
221 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
222 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
223 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
225 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
226 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
227 SECTION FV_IMAGE = FVMAIN
232 ################################################################################
234 # Rules are use with the [FV] section's module INF type to define
235 # how an FFS file is created for a given INF file. The following Rule are the default
236 # rules for the different module type. User can add the customized rules to define the
237 # content of the FFS file.
239 ################################################################################
242 ############################################################################
243 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
244 ############################################################################
246 #[Rule.Common.DXE_DRIVER]
247 # FILE DRIVER = $(NAMED_GUID) {
248 # DXE_DEPEX DXE_DEPEX Optional |.depex
252 # UI STRING="$(MODULE_NAME)" Optional
253 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
258 ############################################################################
261 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
262 TE TE Align = 32 |.efi
265 [Rule.Common.PEI_CORE]
266 FILE PEI_CORE = $(NAMED_GUID) {
268 UI STRING ="$(MODULE_NAME)" Optional
272 FILE PEIM = $(NAMED_GUID) {
273 PEI_DEPEX PEI_DEPEX Optional |.depex
275 UI STRING="$(MODULE_NAME)" Optional
278 [Rule.Common.PEIM.TIANOCOMPRESSED]
279 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
280 PEI_DEPEX PEI_DEPEX Optional |.depex
281 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
283 UI STRING="$(MODULE_NAME)" Optional
287 [Rule.Common.DXE_CORE]
288 FILE DXE_CORE = $(NAMED_GUID) {
290 UI STRING="$(MODULE_NAME)" Optional
293 [Rule.Common.UEFI_DRIVER]
294 FILE DRIVER = $(NAMED_GUID) {
295 DXE_DEPEX DXE_DEPEX Optional |.depex
297 UI STRING="$(MODULE_NAME)" Optional
300 [Rule.Common.DXE_DRIVER]
301 FILE DRIVER = $(NAMED_GUID) {
302 DXE_DEPEX DXE_DEPEX Optional |.depex
304 UI STRING="$(MODULE_NAME)" Optional
307 [Rule.Common.DXE_RUNTIME_DRIVER]
308 FILE DRIVER = $(NAMED_GUID) {
309 DXE_DEPEX DXE_DEPEX Optional |.depex
311 UI STRING="$(MODULE_NAME)" Optional
314 [Rule.Common.UEFI_APPLICATION]
315 FILE APPLICATION = $(NAMED_GUID) {
316 UI STRING ="$(MODULE_NAME)" Optional