]>
Commit | Line | Data |
---|---|---|
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 = 0x00080000|gArmTokenSpaceGuid.PcdSecureFdSize #The size in bytes of the Secure FLASH Device | |
31 | ErasePolarity = 1 | |
32 | BlockSize = 0x00001000 | |
33 | NumBlocks = 0x80 | |
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|0x00080000 | |
52 | gArmTokenSpaceGuid.PcdSecureFvBaseAddress|gArmTokenSpaceGuid.PcdSecureFvBaseSize | |
53 | FV = FVMAIN_SEC | |
54 | ||
55 | ||
56 | [FD.ArmVExpress_EFI] | |
57 | !if $(EDK2_ARMVE_STANDALONE) == 1 | |
58 | BaseAddress = 0x45000000|gArmTokenSpaceGuid.PcdNormalFdBaseAddress # The base address of the Firmware in NOR Flash. | |
59 | !else | |
60 | BaseAddress = 0x80000000|gArmTokenSpaceGuid.PcdNormalFdBaseAddress # The base address of the Firmware in remapped DRAM. | |
61 | !endif | |
62 | Size = 0x00200000|gArmTokenSpaceGuid.PcdNormalFdSize # 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 | gArmTokenSpaceGuid.PcdNormalFvBaseAddress|gArmTokenSpaceGuid.PcdNormalFvBaseSize | |
87 | FV = FVMAIN_COMPACT | |
88 | ||
89 | ||
90 | ################################################################################ | |
91 | # | |
92 | # FV Section | |
93 | # | |
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 | |
97 | # module statements. | |
98 | # | |
99 | ################################################################################ | |
100 | ||
101 | [FV.FVMAIN_SEC] | |
102 | FvAlignment = 8 | |
103 | ERASE_POLARITY = 1 | |
104 | MEMORY_MAPPED = TRUE | |
105 | STICKY_WRITE = TRUE | |
106 | LOCK_CAP = TRUE | |
107 | LOCK_STATUS = TRUE | |
108 | WRITE_DISABLED_CAP = TRUE | |
109 | WRITE_ENABLED_CAP = TRUE | |
110 | WRITE_STATUS = TRUE | |
111 | WRITE_LOCK_CAP = TRUE | |
112 | WRITE_LOCK_STATUS = TRUE | |
113 | READ_DISABLED_CAP = TRUE | |
114 | READ_ENABLED_CAP = TRUE | |
115 | READ_STATUS = TRUE | |
116 | READ_LOCK_CAP = TRUE | |
117 | READ_LOCK_STATUS = TRUE | |
118 | ||
119 | INF ArmPlatformPkg/Sec/Sec.inf | |
120 | ||
121 | ||
122 | [FV.FvMain] | |
123 | BlockSize = 0x40 | |
124 | NumBlocks = 0 # This FV gets compressed so make it just big enough | |
125 | FvAlignment = 8 # 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 | INF MdeModulePkg/Core/Dxe/DxeMain.inf | |
143 | ||
144 | # | |
145 | # PI DXE Drivers producing Architectural Protocols (EFI Services) | |
146 | # | |
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/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf | |
151 | INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf | |
152 | INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf | |
153 | INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf | |
154 | INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf | |
155 | INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf | |
156 | INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf | |
157 | ||
158 | # | |
159 | # Multiple Console IO support | |
160 | # | |
161 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf | |
162 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf | |
163 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf | |
164 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf | |
165 | INF EmbeddedPkg/SerialDxe/SerialDxe.inf | |
166 | ||
167 | INF ArmPkg/Drivers/PL390Gic/PL390GicDxe.inf | |
168 | INF ArmPlatformPkg/Drivers/SP804TimerDxe/SP804TimerDxe.inf | |
169 | INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf | |
170 | INF ArmPlatformPkg/Drivers/LcdGraphicsOutputDxe/PL111LcdGraphicsOutputDxe.inf | |
171 | INF ArmPlatformPkg/Drivers/SP805WatchdogDxe/SP805WatchdogDxe.inf | |
172 | ||
173 | # | |
174 | # Semi-hosting filesystem | |
175 | # | |
176 | INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf | |
177 | ||
178 | # | |
179 | # FAT filesystem + GPT/MBR partitioning | |
180 | # | |
181 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf | |
182 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf | |
183 | INF FatPkg/EnhancedFatDxe/Fat.inf | |
184 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf | |
185 | ||
186 | # | |
187 | # Multimedia Card Interface | |
188 | # | |
189 | INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf | |
190 | INF ArmPkg/Drivers/PL180MciDxe/PL180MciDxe.inf | |
191 | ||
192 | # | |
193 | # UEFI application (Shell Embedded Boot Loader) | |
194 | # | |
195 | INF EmbeddedPkg/Ebl/Ebl.inf | |
196 | ||
197 | # | |
198 | # Bds | |
199 | # | |
200 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf | |
201 | INF ArmPlatformPkg/Bds/Bds.inf | |
202 | ||
203 | ||
204 | [FV.FVMAIN_COMPACT] | |
205 | FvAlignment = 8 | |
206 | ERASE_POLARITY = 1 | |
207 | MEMORY_MAPPED = TRUE | |
208 | STICKY_WRITE = TRUE | |
209 | LOCK_CAP = TRUE | |
210 | LOCK_STATUS = TRUE | |
211 | WRITE_DISABLED_CAP = TRUE | |
212 | WRITE_ENABLED_CAP = TRUE | |
213 | WRITE_STATUS = TRUE | |
214 | WRITE_LOCK_CAP = TRUE | |
215 | WRITE_LOCK_STATUS = TRUE | |
216 | READ_DISABLED_CAP = TRUE | |
217 | READ_ENABLED_CAP = TRUE | |
218 | READ_STATUS = TRUE | |
219 | READ_LOCK_CAP = TRUE | |
220 | READ_LOCK_STATUS = TRUE | |
221 | ||
222 | !if $(EDK2_SKIP_PEICORE) == 1 | |
223 | INF ArmPlatformPkg/PrePi/PeiMPCore.inf | |
224 | !else | |
225 | INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf | |
226 | INF MdeModulePkg/Core/Pei/PeiMain.inf | |
227 | INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf | |
228 | INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf | |
229 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf | |
230 | INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf | |
231 | INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf | |
232 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | |
233 | !endif | |
234 | ||
235 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 { | |
236 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE { | |
237 | SECTION FV_IMAGE = FVMAIN | |
238 | } | |
239 | } | |
240 | ||
241 | ||
242 | ################################################################################ | |
243 | # | |
244 | # Rules are use with the [FV] section's module INF type to define | |
245 | # how an FFS file is created for a given INF file. The following Rule are the default | |
246 | # rules for the different module type. User can add the customized rules to define the | |
247 | # content of the FFS file. | |
248 | # | |
249 | ################################################################################ | |
250 | ||
251 | ||
252 | ############################################################################ | |
253 | # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section # | |
254 | ############################################################################ | |
255 | # | |
256 | #[Rule.Common.DXE_DRIVER] | |
257 | # FILE DRIVER = $(NAMED_GUID) { | |
258 | # DXE_DEPEX DXE_DEPEX Optional |.depex | |
259 | # COMPRESS PI_STD { | |
260 | # GUIDED { | |
261 | # PE32 PE32 |.efi | |
262 | # UI STRING="$(MODULE_NAME)" Optional | |
263 | # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER) | |
264 | # } | |
265 | # } | |
266 | # } | |
267 | # | |
268 | ############################################################################ | |
269 | ||
270 | [Rule.Common.SEC] | |
271 | FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED { | |
272 | TE TE Align = 32 |.efi | |
273 | } | |
274 | ||
275 | [Rule.Common.PEI_CORE] | |
276 | FILE PEI_CORE = $(NAMED_GUID) { | |
277 | TE TE |.efi | |
278 | UI STRING ="$(MODULE_NAME)" Optional | |
279 | } | |
280 | ||
281 | [Rule.Common.PEIM] | |
282 | FILE PEIM = $(NAMED_GUID) { | |
283 | PEI_DEPEX PEI_DEPEX Optional |.depex | |
284 | TE TE |.efi | |
285 | UI STRING="$(MODULE_NAME)" Optional | |
286 | } | |
287 | ||
288 | [Rule.Common.PEIM.TIANOCOMPRESSED] | |
289 | FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 { | |
290 | PEI_DEPEX PEI_DEPEX Optional |.depex | |
291 | GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE { | |
292 | PE32 PE32 |.efi | |
293 | UI STRING="$(MODULE_NAME)" Optional | |
294 | } | |
295 | } | |
296 | ||
297 | [Rule.Common.DXE_CORE] | |
298 | FILE DXE_CORE = $(NAMED_GUID) { | |
299 | PE32 PE32 |.efi | |
300 | UI STRING="$(MODULE_NAME)" Optional | |
301 | } | |
302 | ||
303 | [Rule.Common.UEFI_DRIVER] | |
304 | FILE DRIVER = $(NAMED_GUID) { | |
305 | DXE_DEPEX DXE_DEPEX Optional |.depex | |
306 | PE32 PE32 |.efi | |
307 | UI STRING="$(MODULE_NAME)" Optional | |
308 | } | |
309 | ||
310 | [Rule.Common.DXE_DRIVER] | |
311 | FILE DRIVER = $(NAMED_GUID) { | |
312 | DXE_DEPEX DXE_DEPEX Optional |.depex | |
313 | PE32 PE32 |.efi | |
314 | UI STRING="$(MODULE_NAME)" Optional | |
315 | } | |
316 | ||
317 | [Rule.Common.DXE_RUNTIME_DRIVER] | |
318 | FILE DRIVER = $(NAMED_GUID) { | |
319 | DXE_DEPEX DXE_DEPEX Optional |.depex | |
320 | PE32 PE32 |.efi | |
321 | UI STRING="$(MODULE_NAME)" Optional | |
322 | } | |
323 | ||
324 | [Rule.Common.UEFI_APPLICATION] | |
325 | FILE APPLICATION = $(NAMED_GUID) { | |
326 | UI STRING ="$(MODULE_NAME)" Optional | |
327 | PE32 PE32 |.efi | |
328 | } |