]>
Commit | Line | Data |
---|---|---|
afdfe8f0 | 1 | # FLASH layout file for ARM RealView EB.\r |
2 | #\r | |
3 | # Copyright (c) 2009 - 2010, Apple Inc. All rights reserved.<BR>\r | |
4 | #\r | |
5 | # This program and the accompanying materials\r | |
6 | # are licensed and made available under the terms and conditions of the BSD License\r | |
7 | # which accompanies this distribution. The full text of the license may be found at\r | |
8 | # http://opensource.org/licenses/bsd-license.php\r | |
9 | #\r | |
10 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | #\r | |
13 | \r | |
14 | ################################################################################\r | |
15 | #\r | |
16 | # FD Section\r | |
17 | # The [FD] Section is made up of the definition statements and a\r | |
18 | # description of what goes into the Flash Device Image. Each FD section\r | |
19 | # defines one flash "device" image. A flash device image may be one of\r | |
20 | # the following: Removable media bootable image (like a boot floppy\r | |
21 | # image,) an Option ROM image (that would be "flashed" into an add-in\r | |
22 | # card,) a System "Flash" image (that would be burned into a system's\r | |
23 | # flash) or an Update ("Capsule") image that will be used to update and\r | |
24 | # existing system flash.\r | |
25 | #\r | |
26 | ################################################################################\r | |
27 | \r | |
28 | \r | |
29 | [FD.ArmRealViewEb_EFI]\r | |
30 | BaseAddress = 0x40000000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress #The base address of the FLASH Device.\r | |
31 | Size = 0x00200000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdSize #The size in bytes of the FLASH Device\r | |
32 | ErasePolarity = 1\r | |
33 | BlockSize = 0x00010000\r | |
34 | NumBlocks = 0x20\r | |
35 | \r | |
36 | ################################################################################\r | |
37 | #\r | |
38 | # Following are lists of FD Region layout which correspond to the locations of different\r | |
39 | # images within the flash device.\r | |
40 | #\r | |
41 | # Regions must be defined in ascending order and may not overlap.\r | |
42 | #\r | |
43 | # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by\r | |
44 | # the pipe "|" character, followed by the size of the region, also in hex with the leading\r | |
45 | # "0x" characters. Like:\r | |
46 | # Offset|Size\r | |
47 | # PcdOffsetCName|PcdSizeCName\r | |
48 | # RegionType <FV, DATA, or FILE>\r | |
49 | #\r | |
50 | ################################################################################\r | |
51 | \r | |
52 | 0x00000000|0x001F0000\r | |
53 | gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize\r | |
54 | FV = FVMAIN_COMPACT\r | |
55 | \r | |
56 | 0x001F0000|0x00010000\r | |
57 | gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize\r | |
58 | #NV_VARIABLE_STORE\r | |
59 | DATA = {\r | |
60 | ## This is the EFI_FIRMWARE_VOLUME_HEADER\r | |
61 | # ZeroVector []\r | |
62 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r | |
63 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r | |
64 | # FileSystemGuid: gEfiSystemNvDataFvGuid =\r | |
65 | # { 0xFFF12B8D, 0x7696, 0x4C8B, { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}\r | |
66 | 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,\r | |
67 | 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,\r | |
68 | # FvLength: 0x20000\r | |
69 | 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00,\r | |
70 | #Signature "_FVH" #Attributes\r | |
71 | 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,\r | |
72 | #HeaderLength #CheckSum #ExtHeaderOffset #Reserved #Revision\r | |
73 | 0x48, 0x00, 0x36, 0x09, 0x00, 0x00, 0x00, 0x02,\r | |
74 | #Blockmap[0]: 2 Blocks * 0x10000 Bytes / Block\r | |
75 | 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,\r | |
76 | #Blockmap[1]: End\r | |
77 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r | |
78 | ## This is the VARIABLE_STORE_HEADER\r | |
79 | #Signature: gEfiVariableGuid =\r | |
80 | # { 0xddcf3616, 0x3275, 0x4164, { 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d }}\r | |
81 | 0x16, 0x36, 0xcf, 0xdd, 0x75, 0x32, 0x64, 0x41,\r | |
82 | 0x98, 0xb6, 0xfe, 0x85, 0x70, 0x7f, 0xfe, 0x7d,\r | |
83 | #Size: 0xc000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) - 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0xBFB8\r | |
84 | # This can speed up the Variable Dispatch a bit.\r | |
85 | 0xB8, 0xBF, 0x00, 0x00,\r | |
86 | #FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32\r | |
87 | 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00\r | |
88 | }\r | |
89 | \r | |
90 | ################################################################################\r | |
91 | #\r | |
92 | # FV Section\r | |
93 | #\r | |
94 | # [FV] section is used to define what components or modules are placed within a flash\r | |
95 | # device file. This section also defines order the components and modules are positioned\r | |
96 | # within the image. The [FV] section consists of define statements, set statements and\r | |
97 | # module statements.\r | |
98 | #\r | |
99 | ################################################################################\r | |
100 | \r | |
101 | [FV.FvMain]\r | |
102 | BlockSize = 0x40\r | |
103 | NumBlocks = 0 # This FV gets compressed so make it just big enough\r | |
104 | FvAlignment = 8 # FV alignment and FV attributes setting.\r | |
105 | ERASE_POLARITY = 1\r | |
106 | MEMORY_MAPPED = TRUE\r | |
107 | STICKY_WRITE = TRUE\r | |
108 | LOCK_CAP = TRUE\r | |
109 | LOCK_STATUS = TRUE\r | |
110 | WRITE_DISABLED_CAP = TRUE\r | |
111 | WRITE_ENABLED_CAP = TRUE\r | |
112 | WRITE_STATUS = TRUE\r | |
113 | WRITE_LOCK_CAP = TRUE\r | |
114 | WRITE_LOCK_STATUS = TRUE\r | |
115 | READ_DISABLED_CAP = TRUE\r | |
116 | READ_ENABLED_CAP = TRUE\r | |
117 | READ_STATUS = TRUE\r | |
118 | READ_LOCK_CAP = TRUE\r | |
119 | READ_LOCK_STATUS = TRUE\r | |
120 | \r | |
121 | #INF MdeModulePkg/Core/Dxe/DxeMain.inf \r | |
122 | \r | |
123 | #\r | |
124 | # PI DXE Drivers producing Architectural Protocols (EFI Services) \r | |
125 | #\r | |
126 | INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
127 | \r | |
128 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r | |
129 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
130 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r | |
131 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
132 | INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf\r | |
133 | INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf\r | |
134 | \r | |
135 | INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf\r | |
136 | \r | |
137 | INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf\r | |
138 | INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r | |
139 | INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
140 | \r | |
141 | INF ArmRealViewEbPkg/InterruptDxe/InterruptDxe.inf\r | |
142 | INF ArmRealViewEbPkg/TimerDxe/TimerDxe.inf\r | |
143 | \r | |
144 | #\r | |
145 | # Semi-hosting filesystem\r | |
146 | #\r | |
147 | INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
148 | \r | |
149 | #\r | |
150 | # FAT filesystem + GPT/MBR partitioning\r | |
151 | #\r | |
152 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
153 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
154 | INF FatPkg/EnhancedFatDxe/Fat.inf\r | |
155 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r | |
156 | \r | |
157 | #\r | |
158 | # UEFI application (Shell Embedded Boot Loader) \r | |
159 | # \r | |
160 | INF EmbeddedPkg/Ebl/Ebl.inf\r | |
161 | \r | |
162 | \r | |
163 | #\r | |
164 | # Bds\r | |
165 | #\r | |
166 | INF ArmRealViewEbPkg/Bds/Bds.inf\r | |
167 | \r | |
168 | \r | |
169 | [FV.FVMAIN_COMPACT]\r | |
170 | FvAlignment = 8\r | |
171 | ERASE_POLARITY = 1\r | |
172 | MEMORY_MAPPED = TRUE\r | |
173 | STICKY_WRITE = TRUE\r | |
174 | LOCK_CAP = TRUE\r | |
175 | LOCK_STATUS = TRUE\r | |
176 | WRITE_DISABLED_CAP = TRUE\r | |
177 | WRITE_ENABLED_CAP = TRUE\r | |
178 | WRITE_STATUS = TRUE\r | |
179 | WRITE_LOCK_CAP = TRUE\r | |
180 | WRITE_LOCK_STATUS = TRUE\r | |
181 | READ_DISABLED_CAP = TRUE\r | |
182 | READ_ENABLED_CAP = TRUE\r | |
183 | READ_STATUS = TRUE\r | |
184 | READ_LOCK_CAP = TRUE\r | |
185 | READ_LOCK_STATUS = TRUE\r | |
186 | \r | |
187 | INF ArmRealViewEbPkg/SecForPei/Sec.inf\r | |
188 | INF MdeModulePkg/Core/Pei/PeiMain.inf\r | |
189 | INF ArmPkg/Drivers/CpuPei/CpuPei.inf\r | |
190 | INF ArmRealViewEbPkg/PlatformPei/PlatformPei.inf\r | |
191 | INF ArmRealViewEbPkg/MemoryInitPei/MemoryInitPei.inf\r | |
192 | INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf\r | |
193 | INF IntelFrameworkModulePkg/Universal/StatusCode/Pei/StatusCodePei.inf\r | |
194 | INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf\r | |
195 | INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf\r | |
196 | \r | |
197 | # note: this needs to back in fvmaincompressed\r | |
198 | # need to add decompression of fvmain\r | |
199 | INF MdeModulePkg/Core/Dxe/DxeMain.inf \r | |
200 | \r | |
201 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {\r | |
202 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {\r | |
203 | SECTION FV_IMAGE = FVMAIN\r | |
204 | }\r | |
205 | }\r | |
206 | \r | |
207 | \r | |
208 | ################################################################################\r | |
209 | #\r | |
210 | # Rules are use with the [FV] section's module INF type to define\r | |
211 | # how an FFS file is created for a given INF file. The following Rule are the default\r | |
212 | # rules for the different module type. User can add the customized rules to define the\r | |
213 | # content of the FFS file.\r | |
214 | #\r | |
215 | ################################################################################\r | |
216 | \r | |
217 | \r | |
218 | ############################################################################\r | |
219 | # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section # \r | |
220 | ############################################################################\r | |
221 | #\r | |
222 | #[Rule.Common.DXE_DRIVER]\r | |
223 | # FILE DRIVER = $(NAMED_GUID) {\r | |
224 | # DXE_DEPEX DXE_DEPEX Optional |.depex\r | |
225 | # COMPRESS PI_STD {\r | |
226 | # GUIDED {\r | |
227 | # PE32 PE32 |.efi\r | |
228 | # UI STRING="$(MODULE_NAME)" Optional\r | |
229 | # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
230 | # }\r | |
231 | # }\r | |
232 | # }\r | |
233 | #\r | |
234 | ############################################################################\r | |
235 | \r | |
236 | [Rule.Common.SEC]\r | |
237 | FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {\r | |
238 | TE TE Align = 8 |.efi\r | |
239 | }\r | |
240 | \r | |
241 | [Rule.Common.PEI_CORE]\r | |
242 | FILE PEI_CORE = $(NAMED_GUID) {\r | |
243 | TE TE |.efi\r | |
244 | UI STRING ="$(MODULE_NAME)" Optional \r | |
245 | }\r | |
246 | \r | |
247 | [Rule.Common.PEIM]\r | |
248 | FILE PEIM = $(NAMED_GUID) {\r | |
249 | PEI_DEPEX PEI_DEPEX Optional |.depex\r | |
250 | TE TE |.efi\r | |
251 | UI STRING="$(MODULE_NAME)" Optional \r | |
252 | }\r | |
253 | \r | |
254 | [Rule.Common.PEIM.TIANOCOMPRESSED]\r | |
255 | FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {\r | |
256 | PEI_DEPEX PEI_DEPEX Optional |.depex\r | |
257 | GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {\r | |
258 | PE32 PE32 |.efi\r | |
259 | UI STRING="$(MODULE_NAME)" Optional\r | |
260 | }\r | |
261 | }\r | |
262 | \r | |
263 | [Rule.Common.DXE_CORE]\r | |
264 | FILE DXE_CORE = $(NAMED_GUID) {\r | |
265 | PE32 PE32 |.efi\r | |
266 | UI STRING="$(MODULE_NAME)" Optional\r | |
267 | }\r | |
268 | \r | |
269 | \r | |
270 | [Rule.Common.UEFI_DRIVER]\r | |
271 | FILE DRIVER = $(NAMED_GUID) {\r | |
272 | DXE_DEPEX DXE_DEPEX Optional |.depex\r | |
273 | PE32 PE32 |.efi\r | |
274 | UI STRING="$(MODULE_NAME)" Optional\r | |
275 | }\r | |
276 | \r | |
277 | [Rule.Common.DXE_DRIVER]\r | |
278 | FILE DRIVER = $(NAMED_GUID) {\r | |
279 | DXE_DEPEX DXE_DEPEX Optional |.depex\r | |
280 | PE32 PE32 |.efi\r | |
281 | UI STRING="$(MODULE_NAME)" Optional\r | |
282 | }\r | |
283 | \r | |
284 | [Rule.Common.DXE_RUNTIME_DRIVER]\r | |
285 | FILE DRIVER = $(NAMED_GUID) {\r | |
286 | DXE_DEPEX DXE_DEPEX Optional |.depex\r | |
287 | PE32 PE32 |.efi\r | |
288 | UI STRING="$(MODULE_NAME)" Optional\r | |
289 | }\r | |
290 | \r | |
291 | \r | |
292 | [Rule.Common.UEFI_APPLICATION]\r | |
293 | FILE APPLICATION = $(NAMED_GUID) {\r | |
294 | UI STRING ="$(MODULE_NAME)" Optional \r | |
295 | PE32 PE32 |.efi\r | |
296 | }\r |