2 # Copyright (c) 2021, ARM Limited. All rights reserved.
4 # SPDX-License-Identifier: BSD-2-Clause-Patent
7 ################################################################################
10 # The [FD] Section is made up of the definition statements and a
11 # description of what goes into the Flash Device Image. Each FD section
12 # defines one flash "device" image. A flash device image may be one of
13 # the following: Removable media bootable image (like a boot floppy
14 # image,) an Option ROM image (that would be "flashed" into an add-in
15 # card,) a System "Flash" image (that would be burned into a system's
16 # flash) or an Update ("Capsule") image that will be used to update and
17 # existing system flash.
19 ################################################################################
22 !if $(FD_SIZE_IN_MB) == 2
23 DEFINE FVMAIN_COMPACT_SIZE = 0x1ff000
25 !if $(FD_SIZE_IN_MB) == 3
26 DEFINE FVMAIN_COMPACT_SIZE = 0x2ff000
30 BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress # cloud-hypervisor assigns 0 - 0x8000000 for a BootROM
31 Size = $(FD_SIZE)|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
34 # This one is tricky, it must be: BlockSize * NumBlocks = Size
35 BlockSize = 0x00001000
36 NumBlocks = $(FD_NUM_BLOCKS)
38 ################################################################################
40 # Following are lists of FD Region layout which correspond to the locations of different
41 # images within the flash device.
43 # Regions must be defined in ascending order and may not overlap.
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:
49 # PcdOffsetCName|PcdSizeCName
50 # RegionType <FV, DATA, or FILE>
52 ################################################################################
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
61 !if $(ARCH) == AARCH64
62 0x00, 0x04, 0x00, 0x14 # 'b 0x1000' in AArch64 ASM
64 0xfe, 0x03, 0x00, 0xea # 'b 0x1000' in AArch32 ASM
68 0x00001000|$(FVMAIN_COMPACT_SIZE)
69 gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
72 !include VarStore.fdf.inc
74 ################################################################################
78 # [FV] section is used to define what components or modules are placed within a flash
79 # device file. This section also defines order the components and modules are positioned
80 # within the image. The [FV] section consists of define statements, set statements and
83 ################################################################################
86 FvNameGuid = 2A88A00E-E267-C8BF-0E80-AE1BD504ED90
88 NumBlocks = 0 # This FV gets compressed so make it just big enough
89 FvAlignment = 16 # FV alignment and FV attributes setting.
95 WRITE_DISABLED_CAP = TRUE
96 WRITE_ENABLED_CAP = TRUE
99 WRITE_LOCK_STATUS = TRUE
100 READ_DISABLED_CAP = TRUE
101 READ_ENABLED_CAP = TRUE
104 READ_LOCK_STATUS = TRUE
106 INF MdeModulePkg/Core/Dxe/DxeMain.inf
107 INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
108 INF OvmfPkg/Fdt/VirtioFdtDxe/VirtioFdtDxe.inf
109 INF EmbeddedPkg/Drivers/FdtClientDxe/FdtClientDxe.inf
110 INF OvmfPkg/Fdt/HighMemDxe/HighMemDxe.inf
113 # PI DXE Drivers producing Architectural Protocols (EFI Services)
115 INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
116 INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
117 INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
118 INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
119 INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
120 INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
121 !if $(SECURE_BOOT_ENABLE) == TRUE
122 INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
124 INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
125 INF MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystemRuntimeDxe.inf
126 INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
127 INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
128 INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
131 # Multiple Console IO support
133 INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
134 INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
135 INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
136 INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
137 INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
139 INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
140 INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
141 INF MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer.inf
144 # FAT filesystem + GPT/MBR partitioning + UDF filesystem + virtio-fs
146 INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
147 INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
148 INF FatPkg/EnhancedFatDxe/Fat.inf
149 INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
150 INF MdeModulePkg/Universal/Disk/UdfDxe/UdfDxe.inf
151 INF OvmfPkg/VirtioFsDxe/VirtioFsDxe.inf
154 # Status Code Routing
156 INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
161 INF OvmfPkg/VirtioBlkDxe/VirtioBlk.inf
162 INF OvmfPkg/VirtioNetDxe/VirtioNet.inf
163 INF OvmfPkg/VirtioScsiDxe/VirtioScsi.inf
164 INF OvmfPkg/VirtioRngDxe/VirtioRng.inf
167 # UEFI application (Shell Embedded Boot Loader)
169 INF ShellPkg/Application/Shell/Shell.inf
170 INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
171 INF ShellPkg/DynamicCommand/HttpDynamicCommand/HttpDynamicCommand.inf
172 INF OvmfPkg/LinuxInitrdDynamicShellCommand/LinuxInitrdDynamicShellCommand.inf
177 INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
178 INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
179 INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
180 INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
181 INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
182 INF MdeModulePkg/Application/UiApp/UiApp.inf
185 # SCSI Bus and Disk Driver
187 INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
188 INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
193 INF ArmVirtPkg/CloudHvPlatformHasAcpiDtDxe/CloudHvHasAcpiDtDxe.inf
194 !if $(ARCH) == AARCH64
195 INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
196 INF MdeModulePkg/Universal/Acpi/BootGraphicsResourceTableDxe/BootGraphicsResourceTableDxe.inf
197 INF ArmVirtPkg/CloudHvAcpiPlatformDxe/CloudHvAcpiPlatformDxe.inf
202 INF MdeModulePkg/Universal/EbcDxe/EbcDxe.inf
208 INF ArmPkg/Drivers/ArmPciCpuIo2Dxe/ArmPciCpuIo2Dxe.inf
209 INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
210 INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
211 INF OvmfPkg/PciHotPlugInitDxe/PciHotPlugInit.inf
212 INF OvmfPkg/VirtioPciDeviceDxe/VirtioPciDeviceDxe.inf
213 INF OvmfPkg/Virtio10Dxe/Virtio10.inf
216 # TianoCore logo (splash screen)
218 INF MdeModulePkg/Logo/LogoDxe.inf
223 INF MdeModulePkg/Universal/Disk/RamDiskDxe/RamDiskDxe.inf
232 WRITE_DISABLED_CAP = TRUE
233 WRITE_ENABLED_CAP = TRUE
235 WRITE_LOCK_CAP = TRUE
236 WRITE_LOCK_STATUS = TRUE
237 READ_DISABLED_CAP = TRUE
238 READ_ENABLED_CAP = TRUE
241 READ_LOCK_STATUS = TRUE
243 INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
244 INF MdeModulePkg/Core/Pei/PeiMain.inf
245 INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
246 INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
247 INF ArmPkg/Drivers/CpuPei/CpuPei.inf
248 INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
249 INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
250 INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
252 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
253 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
254 SECTION FV_IMAGE = FVMAIN
258 !include ArmVirtRules.fdf.inc