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 ################################################################################
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
33 BlockSize = 0x00010000
36 ################################################################################
38 # Following are lists of FD Region layout which correspond to the locations of different
39 # images within the flash device.
41 # Regions must be defined in ascending order and may not overlap.
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:
47 # PcdOffsetCName|PcdSizeCName
48 # RegionType <FV, DATA, or FILE>
50 ################################################################################
53 gEmbeddedTokenSpaceGuid.PcdFlashFvSecBase|gEmbeddedTokenSpaceGuid.PcdFlashFvSecSize
57 gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
60 ################################################################################
64 # [FV] section is used to define what components or modules are placed within a flash
65 # device file. This section also defines order the components and modules are positioned
66 # within the image. The [FV] section consists of define statements, set statements and
69 ################################################################################
78 WRITE_DISABLED_CAP = TRUE
79 WRITE_ENABLED_CAP = TRUE
82 WRITE_LOCK_STATUS = TRUE
83 READ_DISABLED_CAP = TRUE
84 READ_ENABLED_CAP = TRUE
87 READ_LOCK_STATUS = TRUE
89 INF ArmPlatformPkg/Sec/Sec.inf
94 NumBlocks = 0 # This FV gets compressed so make it just big enough
95 FvAlignment = 8 # FV alignment and FV attributes setting.
101 WRITE_DISABLED_CAP = TRUE
102 WRITE_ENABLED_CAP = TRUE
104 WRITE_LOCK_CAP = TRUE
105 WRITE_LOCK_STATUS = TRUE
106 READ_DISABLED_CAP = TRUE
107 READ_ENABLED_CAP = TRUE
110 READ_LOCK_STATUS = TRUE
112 INF MdeModulePkg/Core/Dxe/DxeMain.inf
115 # PI DXE Drivers producing Architectural Protocols (EFI Services)
117 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
118 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
119 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
120 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
121 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
122 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
123 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
124 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
125 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
126 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
127 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
129 INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
131 INF ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf
132 INF ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf
134 INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
137 # Semi-hosting filesystem
139 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
142 # FAT filesystem + GPT/MBR partitioning
144 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
145 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
146 INF FatPkg/EnhancedFatDxe/Fat.inf
147 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
150 # UEFI application (Shell Embedded Boot Loader)
152 INF EmbeddedPkg/Ebl/Ebl.inf
158 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
159 INF ArmPlatformPkg/Bds/Bds.inf
169 WRITE_DISABLED_CAP = TRUE
170 WRITE_ENABLED_CAP = TRUE
172 WRITE_LOCK_CAP = TRUE
173 WRITE_LOCK_STATUS = TRUE
174 READ_DISABLED_CAP = TRUE
175 READ_ENABLED_CAP = TRUE
178 READ_LOCK_STATUS = TRUE
180 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
181 INF MdeModulePkg/Core/Pei/PeiMain.inf
182 INF ArmPlatformPkg/PlatformPei/PlatformPei.inf
183 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPei.inf
184 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
185 INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf
186 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
187 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
189 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
190 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
191 SECTION FV_IMAGE = FVMAIN
196 ################################################################################
198 # Rules are use with the [FV] section's module INF type to define
199 # how an FFS file is created for a given INF file. The following Rule are the default
200 # rules for the different module type. User can add the customized rules to define the
201 # content of the FFS file.
203 ################################################################################
206 ############################################################################
207 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
208 ############################################################################
210 #[Rule.Common.DXE_DRIVER]
211 # FILE DRIVER = $(NAMED_GUID) {
212 # DXE_DEPEX DXE_DEPEX Optional |.depex
216 # UI STRING="$(MODULE_NAME)" Optional
217 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
222 ############################################################################
225 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
226 TE TE Align = 32 |.efi
229 [Rule.Common.PEI_CORE]
230 FILE PEI_CORE = $(NAMED_GUID) {
232 UI STRING ="$(MODULE_NAME)" Optional
236 FILE PEIM = $(NAMED_GUID) {
237 PEI_DEPEX PEI_DEPEX Optional |.depex
239 UI STRING="$(MODULE_NAME)" Optional
242 [Rule.Common.PEIM.TIANOCOMPRESSED]
243 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
244 PEI_DEPEX PEI_DEPEX Optional |.depex
245 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
247 UI STRING="$(MODULE_NAME)" Optional
251 [Rule.Common.DXE_CORE]
252 FILE DXE_CORE = $(NAMED_GUID) {
254 UI STRING="$(MODULE_NAME)" Optional
257 [Rule.Common.UEFI_DRIVER]
258 FILE DRIVER = $(NAMED_GUID) {
259 DXE_DEPEX DXE_DEPEX Optional |.depex
261 UI STRING="$(MODULE_NAME)" Optional
264 [Rule.Common.DXE_DRIVER]
265 FILE DRIVER = $(NAMED_GUID) {
266 DXE_DEPEX DXE_DEPEX Optional |.depex
268 UI STRING="$(MODULE_NAME)" Optional
271 [Rule.Common.DXE_RUNTIME_DRIVER]
272 FILE DRIVER = $(NAMED_GUID) {
273 DXE_DEPEX DXE_DEPEX Optional |.depex
275 UI STRING="$(MODULE_NAME)" Optional
278 [Rule.Common.UEFI_APPLICATION]
279 FILE APPLICATION = $(NAMED_GUID) {
280 UI STRING ="$(MODULE_NAME)" Optional