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