]> git.proxmox.com Git - mirror_edk2.git/blob - ArmVirtPkg/ArmVirtXen.fdf
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / ArmVirtPkg / ArmVirtXen.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 - 2019, Intel Corporation. All rights reserved.<BR>
5 #
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 #
8
9 ################################################################################
10 #
11 # FD Section
12 # The [FD] Section is made up of the definition statements and a
13 # description of what goes into the Flash Device Image. Each FD section
14 # defines one flash "device" image. A flash device image may be one of
15 # the following: Removable media bootable image (like a boot floppy
16 # image,) an Option ROM image (that would be "flashed" into an add-in
17 # card,) a System "Flash" image (that would be burned into a system's
18 # flash) or an Update ("Capsule") image that will be used to update and
19 # existing system flash.
20 #
21 ################################################################################
22
23 [FD.XEN_EFI]
24 BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress
25 Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize
26 ErasePolarity = 1
27
28 # This one is tricky, it must be: BlockSize * NumBlocks = Size
29 BlockSize = 0x00001000
30 NumBlocks = 0x200
31
32 ################################################################################
33 #
34 # Following are lists of FD Region layout which correspond to the locations of different
35 # images within the flash device.
36 #
37 # Regions must be defined in ascending order and may not overlap.
38 #
39 # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
40 # the pipe "|" character, followed by the size of the region, also in hex with the leading
41 # "0x" characters. Like:
42 # Offset|Size
43 # PcdOffsetCName|PcdSizeCName
44 # RegionType <FV, DATA, or FILE>
45 #
46 ################################################################################
47
48 #
49 # Implement the Linux kernel header layout so that the Xen loader will identify
50 # it as something bootable, and execute it with a FDT pointer in x0 or r2.
51 # This area will be reused to store a copy of the FDT so round it up to 8 KB.
52 #
53 0x00000000|0x00002000
54 DATA = {
55 !if $(ARCH) == AARCH64
56 0x01, 0x00, 0x00, 0x10, # code0: adr x1, .
57 0xff, 0x07, 0x00, 0x14, # code1: b 0x2000
58 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, # text_offset: 512 KB
59 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, # image_size: 2 MB
60 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # flags
61 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res2
62 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res3
63 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, # res4
64 0x41, 0x52, 0x4d, 0x64, # magic: "ARM\x64"
65 0x00, 0x00, 0x00, 0x00 # res5
66 !else
67 0x08, 0x10, 0x4f, 0xe2, # adr r1, .
68 0x02, 0x00, 0xa0, 0xe1, # mov r0, r2 (DTB)
69 0x00, 0x00, 0xa0, 0xe1, # nop
70 0x00, 0x00, 0xa0, 0xe1, # nop
71 0x00, 0x00, 0xa0, 0xe1, # nop
72 0x00, 0x00, 0xa0, 0xe1, # nop
73 0x00, 0x00, 0xa0, 0xe1, # nop
74 0x00, 0x00, 0xa0, 0xe1, # nop
75
76 0xf6, 0x07, 0x00, 0xea, # b 0x2000
77 0x18, 0x28, 0x6f, 0x01, # magic
78 0x00, 0x00, 0x00, 0x00, # start
79 0x00, 0x00, 0x20, 0x00, # image size: 2 MB
80 0x01, 0x02, 0x03, 0x04 # endiannness flag
81 !endif
82 }
83
84 0x00002000|0x001fe000
85 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
86 FV = FVMAIN_COMPACT
87
88
89 ################################################################################
90 #
91 # FV Section
92 #
93 # [FV] section is used to define what components or modules are placed within a flash
94 # device file. This section also defines order the components and modules are positioned
95 # within the image. The [FV] section consists of define statements, set statements and
96 # module statements.
97 #
98 ################################################################################
99
100 [FV.FvMain]
101 FvNameGuid = 4d2d8743-6337-4c3f-a1d9-7cc7efd283db
102 BlockSize = 0x40
103 NumBlocks = 0 # This FV gets compressed so make it just big enough
104 FvAlignment = 16 # FV alignment and FV attributes setting.
105 ERASE_POLARITY = 1
106 MEMORY_MAPPED = TRUE
107 STICKY_WRITE = TRUE
108 LOCK_CAP = TRUE
109 LOCK_STATUS = TRUE
110 WRITE_DISABLED_CAP = TRUE
111 WRITE_ENABLED_CAP = TRUE
112 WRITE_STATUS = TRUE
113 WRITE_LOCK_CAP = TRUE
114 WRITE_LOCK_STATUS = TRUE
115 READ_DISABLED_CAP = TRUE
116 READ_ENABLED_CAP = TRUE
117 READ_STATUS = TRUE
118 READ_LOCK_CAP = TRUE
119 READ_LOCK_STATUS = TRUE
120
121 INF MdeModulePkg/Core/Dxe/DxeMain.inf
122 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
123 INF ArmVirtPkg/XenioFdtDxe/XenioFdtDxe.inf
124 INF ArmVirtPkg/FdtClientDxe/FdtClientDxe.inf
125
126 #
127 # PI DXE Drivers producing Architectural Protocols (EFI Services)
128 #
129 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
130 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
131 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
132 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
133
134 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
135
136 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
137 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
138 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
139 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
140 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
141
142 #
143 # Multiple Console IO support
144 #
145 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
146 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
147 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
148
149 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
150 INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
151 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
152
153 #
154 # FAT filesystem + GPT/MBR partitioning
155 #
156 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
157 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
158 INF FatPkg/EnhancedFatDxe/Fat.inf
159 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
160 INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
161
162 #
163 # UEFI application (Shell Embedded Boot Loader)
164 #
165 INF ShellPkg/Application/Shell/Shell.inf
166 INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
167
168 #
169 # Bds
170 #
171 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
172 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
173 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
174 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
175 INF MdeModulePkg/Application/UiApp/UiApp.inf
176
177 INF OvmfPkg/XenBusDxe/XenBusDxe.inf
178 INF OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.inf
179
180 #
181 # ACPI support
182 #
183 INF ArmVirtPkg/XenPlatformHasAcpiDtDxe/XenPlatformHasAcpiDtDxe.inf
184 !if $(ARCH) == AARCH64
185 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
186 INF ArmVirtPkg/XenAcpiPlatformDxe/XenAcpiPlatformDxe.inf
187
188 #
189 # EBC support
190 #
191 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
192 !endif
193
194 #
195 # Ramdisk support
196 #
197 INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
198
199 [FV.FVMAIN_COMPACT]
200 FvAlignment = 16
201 ERASE_POLARITY = 1
202 MEMORY_MAPPED = TRUE
203 STICKY_WRITE = TRUE
204 LOCK_CAP = TRUE
205 LOCK_STATUS = TRUE
206 WRITE_DISABLED_CAP = TRUE
207 WRITE_ENABLED_CAP = TRUE
208 WRITE_STATUS = TRUE
209 WRITE_LOCK_CAP = TRUE
210 WRITE_LOCK_STATUS = TRUE
211 READ_DISABLED_CAP = TRUE
212 READ_ENABLED_CAP = TRUE
213 READ_STATUS = TRUE
214 READ_LOCK_CAP = TRUE
215 READ_LOCK_STATUS = TRUE
216
217 INF ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf
218
219 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
220 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
221 SECTION FV_IMAGE = FVMAIN
222 }
223 }
224
225 !include ArmVirtRules.fdf.inc