]>
Commit | Line | Data |
---|---|---|
0bade105 | 1 | # FLASH layout file for Beagle board.\r |
2 | #\r | |
3 | # Copyright (c) 2009, Apple Inc. All rights reserved.<BR>\r | |
ef1b70ff | 4 | # Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.<BR>\r |
04fd7859 | 5 | # Copyright (c) 2016, Linaro, Ltd. All rights reserved.<BR>\r |
0bade105 | 6 | #\r |
7 | # This program and the accompanying materials\r | |
8 | # are licensed and made available under the terms and conditions of the BSD License\r | |
9 | # which accompanies this distribution. The full text of the license may be found at\r | |
10 | # http://opensource.org/licenses/bsd-license.php\r | |
11 | #\r | |
12 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | #\r | |
15 | \r | |
16 | ################################################################################\r | |
17 | #\r | |
18 | # FD Section\r | |
19 | # The [FD] Section is made up of the definition statements and a\r | |
20 | # description of what goes into the Flash Device Image. Each FD section\r | |
21 | # defines one flash "device" image. A flash device image may be one of\r | |
22 | # the following: Removable media bootable image (like a boot floppy\r | |
23 | # image,) an Option ROM image (that would be "flashed" into an add-in\r | |
24 | # card,) a System "Flash" image (that would be burned into a system's\r | |
25 | # flash) or an Update ("Capsule") image that will be used to update and\r | |
26 | # existing system flash.\r | |
27 | #\r | |
28 | ################################################################################\r | |
29 | \r | |
30 | \r | |
31 | [FD.BeagleBoard_EFI]\r | |
a1123292 | 32 | BaseAddress = 0x80007DF8|gArmTokenSpaceGuid.PcdFdBaseAddress #The base address of the FLASH Device.\r |
55b0a24a | 33 | Size = 0x000B0000|gArmTokenSpaceGuid.PcdFdSize #The size in bytes of the FLASH Device\r |
0bade105 | 34 | ErasePolarity = 1\r |
35 | BlockSize = 0x1\r | |
55b0a24a | 36 | NumBlocks = 0xB0000\r |
0bade105 | 37 | \r |
38 | ################################################################################\r | |
39 | #\r | |
40 | # Following are lists of FD Region layout which correspond to the locations of different\r | |
41 | # images within the flash device.\r | |
42 | #\r | |
43 | # Regions must be defined in ascending order and may not overlap.\r | |
44 | #\r | |
45 | # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by\r | |
46 | # the pipe "|" character, followed by the size of the region, also in hex with the leading\r | |
47 | # "0x" characters. Like:\r | |
48 | # Offset|Size\r | |
49 | # PcdOffsetCName|PcdSizeCName\r | |
50 | # RegionType <FV, DATA, or FILE>\r | |
51 | #\r | |
52 | ################################################################################\r | |
a1123292 AB |
53 | 0x00000000|0x00000200\r |
54 | FILE = BeagleBoardPkg/ConfigurationHeader.bin\r | |
55 | \r | |
56 | 0x00000200|0x00000008\r | |
57 | DATA = {\r | |
58 | 0xF8, 0xFD, 0x0A, 0x00, # image size: 0xB0000 - 0x208 == 0xAFDF8\r | |
59 | 0x00, 0x80, 0x00, 0x80 # entry point: 0x80008000\r | |
60 | }\r | |
61 | \r | |
62 | 0x00000208|0x000AFDF8\r | |
ff4d6bb3 | 63 | gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize\r |
0bade105 | 64 | FV = FVMAIN_COMPACT\r |
65 | \r | |
66 | ################################################################################\r | |
67 | #\r | |
68 | # FV Section\r | |
69 | #\r | |
70 | # [FV] section is used to define what components or modules are placed within a flash\r | |
71 | # device file. This section also defines order the components and modules are positioned\r | |
72 | # within the image. The [FV] section consists of define statements, set statements and\r | |
73 | # module statements.\r | |
74 | #\r | |
75 | ################################################################################\r | |
76 | \r | |
77 | [FV.FvMain]\r | |
78 | BlockSize = 0x1\r | |
79 | NumBlocks = 0 # This FV gets compressed so make it just big enough\r | |
80 | FvAlignment = 8 # FV alignment and FV attributes setting.\r | |
81 | ERASE_POLARITY = 1\r | |
82 | MEMORY_MAPPED = TRUE\r | |
83 | STICKY_WRITE = TRUE\r | |
84 | LOCK_CAP = TRUE\r | |
85 | LOCK_STATUS = TRUE\r | |
86 | WRITE_DISABLED_CAP = TRUE\r | |
87 | WRITE_ENABLED_CAP = TRUE\r | |
88 | WRITE_STATUS = TRUE\r | |
89 | WRITE_LOCK_CAP = TRUE\r | |
90 | WRITE_LOCK_STATUS = TRUE\r | |
91 | READ_DISABLED_CAP = TRUE\r | |
92 | READ_ENABLED_CAP = TRUE\r | |
93 | READ_STATUS = TRUE\r | |
94 | READ_LOCK_CAP = TRUE\r | |
95 | READ_LOCK_STATUS = TRUE\r | |
e6c51eaf | 96 | FvNameGuid = d0dd3e90-343d-4cb3-8f69-772214989282\r |
0bade105 | 97 | \r |
3402aac7 | 98 | INF MdeModulePkg/Core/Dxe/DxeMain.inf\r |
0bade105 | 99 | \r |
100 | #\r | |
3402aac7 | 101 | # PI DXE Drivers producing Architectural Protocols (EFI Services)\r |
0bade105 | 102 | #\r |
103 | INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r | |
3402aac7 | 104 | \r |
0bade105 | 105 | INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r |
106 | INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r | |
107 | INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r | |
108 | INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r | |
109 | INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf\r | |
110 | INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf\r | |
3402aac7 | 111 | \r |
0bade105 | 112 | INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r |
113 | INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf\r | |
3402aac7 | 114 | INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf\r |
e497d900 | 115 | INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r |
3402aac7 | 116 | INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r |
0bade105 | 117 | \r |
fb5a64de | 118 | INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r |
0bade105 | 119 | INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r |
120 | INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r | |
3402aac7 | 121 | \r |
89a9f54f | 122 | !if $(TARGET) == RELEASE\r |
0bade105 | 123 | #\r |
124 | # Semi-hosting filesystem\r | |
125 | #\r | |
126 | INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf\r | |
89a9f54f | 127 | !endif\r |
3402aac7 | 128 | \r |
0bade105 | 129 | #\r |
130 | # Nand Flash\r | |
131 | #\r | |
132 | INF Omap35xxPkg/Flash/Flash.inf\r | |
133 | \r | |
134 | #\r | |
135 | # MMC/SD\r | |
136 | #\r | |
137 | INF EmbeddedPkg/Universal/MmcDxe/MmcDxe.inf\r | |
138 | INF Omap35xxPkg/MmcHostDxe/MmcHostDxe.inf\r | |
3402aac7 | 139 | \r |
0bade105 | 140 | #\r |
141 | # I2C\r | |
142 | #\r | |
143 | INF Omap35xxPkg/SmbusDxe/Smbus.inf\r | |
3402aac7 | 144 | \r |
0bade105 | 145 | #\r |
146 | # SoC Drivers\r | |
147 | #\r | |
148 | INF Omap35xxPkg/Gpio/Gpio.inf\r | |
149 | INF Omap35xxPkg/InterruptDxe/InterruptDxe.inf\r | |
3402aac7 | 150 | INF Omap35xxPkg/TimerDxe/TimerDxe.inf\r |
0bade105 | 151 | INF Omap35xxPkg/LcdGraphicsOutputDxe/LcdGraphicsOutputDxe.inf\r |
152 | \r | |
153 | #\r | |
154 | # Power IC\r | |
155 | #\r | |
156 | INF Omap35xxPkg/TPS65950Dxe/TPS65950.inf\r | |
157 | \r | |
158 | #\r | |
159 | # FAT filesystem + GPT/MBR partitioning\r | |
160 | #\r | |
161 | INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r | |
162 | INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r | |
3d1ee3c1 | 163 | INF FatPkg/EnhancedFatDxe/Fat.inf\r |
0bade105 | 164 | INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r |
165 | \r | |
166 | #\r | |
167 | # USB Support\r | |
168 | #\r | |
169 | \r | |
170 | INF Omap35xxPkg/PciEmulation/PciEmulation.inf\r | |
04fd7859 | 171 | INF MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf\r |
0bade105 | 172 | \r |
0bade105 | 173 | INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf\r |
174 | INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf\r | |
175 | INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf\r | |
176 | \r | |
177 | #\r | |
3402aac7 RC |
178 | # UEFI application (Shell Embedded Boot Loader)\r |
179 | #\r | |
581a7aca | 180 | INF ShellPkg/Application/Shell/Shell.inf\r |
ef1b70ff | 181 | INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf\r |
0bade105 | 182 | \r |
183 | #\r | |
184 | # Bds\r | |
185 | #\r | |
186 | INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r | |
187 | INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r | |
581a7aca AB |
188 | INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r |
189 | INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r | |
190 | INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf\r | |
191 | INF MdeModulePkg/Application/UiApp/UiApp.inf\r | |
0bade105 | 192 | \r |
193 | \r | |
194 | [FV.FVMAIN_COMPACT]\r | |
195 | FvAlignment = 8\r | |
196 | ERASE_POLARITY = 1\r | |
197 | MEMORY_MAPPED = TRUE\r | |
198 | STICKY_WRITE = TRUE\r | |
199 | LOCK_CAP = TRUE\r | |
200 | LOCK_STATUS = TRUE\r | |
201 | WRITE_DISABLED_CAP = TRUE\r | |
202 | WRITE_ENABLED_CAP = TRUE\r | |
203 | WRITE_STATUS = TRUE\r | |
204 | WRITE_LOCK_CAP = TRUE\r | |
205 | WRITE_LOCK_STATUS = TRUE\r | |
206 | READ_DISABLED_CAP = TRUE\r | |
207 | READ_ENABLED_CAP = TRUE\r | |
208 | READ_STATUS = TRUE\r | |
209 | READ_LOCK_CAP = TRUE\r | |
210 | READ_LOCK_STATUS = TRUE\r | |
211 | \r | |
917c5627 | 212 | INF BeagleBoardPkg/PrePi/PeiUniCore.inf\r |
0bade105 | 213 | \r |
214 | FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {\r | |
215 | SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {\r | |
216 | SECTION FV_IMAGE = FVMAIN\r | |
217 | }\r | |
218 | }\r | |
219 | \r | |
220 | \r | |
221 | ################################################################################\r | |
222 | #\r | |
223 | # Rules are use with the [FV] section's module INF type to define\r | |
224 | # how an FFS file is created for a given INF file. The following Rule are the default\r | |
225 | # rules for the different module type. User can add the customized rules to define the\r | |
226 | # content of the FFS file.\r | |
227 | #\r | |
228 | ################################################################################\r | |
229 | \r | |
230 | \r | |
231 | ############################################################################\r | |
3402aac7 | 232 | # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #\r |
0bade105 | 233 | ############################################################################\r |
234 | #\r | |
235 | #[Rule.Common.DXE_DRIVER]\r | |
236 | # FILE DRIVER = $(NAMED_GUID) {\r | |
237 | # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r | |
238 | # COMPRESS PI_STD {\r | |
239 | # GUIDED {\r | |
240 | # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
241 | # UI STRING="$(MODULE_NAME)" Optional\r | |
242 | # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
243 | # }\r | |
244 | # }\r | |
245 | # }\r | |
246 | #\r | |
247 | ############################################################################\r | |
248 | \r | |
249 | [Rule.Common.SEC]\r | |
250 | FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {\r | |
251 | TE TE Align = 32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
252 | }\r | |
253 | \r | |
254 | [Rule.Common.PEI_CORE]\r | |
255 | FILE PEI_CORE = $(NAMED_GUID) {\r | |
256 | TE TE $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
3402aac7 | 257 | UI STRING ="$(MODULE_NAME)" Optional\r |
0bade105 | 258 | }\r |
259 | \r | |
260 | [Rule.Common.PEIM]\r | |
261 | FILE PEIM = $(NAMED_GUID) {\r | |
262 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r | |
263 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
3402aac7 | 264 | UI STRING="$(MODULE_NAME)" Optional\r |
0bade105 | 265 | }\r |
266 | \r | |
267 | [Rule.Common.PEIM.TIANOCOMPRESSED]\r | |
268 | FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {\r | |
269 | PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r | |
270 | GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {\r | |
271 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
272 | UI STRING="$(MODULE_NAME)" Optional\r | |
273 | }\r | |
274 | }\r | |
275 | \r | |
276 | [Rule.Common.DXE_CORE]\r | |
277 | FILE DXE_CORE = $(NAMED_GUID) {\r | |
278 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
279 | UI STRING="$(MODULE_NAME)" Optional\r | |
280 | }\r | |
281 | \r | |
282 | \r | |
283 | [Rule.Common.UEFI_DRIVER]\r | |
284 | FILE DRIVER = $(NAMED_GUID) {\r | |
285 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r | |
286 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
287 | UI STRING="$(MODULE_NAME)" Optional\r | |
288 | }\r | |
289 | \r | |
290 | [Rule.Common.DXE_DRIVER]\r | |
291 | FILE DRIVER = $(NAMED_GUID) {\r | |
292 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r | |
293 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
294 | UI STRING="$(MODULE_NAME)" Optional\r | |
295 | }\r | |
296 | \r | |
297 | [Rule.Common.DXE_RUNTIME_DRIVER]\r | |
298 | FILE DRIVER = $(NAMED_GUID) {\r | |
299 | DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex\r | |
300 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r | |
301 | UI STRING="$(MODULE_NAME)" Optional\r | |
302 | }\r | |
303 | \r | |
0bade105 | 304 | [Rule.Common.UEFI_APPLICATION]\r |
305 | FILE APPLICATION = $(NAMED_GUID) {\r | |
3402aac7 | 306 | UI STRING ="$(MODULE_NAME)" Optional\r |
0bade105 | 307 | PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi\r |
308 | }\r | |
e1772adf | 309 | \r |
310 | [Rule.Common.UEFI_DRIVER.BINARY]\r | |
311 | FILE DRIVER = $(NAMED_GUID) {\r | |
312 | DXE_DEPEX DXE_DEPEX Optional |.depex\r | |
313 | PE32 PE32 |.efi\r | |
314 | UI STRING="$(MODULE_NAME)" Optional\r | |
315 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
316 | }\r | |
317 | \r | |
318 | [Rule.Common.UEFI_APPLICATION.BINARY]\r | |
319 | FILE APPLICATION = $(NAMED_GUID) {\r | |
320 | PE32 PE32 |.efi\r | |
321 | UI STRING="$(MODULE_NAME)" Optional\r | |
322 | VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)\r | |
323 | }\r |