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