ArmVirtPkg: HighMemDxe: add memory space for the high memory nodes
[mirror_edk2.git] / ArmVirtPkg / ArmVirtQemu.fdf
1 #
2 # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
3 # Copyright (c) 2014, Linaro Limited. All rights reserved.
4 # Copyright (c) 2015, Intel Corporation. All rights reserved.
5 #
6 # This program and the accompanying materials
7 # are licensed and made available under the terms and conditions of the BSD License
8 # which accompanies this distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
10 #
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 #
14
15 ################################################################################
16 #
17 # FD Section
18 # The [FD] Section is made up of the definition statements and a
19 # description of what goes into the Flash Device Image. Each FD section
20 # defines one flash "device" image. A flash device image may be one of
21 # the following: Removable media bootable image (like a boot floppy
22 # image,) an Option ROM image (that would be "flashed" into an add-in
23 # card,) a System "Flash" image (that would be burned into a system's
24 # flash) or an Update ("Capsule") image that will be used to update and
25 # existing system flash.
26 #
27 ################################################################################
28
29 [FD.QEMU_EFI]
30 BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress # QEMU assigns 0 - 0x8000000 for a BootROM
31 Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
32 ErasePolarity = 1
33
34 # This one is tricky, it must be: BlockSize * NumBlocks = Size
35 BlockSize = 0x00001000
36 NumBlocks = 0x200
37
38 ################################################################################
39 #
40 # Following are lists of FD Region layout which correspond to the locations of different
41 # images within the flash device.
42 #
43 # Regions must be defined in ascending order and may not overlap.
44 #
45 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
46 # the pipe "|" character, followed by the size of the region, also in hex with the leading
47 # "0x" characters. Like:
48 # Offset|Size
49 # PcdOffsetCName|PcdSizeCName
50 # RegionType <FV, DATA, or FILE>
51 #
52 ################################################################################
53
54 #
55 # UEFI has trouble dealing with FVs that reside at physical address 0x0.
56 # So instead, put a hardcoded 'jump to 0x1000' at offset 0x0, and put the
57 # real FV at offset 0x1000
58 #
59 0x00000000|0x00001000
60 DATA = {
61 !if $(ARCH) == AARCH64
62 0x00, 0x04, 0x00, 0x14 # 'b 0x1000' in AArch64 ASM
63 !else
64 0xfe, 0x03, 0x00, 0xea # 'b 0x1000' in AArch32 ASM
65 !endif
66 }
67
68 0x00001000|0x001ff000
69 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
70 FV = FVMAIN_COMPACT
71
72
73 ################################################################################
74 #
75 # FV Section
76 #
77 # [FV] section is used to define what components or modules are placed within a flash
78 # device file. This section also defines order the components and modules are positioned
79 # within the image. The [FV] section consists of define statements, set statements and
80 # module statements.
81 #
82 ################################################################################
83
84 [FV.FvMain]
85 BlockSize = 0x40
86 NumBlocks = 0 # This FV gets compressed so make it just big enough
87 FvAlignment = 16 # FV alignment and FV attributes setting.
88 ERASE_POLARITY = 1
89 MEMORY_MAPPED = TRUE
90 STICKY_WRITE = TRUE
91 LOCK_CAP = TRUE
92 LOCK_STATUS = TRUE
93 WRITE_DISABLED_CAP = TRUE
94 WRITE_ENABLED_CAP = TRUE
95 WRITE_STATUS = TRUE
96 WRITE_LOCK_CAP = TRUE
97 WRITE_LOCK_STATUS = TRUE
98 READ_DISABLED_CAP = TRUE
99 READ_ENABLED_CAP = TRUE
100 READ_STATUS = TRUE
101 READ_LOCK_CAP = TRUE
102 READ_LOCK_STATUS = TRUE
103
104 APRIORI DXE {
105 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
106 INF ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf
107 }
108 INF MdeModulePkg/Core/Dxe/DxeMain.inf
109 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
110 INF ArmVirtPkg/VirtFdtDxe/VirtFdtDxe.inf
111 INF ArmVirtPkg/HighMemDxe/HighMemDxe.inf
112
113 #
114 # PI DXE Drivers producing Architectural Protocols (EFI Services)
115 #
116 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
117 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
118 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
119 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
120 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
121 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
122 !if $(SECURE_BOOT_ENABLE) == TRUE
123 INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
124 !endif
125 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
126 INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
127 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
128 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
129 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
130
131 #
132 # Multiple Console IO support
133 #
134 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
135 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
136 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
137 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
138 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
139
140 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
141 INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
142 !if $(SECURE_BOOT_ENABLE) == TRUE
143 INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashAuthenticatedDxe.inf
144 !else
145 INF ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.inf
146 !endif
147 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
148
149 #
150 # FAT filesystem + GPT/MBR partitioning
151 #
152 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
153 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
154 INF FatBinPkg/EnhancedFatDxe/Fat.inf
155 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
156
157 #
158 # Platform Driver
159 #
160 INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
161 INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
162 INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
163
164 #
165 # UEFI application (Shell Embedded Boot Loader)
166 #
167 INF ShellPkg/Application/Shell/Shell.inf
168
169 #
170 # Bds
171 #
172 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
173 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
174 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
175 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf
176
177 #
178 # Networking stack
179 #
180 INF MdeModulePkg/Universal/Network/DpcDxe/DpcDxe.inf
181 INF MdeModulePkg/Universal/Network/ArpDxe/ArpDxe.inf
182 INF MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe.inf
183 INF MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe.inf
184 INF MdeModulePkg/Universal/Network/MnpDxe/MnpDxe.inf
185 INF MdeModulePkg/Universal/Network/VlanConfigDxe/VlanConfigDxe.inf
186 INF MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe.inf
187 INF MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe.inf
188 INF MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe.inf
189 INF MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe.inf
190 INF MdeModulePkg/Universal/Network/IScsiDxe/IScsiDxe.inf
191
192 #
193 # SCSI Bus and Disk Driver
194 #
195 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
196 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
197
198 #
199 # SMBIOS Support
200 #
201 INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
202 INF OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
203
204 #
205 # ACPI Support
206 #
207 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
208 INF OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpiPlatformDxe.inf
209
210 #
211 # PCI support
212 #
213 INF ArmVirtPkg/PciHostBridgeDxe/PciHostBridgeDxe.inf
214 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
215 INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
216
217 #
218 # Video support
219 #
220 INF OvmfPkg/QemuVideoDxe/QemuVideoDxe.inf
221 INF OvmfPkg/PlatformDxe/Platform.inf
222
223 #
224 # USB Support
225 #
226 INF MdeModulePkg/Bus/Pci/UhciDxe/UhciDxe.inf
227 INF MdeModulePkg/Bus/Pci/EhciDxe/EhciDxe.inf
228 INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
229 INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
230 INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
231
232 #
233 # TianoCore logo (splash screen)
234 #
235 FILE FREEFORM = PCD(gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdLogoFile) {
236 SECTION RAW = MdeModulePkg/Logo/Logo.bmp
237 }
238
239 !if $(ARCH) == ARM
240 INF MdeModulePkg/Universal/FvSimpleFileSystemDxe/FvSimpleFileSystemDxe.inf
241 INF ArmPkg/Application/LinuxLoader/LinuxLoader.inf
242 !endif
243
244 [FV.FVMAIN_COMPACT]
245 FvAlignment = 16
246 ERASE_POLARITY = 1
247 MEMORY_MAPPED = TRUE
248 STICKY_WRITE = TRUE
249 LOCK_CAP = TRUE
250 LOCK_STATUS = TRUE
251 WRITE_DISABLED_CAP = TRUE
252 WRITE_ENABLED_CAP = TRUE
253 WRITE_STATUS = TRUE
254 WRITE_LOCK_CAP = TRUE
255 WRITE_LOCK_STATUS = TRUE
256 READ_DISABLED_CAP = TRUE
257 READ_ENABLED_CAP = TRUE
258 READ_STATUS = TRUE
259 READ_LOCK_CAP = TRUE
260 READ_LOCK_STATUS = TRUE
261
262 APRIORI PEI {
263 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
264 }
265 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
266 INF MdeModulePkg/Core/Pei/PeiMain.inf
267 INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
268 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
269 INF ArmPkg/Drivers/CpuPei/CpuPei.inf
270 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
271 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
272 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
273
274 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
275 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
276 SECTION FV_IMAGE = FVMAIN
277 }
278 }
279
280
281 ################################################################################
282 #
283 # Rules are use with the [FV] section's module INF type to define
284 # how an FFS file is created for a given INF file. The following Rule are the default
285 # rules for the different module type. User can add the customized rules to define the
286 # content of the FFS file.
287 #
288 ################################################################################
289
290
291 ############################################################################
292 # Example of a DXE_DRIVER FFS file with a Checksum encapsulation section #
293 ############################################################################
294 #
295 #[Rule.Common.DXE_DRIVER]
296 # FILE DRIVER = $(NAMED_GUID) {
297 # DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
298 # COMPRESS PI_STD {
299 # GUIDED {
300 # PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
301 # UI STRING="$(MODULE_NAME)" Optional
302 # VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
303 # }
304 # }
305 # }
306 #
307 ############################################################################
308
309 [Rule.Common.SEC]
310 FILE SEC = $(NAMED_GUID) RELOCS_STRIPPED FIXED {
311 TE TE Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
312 }
313
314 [Rule.Common.PEI_CORE]
315 FILE PEI_CORE = $(NAMED_GUID) FIXED {
316 TE TE Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
317 UI STRING ="$(MODULE_NAME)" Optional
318 }
319
320 [Rule.Common.PEIM]
321 FILE PEIM = $(NAMED_GUID) FIXED {
322 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
323 TE TE Align = Auto $(INF_OUTPUT)/$(MODULE_NAME).efi
324 UI STRING="$(MODULE_NAME)" Optional
325 }
326
327 [Rule.Common.PEIM.TIANOCOMPRESSED]
328 FILE PEIM = $(NAMED_GUID) DEBUG_MYTOOLS_IA32 {
329 PEI_DEPEX PEI_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
330 GUIDED A31280AD-481E-41B6-95E8-127F4C984779 PROCESSING_REQUIRED = TRUE {
331 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
332 UI STRING="$(MODULE_NAME)" Optional
333 }
334 }
335
336 [Rule.Common.DXE_CORE]
337 FILE DXE_CORE = $(NAMED_GUID) {
338 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
339 UI STRING="$(MODULE_NAME)" Optional
340 }
341
342 [Rule.Common.UEFI_DRIVER]
343 FILE DRIVER = $(NAMED_GUID) {
344 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
345 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
346 UI STRING="$(MODULE_NAME)" Optional
347 }
348
349 [Rule.Common.DXE_DRIVER]
350 FILE DRIVER = $(NAMED_GUID) {
351 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
352 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
353 UI STRING="$(MODULE_NAME)" Optional
354 }
355
356 [Rule.Common.DXE_RUNTIME_DRIVER]
357 FILE DRIVER = $(NAMED_GUID) {
358 DXE_DEPEX DXE_DEPEX Optional $(INF_OUTPUT)/$(MODULE_NAME).depex
359 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
360 UI STRING="$(MODULE_NAME)" Optional
361 }
362
363 [Rule.Common.UEFI_APPLICATION]
364 FILE APPLICATION = $(NAMED_GUID) {
365 UI STRING ="$(MODULE_NAME)" Optional
366 PE32 PE32 $(INF_OUTPUT)/$(MODULE_NAME).efi
367 }
368
369 [Rule.Common.UEFI_DRIVER.BINARY]
370 FILE DRIVER = $(NAMED_GUID) {
371 DXE_DEPEX DXE_DEPEX Optional |.depex
372 PE32 PE32 |.efi
373 UI STRING="$(MODULE_NAME)" Optional
374 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
375 }
376
377 [Rule.Common.UEFI_APPLICATION.BINARY]
378 FILE APPLICATION = $(NAMED_GUID) {
379 PE32 PE32 |.efi
380 UI STRING="$(MODULE_NAME)" Optional
381 VERSION STRING="$(INF_VERSION)" Optional BUILD_NUM=$(BUILD_NUMBER)
382 }
383
384 [Rule.Common.USER_DEFINED.ACPITABLE]
385 FILE FREEFORM = $(NAMED_GUID) {
386 RAW ACPI |.acpi
387 RAW ASL |.aml
388 UI STRING="$(MODULE_NAME)" Optional
389 }