]> git.proxmox.com Git - mirror_edk2.git/blame - BeagleBoardPkg/AppleBeagleBoardPkg.fdf
Working on having a single stack for all modes. This code currently has an issue...
[mirror_edk2.git] / BeagleBoardPkg / AppleBeagleBoardPkg.fdf
CommitLineData
2ef2b01e
A
1# FLASH layout file for Beagle board.
2#
3# Copyright (c) 2009, Apple Inc. All rights reserved.
4#
5# All rights reserved. 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
29[FD.BeagleBoard_EFI]
30BaseAddress = 0x80008000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdBaseAddress #The base address of the FLASH Device.
31Size = 0x00080000|gEmbeddedTokenSpaceGuid.PcdEmbeddedFdSize #The size in bytes of the FLASH Device
32ErasePolarity = 1
33BlockSize = 0x40
34NumBlocks = 0x2000
35
36################################################################################
37#
38# Following are lists of FD Region layout which correspond to the locations of different
39# images within the flash device.
40#
41# Regions must be defined in ascending order and may not overlap.
42#
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:
46# Offset|Size
47# PcdOffsetCName|PcdSizeCName
48# RegionType <FV, DATA, or FILE>
49#
50################################################################################
51
52# 512 bytes of configuration header & 8 bytes of image header
530x00000000|0x00000208
54
550x00000208|0x0007FDF8
56gEmbeddedTokenSpaceGuid.PcdFlashFvMainBase|gEmbeddedTokenSpaceGuid.PcdFlashFvMainSize
57FV = FVMAIN_COMPACT
58
59################################################################################
60#
61# FV Section
62#
63# [FV] section is used to define what components or modules are placed within a flash
64# device file. This section also defines order the components and modules are positioned
65# within the image. The [FV] section consists of define statements, set statements and
66# module statements.
67#
68################################################################################
69
70[FV.FvMain]
71BlockSize = 0x40
72NumBlocks = 0x9000
73FvAlignment = 8 #FV alignment and FV attributes setting.
74ERASE_POLARITY = 1
75MEMORY_MAPPED = TRUE
76STICKY_WRITE = TRUE
77LOCK_CAP = TRUE
78LOCK_STATUS = TRUE
79WRITE_DISABLED_CAP = TRUE
80WRITE_ENABLED_CAP = TRUE
81WRITE_STATUS = TRUE
82WRITE_LOCK_CAP = TRUE
83WRITE_LOCK_STATUS = TRUE
84READ_DISABLED_CAP = TRUE
85READ_ENABLED_CAP = TRUE
86READ_STATUS = TRUE
87READ_LOCK_CAP = TRUE
88READ_LOCK_STATUS = TRUE
89
90 #
91 # PI DXE Drivers producing Architectural Protocols (EFI Services)
92 #
93 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
94
95 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
96 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
97 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
98 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
99 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf
100 INF EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter.inf
101
102 INF EmbeddedPkg/SimpleTextInOutSerial/SimpleTextInOutSerial.inf
103
104 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
105 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
106 INF EmbeddedPkg/TemplateMetronomeDxe/TemplateMetronomeDxe.inf
107
108 #
109 # Semi-hosting filesystem
110 #
111 INF ArmPkg/Filesystem/SemihostFs/SemihostFs.inf
112
113 #
114 # Nand Flash
115 #
116 INF BeagleBoardPkg/Flash/Flash.inf
117
118 #
119 # MMC/SD
120 #
121 INF BeagleBoardPkg/MMCHSDxe/MMCHS.inf
122
123 #
124 # I2C
125 #
126 INF BeagleBoardPkg/SmbusDxe/Smbus.inf
127
128 #
129 # SoC Drivers
130 #
131 INF BeagleBoardPkg/Gpio/Gpio.inf
132 INF BeagleBoardPkg/InterruptDxe/InterruptDxe.inf
133 INF BeagleBoardPkg/TimerDxe/TimerDxe.inf
134
135 #
136 # Power IC
137 #
138 INF BeagleBoardPkg/TPS65950Dxe/TPS65950.inf
139
140 #
141 # FAT filesystem + GPT/MBR partitioning
142 #
143 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
144 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
145 INF EnhancedFat/FatDxe/FatDxe.inf
146 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
147
148 #
149 # USB Support
150 #
151
152 INF BeagleBoardPkg/PciEmulation/PciEmulation.inf
153 INF AppleCommonPkg/Bus/Pci/EhciDxe/Ehci.inf
154 INF AppleCommonPkg/Bus/Usb/UsbBotDxe/UsbBot.inf
155 INF AppleCommonPkg/Bus/Usb/UsbCbiDxe/Cbi0/UsbCbi0.inf
156 INF AppleCommonPkg/Bus/Usb/UsbCbiDxe/Cbi1/UsbCbi1.inf
157 INF AppleCommonPkg/Bus/Usb/UsbBusDxe/UsbBus.inf
158 INF AppleCommonPkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorage.inf
159
160
161 #NOTE: Open source EHCI stack doesn't work on Beagleboard.
162 #NOTE: UsbBus and UsbMassStorage don't work using iPhond SDK tool chain.
163 #INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
164 #INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
165 #INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
166
167 #
168 # UEFI application (Shell Embedded Boot Loader)
169 #
170 INF EmbeddedPkg/Ebl/Ebl.inf
171
172
173 #
174 # Bds
175 #
176 INF BeagleBoardPkg/Bds/Bds.inf
177
178 #
179 # Gdb Stub
180 #
181 #INF ArmPkg/Drivers/DebugSupportDxe/DebugSupportDxe.inf
182 #INF ApplePkg/Universal/GdbStub/GdbStub.inf
183
184
185[FV.FVMAIN_COMPACT]
186FvAlignment = 8
187ERASE_POLARITY = 1
188MEMORY_MAPPED = TRUE
189STICKY_WRITE = TRUE
190LOCK_CAP = TRUE
191LOCK_STATUS = TRUE
192WRITE_DISABLED_CAP = TRUE
193WRITE_ENABLED_CAP = TRUE
194WRITE_STATUS = TRUE
195WRITE_LOCK_CAP = TRUE
196WRITE_LOCK_STATUS = TRUE
197READ_DISABLED_CAP = TRUE
198READ_ENABLED_CAP = TRUE
199READ_STATUS = TRUE
200READ_LOCK_CAP = TRUE
201READ_LOCK_STATUS = TRUE
202
203 INF BeagleBoardPkg/Sec/Sec.inf
204 INF MdeModulePkg/Core/Dxe/DxeMain.inf
205
206 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
207 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
208 SECTION FV_IMAGE = FVMAIN
209 }
210 }
211
212
213################################################################################
214#
215# Rules are use with the [FV] section's module INF type to define
216# how an FFS file is created for a given INF file. The following Rule are the default
217# rules for the different module type. User can add the customized rules to define the
218# content of the FFS file.
219#
220################################################################################
221
222
223############################################################################
224# Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
225############################################################################
226#
227#[Rule.Common.DXE_DRIVER]
228# FILE DRIVER = $(NAMED_GUID) {
229# DXE_DEPEX DXE_DEPEX Optional |.depex
230# COMPRESS PI_STD {
231# GUIDED {
232# PE32 PE32 |.efi
233# UI STRING="$(MODULE_NAME)" Optional
234# VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
235# }
236# }
237# }
238#
239############################################################################
240
241[Rule.Common.SEC]
242 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED {
243 TE TE Align = 8 |.efi
244 }
245
246[Rule.Common.PEI_CORE]
247 FILE PEI_CORE = $(NAMED_GUID) {
248 TE TE |.efi
249 UI STRING ="$(MODULE_NAME)" Optional
250 }
251
252[Rule.Common.PEIM]
253 FILE PEIM = $(NAMED_GUID) {
254 PEI_DEPEX PEI_DEPEX Optional |.depex
255 PE32 PE32 |.efi
256 UI STRING="$(MODULE_NAME)" Optional
257 }
258
259[Rule.Common.PEIM.TIANOCOMPRESSED]
260 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
261 PEI_DEPEX PEI_DEPEX Optional |.depex
262 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
263 PE32 PE32 |.efi
264 UI STRING="$(MODULE_NAME)" Optional
265 }
266 }
267
268[Rule.Common.DXE_CORE]
269 FILE DXE_CORE = $(NAMED_GUID) {
270 GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
271 PE32 PE32 |.efi
272 UI STRING="$(MODULE_NAME)" Optional
273 }
274 }
275
276
277[Rule.Common.UEFI_DRIVER]
278 FILE DRIVER = $(NAMED_GUID) {
279 DXE_DEPEX DXE_DEPEX Optional |.depex
280 PE32 PE32 |.efi
281 UI STRING="$(MODULE_NAME)" Optional
282 }
283
284[Rule.Common.DXE_DRIVER]
285 FILE DRIVER = $(NAMED_GUID) {
286 DXE_DEPEX DXE_DEPEX Optional |.depex
287 PE32 PE32 |.efi
288 UI STRING="$(MODULE_NAME)" Optional
289 }
290
291[Rule.Common.DXE_RUNTIME_DRIVER]
292 FILE DRIVER = $(NAMED_GUID) {
293 DXE_DEPEX DXE_DEPEX Optional |.depex
294 PE32 PE32 |.efi
295 UI STRING="$(MODULE_NAME)" Optional
296 }
297
298
299[Rule.Common.UEFI_APPLICATION]
300 FILE APPLICATION = $(NAMED_GUID) {
301 UI STRING ="$(MODULE_NAME)" Optional
302 PE32 PE32 |.efi
303 }