Jade.fdf 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. ## @file
  2. #
  3. # Copyright (c) 2020 - 2023, Ampere Computing LLC. All rights reserved.<BR>
  4. #
  5. # SPDX-License-Identifier: BSD-2-Clause-Patent
  6. #
  7. ##
  8. ################################################################################
  9. #
  10. # FD Section
  11. # The [FD] Section is made up of the definition statements and a
  12. # description of what goes into the Flash Device Image. Each FD section
  13. # defines one flash "device" image. A flash device image may be one of
  14. # the following: Removable media bootable image (like a boot floppy
  15. # image,) an Option ROM image (that would be "flashed" into an add-in
  16. # card,) a System "Flash" image (that would be burned into a system's
  17. # flash) or an Update ("Capsule") image that will be used to update and
  18. # existing system flash.
  19. #
  20. ################################################################################
  21. [FD.BL33_JADE_UEFI]
  22. BaseAddress = 0x92000000|gArmTokenSpaceGuid.PcdFdBaseAddress # The base address of the Firmware in NOR Flash.
  23. Size = 0x007C0000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
  24. ErasePolarity = 1
  25. # This one is tricky, it must be: BlockSize * NumBlocks = Size
  26. BlockSize = 0x10000|gAmpereTokenSpaceGuid.PcdFvBlockSize
  27. NumBlocks = 0x7C
  28. ################################################################################
  29. #
  30. # Following are lists of FD Region layout which correspond to the locations of different
  31. # images within the flash device.
  32. #
  33. # Regions must be defined in ascending order and may not overlap.
  34. #
  35. # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
  36. # the pipe "|" character, followed by the size of the region, also in hex with the leading
  37. # "0x" characters. Like:
  38. # Offset|Size
  39. # PcdOffsetCName|PcdSizeCName
  40. # RegionType <FV, DATA, or FILE>
  41. #
  42. ################################################################################
  43. #
  44. # FV MAIN
  45. # Offset: 0x00000000
  46. # Size: 0x00740000
  47. #
  48. 0x00000000|0x00740000
  49. gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
  50. FV = FVMAIN_COMPACT
  51. #
  52. # NV Variables
  53. # Offset: 0x00740000
  54. # Size: 0x00080000
  55. #
  56. 0x00740000|0x00030000
  57. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableBase64|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize
  58. DATA = {
  59. ## This is the EFI_FIRMWARE_VOLUME_HEADER
  60. # ZeroVector []
  61. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  62. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  63. # FileSystemGuid: gEfiSystemNvDataFvGuid =
  64. # { 0xFFF12B8D, 0x7696, 0x4C8B,
  65. # { 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50 }}
  66. 0x8D, 0x2B, 0xF1, 0xFF, 0x96, 0x76, 0x8B, 0x4C,
  67. 0xA9, 0x85, 0x27, 0x47, 0x07, 0x5B, 0x4F, 0x50,
  68. # FvLength: 0x80000
  69. 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,
  70. # Signature "_FVH" # Attributes
  71. 0x5f, 0x46, 0x56, 0x48, 0xff, 0xfe, 0x04, 0x00,
  72. # HeaderLength # CheckSum # ExtHeaderOffset #Reserved #Revision
  73. 0x48, 0x00, 0x2D, 0x09, 0x00, 0x00, 0x00, 0x02,
  74. # Blockmap[0]: 0x2 Blocks * 0x40000 Bytes / Block
  75. 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
  76. # Blockmap[1]: End
  77. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  78. ## This is the VARIABLE_STORE_HEADER
  79. # It is compatible with SECURE_BOOT_ENABLE == FALSE as well.
  80. # Signature: gEfiAuthenticatedVariableGuid =
  81. # { 0xaaf32c78, 0x947b, 0x439a,
  82. # { 0xa1, 0x80, 0x2e, 0x14, 0x4e, 0xc3, 0x77, 0x92 }}
  83. 0x78, 0x2c, 0xf3, 0xaa, 0x7b, 0x94, 0x9a, 0x43,
  84. 0xa1, 0x80, 0x2e, 0x14, 0x4e, 0xc3, 0x77, 0x92,
  85. # Size: 0x30000 (gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageVariableSize) -
  86. # 0x48 (size of EFI_FIRMWARE_VOLUME_HEADER) = 0x2FFB8
  87. # This can speed up the Variable Dispatch a bit.
  88. 0xB8, 0xFF, 0x02, 0x00,
  89. # FORMATTED: 0x5A #HEALTHY: 0xFE #Reserved: UINT16 #Reserved1: UINT32
  90. 0x5A, 0xFE, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  91. }
  92. 0x00770000|0x00010000
  93. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingBase64|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwWorkingSize
  94. DATA = {
  95. # EFI_FAULT_TOLERANT_WORKING_BLOCK_HEADER->Signature = gEdkiiWorkingBlockSignatureGuid =
  96. # { 0x9e58292b, 0x7c68, 0x497d, { 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95 }}
  97. 0x2b, 0x29, 0x58, 0x9e, 0x68, 0x7c, 0x7d, 0x49,
  98. 0xa0, 0xce, 0x65, 0x0, 0xfd, 0x9f, 0x1b, 0x95,
  99. # Crc:UINT32 #WorkingBlockValid:1, WorkingBlockInvalid:1, Reserved
  100. 0x2c, 0xaf, 0x2c, 0x64, 0xFE, 0xFF, 0xFF, 0xFF,
  101. # WriteQueueSize: UINT64 Size: 0x10000 - 0x20 (FTW_WORKING_HEADER) = 0xFFE0
  102. 0xE0, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  103. }
  104. 0x00780000|0x00040000
  105. gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareBase64|gEfiMdeModulePkgTokenSpaceGuid.PcdFlashNvStorageFtwSpareSize
  106. ################################################################################
  107. #
  108. # FV Section
  109. #
  110. # [FV] section is used to define what components or modules are placed within a flash
  111. # device file. This section also defines order the components and modules are positioned
  112. # within the image. The [FV] section consists of define statements, set statements and
  113. # module statements.
  114. #
  115. ################################################################################
  116. [FV.FVMAIN_COMPACT]
  117. FvAlignment = 16
  118. ERASE_POLARITY = 1
  119. MEMORY_MAPPED = TRUE
  120. STICKY_WRITE = TRUE
  121. LOCK_CAP = TRUE
  122. LOCK_STATUS = TRUE
  123. WRITE_DISABLED_CAP = TRUE
  124. WRITE_ENABLED_CAP = TRUE
  125. WRITE_STATUS = TRUE
  126. WRITE_LOCK_CAP = TRUE
  127. WRITE_LOCK_STATUS = TRUE
  128. READ_DISABLED_CAP = TRUE
  129. READ_ENABLED_CAP = TRUE
  130. READ_STATUS = TRUE
  131. READ_LOCK_CAP = TRUE
  132. READ_LOCK_STATUS = TRUE
  133. FvNameGuid = 61C0F511-A691-4F54-974F-B9A42172CE53
  134. APRIORI PEI {
  135. INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
  136. INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
  137. INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
  138. }
  139. INF ArmPlatformPkg/PrePeiCore/PrePeiCoreMPCore.inf
  140. INF MdeModulePkg/Core/Pei/PeiMain.inf
  141. INF UefiCpuPkg/CpuIoPei/CpuIoPei.inf
  142. INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  143. INF Silicon/Ampere/AmpereAltraPkg/Drivers/ATFHobPei/ATFHobPeim.inf
  144. INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
  145. INF Silicon/Ampere/AmpereAltraPkg/Drivers/FlashPei/FlashPei.inf
  146. INF Silicon/Ampere/AmpereAltraPkg/Drivers/BootProgress/BootProgressPeim/BootProgressPeim.inf
  147. INF ArmPkg/Drivers/CpuPei/CpuPei.inf
  148. INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
  149. INF MdeModulePkg/Universal/FaultTolerantWritePei/FaultTolerantWritePei.inf
  150. INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  151. INF MdeModulePkg/Universal/ReportStatusCodeRouter/Pei/ReportStatusCodeRouterPei.inf
  152. INF MdeModulePkg/Universal/StatusCodeHandler/Pei/StatusCodeHandlerPei.inf
  153. INF Silicon/Ampere/AmpereAltraPkg/Drivers/PcieInitPei/PcieInitPei.inf
  154. #
  155. # Print platform information before passing control into the Driver Execution Environment (DXE) phase
  156. #
  157. INF Silicon/Ampere/AmpereAltraPkg/Drivers/DebugInfoPei/DebugInfoPei.inf
  158. INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  159. FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
  160. SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
  161. SECTION FV_IMAGE = FVMAIN
  162. }
  163. }
  164. [FV.FvMain]
  165. FvAlignment = 16
  166. ERASE_POLARITY = 1
  167. MEMORY_MAPPED = TRUE
  168. STICKY_WRITE = TRUE
  169. LOCK_CAP = TRUE
  170. LOCK_STATUS = TRUE
  171. WRITE_DISABLED_CAP = TRUE
  172. WRITE_ENABLED_CAP = TRUE
  173. WRITE_STATUS = TRUE
  174. WRITE_LOCK_CAP = TRUE
  175. WRITE_LOCK_STATUS = TRUE
  176. READ_DISABLED_CAP = TRUE
  177. READ_ENABLED_CAP = TRUE
  178. READ_STATUS = TRUE
  179. READ_LOCK_CAP = TRUE
  180. READ_LOCK_STATUS = TRUE
  181. FvNameGuid = 5C60F367-A505-419A-859E-2A4FF6CA6FE5
  182. APRIORI DXE {
  183. INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
  184. INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  185. INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  186. INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  187. INF ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf
  188. INF Silicon/Ampere/AmpereAltraPkg/Drivers/FlashFvbDxe/FlashFvbDxe.inf
  189. }
  190. INF MdeModulePkg/Core/Dxe/DxeMain.inf
  191. INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf
  192. INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusCodeRouterRuntimeDxe.inf
  193. INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerRuntimeDxe.inf
  194. INF Silicon/Ampere/AmpereAltraPkg/Drivers/BootProgress/BootProgressDxe/BootProgressDxe.inf
  195. #
  196. # PI DXE Drivers producing Architectural Protocols (EFI Services)
  197. #
  198. INF ArmPkg/Drivers/CpuDxe/CpuDxe.inf
  199. INF MdeModulePkg/Core/RuntimeDxe/RuntimeDxe.inf
  200. INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf
  201. INF MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf
  202. !if $(SECURE_BOOT_ENABLE) == TRUE
  203. INF SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
  204. !endif
  205. INF MdeModulePkg/Universal/MonotonicCounterRuntimeDxe/MonotonicCounterRuntimeDxe.inf
  206. INF EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe.inf
  207. INF EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe.inf
  208. INF EmbeddedPkg/MetronomeDxe/MetronomeDxe.inf
  209. INF MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe.inf
  210. INF ArmPkg/Drivers/MmCommunicationDxe/MmCommunication.inf
  211. #
  212. # Environment Variables Protocol
  213. #
  214. INF MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf
  215. INF MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe.inf
  216. INF Silicon/Ampere/AmpereAltraPkg/Drivers/FlashFvbDxe/FlashFvbDxe.inf
  217. #
  218. # Multiple Console IO support
  219. #
  220. INF MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe.inf
  221. INF MdeModulePkg/Universal/Console/ConSplitterDxe/ConSplitterDxe.inf
  222. INF MdeModulePkg/Universal/Console/GraphicsConsoleDxe/GraphicsConsoleDxe.inf
  223. INF MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe.inf
  224. INF MdeModulePkg/Universal/SerialDxe/SerialDxe.inf
  225. #
  226. # Timer
  227. #
  228. INF ArmPkg/Drivers/TimerDxe/TimerDxe.inf
  229. INF ArmPkg/Drivers/GenericWatchdogDxe/GenericWatchdogDxe.inf
  230. #
  231. # ARM GIC Dxe
  232. #
  233. INF ArmPkg/Drivers/ArmGic/ArmGicDxe.inf
  234. INF UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf
  235. #
  236. # FAT filesystem + GPT/MBR partitioning
  237. #
  238. INF MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe.inf
  239. INF MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe.inf
  240. INF FatPkg/EnhancedFatDxe/Fat.inf
  241. INF MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe.inf
  242. #
  243. # SCSI Bus and Disk Driver
  244. #
  245. INF MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe.inf
  246. INF MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe.inf
  247. #
  248. # SATA Support
  249. #
  250. INF MdeModulePkg/Bus/Ata/AtaAtapiPassThru/AtaAtapiPassThru.inf
  251. INF MdeModulePkg/Bus/Ata/AtaBusDxe/AtaBusDxe.inf
  252. INF MdeModulePkg/Bus/Pci/SataControllerDxe/SataControllerDxe.inf
  253. INF MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe.inf
  254. #
  255. # NVME Support
  256. #
  257. INF MdeModulePkg/Bus/Pci/NvmExpressDxe/NvmExpressDxe.inf
  258. #
  259. # USB Support
  260. #
  261. INF MdeModulePkg/Bus/Pci/XhciDxe/XhciDxe.inf
  262. INF MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe.inf
  263. INF MdeModulePkg/Bus/Usb/UsbKbDxe/UsbKbDxe.inf
  264. INF MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe.inf
  265. #
  266. # PCIe Support
  267. #
  268. INF MdeModulePkg/Bus/Pci/PciBusDxe/PciBusDxe.inf
  269. INF MdeModulePkg/Bus/Pci/PciHostBridgeDxe/PciHostBridgeDxe.inf
  270. INF Platform/Ampere/JadePkg/Drivers/PciPlatformDxe/PciPlatformDxe.inf
  271. #
  272. # VGA Aspeed
  273. #
  274. INF Drivers/ASpeed/ASpeedGopBinPkg/ASpeedAst2500GopDxe.inf
  275. #
  276. # Random Number Generator Support
  277. #
  278. INF Silicon/Ampere/AmpereAltraPkg/Drivers/RngDxe/RngDxe.inf
  279. #
  280. # UEFI application (Shell Embedded Boot Loader)
  281. #
  282. INF ShellPkg/Application/Shell/Shell.inf
  283. !if $(INCLUDE_TFTP_COMMAND) == TRUE
  284. INF ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.inf
  285. !endif
  286. #
  287. # Bds
  288. #
  289. INF MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe.inf
  290. INF MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf
  291. INF MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe.inf
  292. INF MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe.inf
  293. INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
  294. INF MdeModulePkg/Application/UiApp/UiApp.inf
  295. #
  296. # Networking stack
  297. #
  298. !include NetworkPkg/Network.fdf.inc
  299. #
  300. # ACPI
  301. #
  302. INF MdeModulePkg/Universal/Acpi/AcpiTableDxe/AcpiTableDxe.inf
  303. INF Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.inf
  304. INF RuleOverride=ACPITABLE Silicon/Ampere/AmpereAltraPkg/AcpiCommonTables/AcpiCommonTables.inf
  305. INF RuleOverride=ACPITABLE Platform/Ampere/JadePkg/AcpiTables/AcpiTables.inf
  306. INF RuleOverride=ACPITABLE Platform/Ampere/JadePkg/Ac02AcpiTables/Ac02AcpiTables.inf
  307. #
  308. # SMBIOS
  309. #
  310. INF MdeModulePkg/Universal/SmbiosDxe/SmbiosDxe.inf
  311. INF Platform/Ampere/JadePkg/Drivers/SmbiosPlatformDxe/SmbiosPlatformDxe.inf
  312. INF ArmPkg/Universal/Smbios/ProcessorSubClassDxe/ProcessorSubClassDxe.inf
  313. INF Platform/Ampere/JadePkg/Drivers/SmbiosMemInfoDxe/SmbiosMemInfoDxe.inf
  314. #
  315. # HII
  316. #
  317. INF Silicon/Ampere/AmpereAltraPkg/Drivers/RootComplexConfigDxe/RootComplexConfigDxe.inf
  318. INF Silicon/Ampere/AmpereAltraPkg/Drivers/PlatformInfoDxe/PlatformInfoDxe.inf
  319. INF Silicon/Ampere/AmpereAltraPkg/Drivers/MemInfoDxe/MemInfoDxe.inf
  320. INF Silicon/Ampere/AmpereAltraPkg/Drivers/CpuConfigDxe/CpuConfigDxe.inf
  321. INF Silicon/Ampere/AmpereAltraPkg/Drivers/AcpiConfigDxe/AcpiConfigDxe.inf
  322. INF Silicon/Ampere/AmpereAltraPkg/Drivers/RasConfigDxe/RasConfigDxe.inf
  323. !include Silicon/Ampere/AmpereSiliconPkg/FvRules.fdf.inc