]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/ArmVirtXen.fdf
ArmVirtPkg: switch to generic ResetSystemRuntimeDxe
[mirror_edk2.git] / ArmVirtPkg / ArmVirtXen.fdf
CommitLineData
22455087 1#\r
7fbd1eb2 2# Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
22455087 3# Copyright (c) 2014, Linaro Limited. All rights reserved.\r
42e3d9eb 4# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
22455087
AB
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.XEN_EFI]\r
30BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress\r
31Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize\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# Implement the Linux kernel header layout so that the Xen loader will identify\r
f7de74af
AB
56# it as something bootable, and execute it with a FDT pointer in x0 or r2.\r
57# This area will be reused to store a copy of the FDT so round it up to 8 KB.\r
22455087
AB
58#\r
590x00000000|0x00002000\r
60DATA = {\r
f7de74af 61!if $(ARCH) == AARCH64\r
22455087
AB
62 0x01, 0x00, 0x00, 0x10, # code0: adr x1, .\r
63 0xff, 0x07, 0x00, 0x14, # code1: b 0x2000\r
64 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, # text_offset: 512 KB\r
65 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, # image_size: 2 MB\r
66 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # flags\r
67 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res2\r
68 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res3\r
69 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res4\r
70 0x41, 0x52, 0x4d, 0x64, # magic: "ARM\x64"\r
71 0x00, 0x00, 0x00, 0x00 # res5\r
f7de74af
AB
72!else\r
73 0x08, 0x10, 0x4f, 0xe2, # adr r1, .\r
74 0x02, 0x00, 0xa0, 0xe1, # mov r0, r2 (DTB)\r
75 0x00, 0x00, 0xa0, 0xe1, # nop\r
76 0x00, 0x00, 0xa0, 0xe1, # nop\r
77 0x00, 0x00, 0xa0, 0xe1, # nop\r
78 0x00, 0x00, 0xa0, 0xe1, # nop\r
79 0x00, 0x00, 0xa0, 0xe1, # nop\r
80 0x00, 0x00, 0xa0, 0xe1, # nop\r
81\r
82 0xf6, 0x07, 0x00, 0xea, # b 0x2000\r
83 0x18, 0x28, 0x6f, 0x01, # magic\r
84 0x00, 0x00, 0x00, 0x00, # start\r
85 0x00, 0x00, 0x20, 0x00, # image size: 2 MB\r
86 0x01, 0x02, 0x03, 0x04 # endiannness flag\r
87!endif\r
22455087
AB
88}\r
89\r
900x00002000|0x001fe000\r
91gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize\r
92FV = FVMAIN_COMPACT\r
93\r
94\r
95################################################################################\r
96#\r
97# FV Section\r
98#\r
99# [FV] section is used to define what components or modules are placed within a flash\r
100# device file. This section also defines order the components and modules are positioned\r
101# within the image. The [FV] section consists of define statements, set statements and\r
102# module statements.\r
103#\r
104################################################################################\r
105\r
106[FV.FvMain]\r
e191a311 107FvNameGuid = 4d2d8743-6337-4c3f-a1d9-7cc7efd283db\r
22455087
AB
108BlockSize = 0x40\r
109NumBlocks = 0 # This FV gets compressed so make it just big enough\r
110FvAlignment = 16 # FV alignment and FV attributes setting.\r
111ERASE_POLARITY = 1\r
112MEMORY_MAPPED = TRUE\r
113STICKY_WRITE = TRUE\r
114LOCK_CAP = TRUE\r
115LOCK_STATUS = TRUE\r
116WRITE_DISABLED_CAP = TRUE\r
117WRITE_ENABLED_CAP = TRUE\r
118WRITE_STATUS = TRUE\r
119WRITE_LOCK_CAP = TRUE\r
120WRITE_LOCK_STATUS = TRUE\r
121READ_DISABLED_CAP = TRUE\r
122READ_ENABLED_CAP = TRUE\r
123READ_STATUS = TRUE\r
124READ_LOCK_CAP = TRUE\r
125READ_LOCK_STATUS = TRUE\r
126\r
22455087
AB
127 INF MdeModulePkg/Core/Dxe/DxeMain.inf\r
128 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf\r
81996ba8 129 INF ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf\r
44b9e615 130 INF ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf\r
22455087
AB
131\r
132 #\r
133 # PI DXE Drivers producing Architectural Protocols (EFI Services)\r
134 #\r
135 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf\r
136 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf\r
137 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf\r
138 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf\r
139\r
140 INF MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe.inf\r
141\r
142 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf\r
7b1dc6c5 143 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf\r
22455087
AB
144 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf\r
145 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf\r
146 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf\r
147\r
148 #\r
149 # Multiple Console IO support\r
150 #\r
151 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf\r
152 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf\r
ad7f6bc2 153 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf\r
22455087
AB
154\r
155 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf\r
156 INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf\r
157 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf\r
158\r
159 #\r
160 # FAT filesystem + GPT/MBR partitioning\r
161 #\r
162 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf\r
163 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf\r
42e3d9eb 164 INF FatPkg/EnhancedFatDxe/Fat.inf\r
22455087
AB
165 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf\r
166\r
167 #\r
168 # UEFI application (Shell Embedded Boot Loader)\r
169 #\r
da1ce6f8 170 INF ShellPkg/Application/Shell/Shell.inf\r
22455087
AB
171\r
172 #\r
173 # Bds\r
174 #\r
175 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf\r
176 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf\r
177 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf\r
178 INF IntelFrameworkModulePkg/Universal/BdsDxe/BdsDxe.inf\r
179\r
180 INF OvmfPkg/XenBusDxe/XenBusDxe.inf\r
181 INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf\r
182\r
402dde68
SZ
183 #\r
184 # ACPI support\r
185 #\r
3a2c1548 186 INF ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf\r
01430be5 187!if $(ARCH) == AARCH64\r
402dde68
SZ
188 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf\r
189 INF ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf\r
81d9f86f
LL
190\r
191 #\r
192 # EBC support\r
193 #\r
194 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf\r
402dde68
SZ
195!endif\r
196\r
d3644741
VS
197 #\r
198 # Ramdisk support\r
199 #\r
200 INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf\r
201\r
22455087
AB
202[FV.FVMAIN_COMPACT]\r
203FvAlignment = 16\r
204ERASE_POLARITY = 1\r
205MEMORY_MAPPED = TRUE\r
206STICKY_WRITE = TRUE\r
207LOCK_CAP = TRUE\r
208LOCK_STATUS = TRUE\r
209WRITE_DISABLED_CAP = TRUE\r
210WRITE_ENABLED_CAP = TRUE\r
211WRITE_STATUS = TRUE\r
212WRITE_LOCK_CAP = TRUE\r
213WRITE_LOCK_STATUS = TRUE\r
214READ_DISABLED_CAP = TRUE\r
215READ_ENABLED_CAP = TRUE\r
216READ_STATUS = TRUE\r
217READ_LOCK_CAP = TRUE\r
218READ_LOCK_STATUS = TRUE\r
219\r
7fbd1eb2 220 INF ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf\r
22455087
AB
221\r
222 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {\r
223 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {\r
224 SECTION FV_IMAGE = FVMAIN\r
225 }\r
226 }\r
227\r
f4aee089 228!include ArmVirtRules.fdf.inc\r