ArmVirtQemu.fdf 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #
  2. # Copyright (c) 2011-2015, ARM Limited. All rights reserved.
  3. # Copyright (c) 2014, Linaro Limited. All rights reserved.
  4. # Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
  5. #
  6. # This program and the accompanying materials
  7. # are licensed and made available under the terms and conditions of the BSD License
  8. # which accompanies this distribution. The full text of the license may be found at
  9. # http://opensource.org/licenses/bsd-license.php
  10. #
  11. # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  13. #
  14. ################################################################################
  15. #
  16. # FD Section
  17. # The [FD] Section is made up of the definition statements and a
  18. # description of what goes into the Flash Device Image. Each FD section
  19. # defines one flash "device" image. A flash device image may be one of
  20. # the following: Removable media bootable image (like a boot floppy
  21. # image,) an Option ROM image (that would be "flashed" into an add-in
  22. # card,) a System "Flash" image (that would be burned into a system's
  23. # flash) or an Update ("Capsule") image that will be used to update and
  24. # existing system flash.
  25. #
  26. ################################################################################
  27. [FD.QEMU_EFI]
  28. BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress # QEMU assigns 0 - 0x8000000 for a BootROM
  29. Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device
  30. ErasePolarity = 1
  31. # This one is tricky, it must be: BlockSize * NumBlocks = Size
  32. BlockSize = 0x00001000
  33. NumBlocks = 0x200
  34. ################################################################################
  35. #
  36. # Following are lists of FD Region layout which correspond to the locations of different
  37. # images within the flash device.
  38. #
  39. # Regions must be defined in ascending order and may not overlap.
  40. #
  41. # A Layout Region start with a eight digit hex offset (leading "0x" required) followed by
  42. # the pipe "|" character, followed by the size of the region, also in hex with the leading
  43. # "0x" characters. Like:
  44. # Offset|Size
  45. # PcdOffsetCName|PcdSizeCName
  46. # RegionType <FV, DATA, or FILE>
  47. #
  48. ################################################################################
  49. #
  50. # UEFI has trouble dealing with FVs that reside at physical address 0x0.
  51. # So instead, put a hardcoded 'jump to 0x1000' at offset 0x0, and put the
  52. # real FV at offset 0x1000
  53. #
  54. 0x00000000|0x00001000
  55. DATA = {
  56. !if $(ARCH) == AARCH64
  57. 0x00, 0x04, 0x00, 0x14 # 'b 0x1000' in AArch64 ASM
  58. !else
  59. 0xfe, 0x03, 0x00, 0xea # 'b 0x1000' in AArch32 ASM
  60. !endif
  61. }
  62. 0x00001000|0x001ff000
  63. gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize
  64. FV = FVMAIN_COMPACT
  65. !include VarStore.fdf.inc
  66. ################################################################################
  67. #
  68. # FV Section
  69. #
  70. # [FV] section is used to define what components or modules are placed within a flash
  71. # device file. This section also defines order the components and modules are positioned
  72. # within the image. The [FV] section consists of define statements, set statements and
  73. # module statements.
  74. #
  75. ################################################################################
  76. !include ArmVirtQemuFvMain.fdf.inc
  77. [FV.FVMAIN_COMPACT]
  78. FvAlignment = 16
  79. ERASE_POLARITY = 1
  80. MEMORY_MAPPED = TRUE
  81. STICKY_WRITE = TRUE
  82. LOCK_CAP = TRUE
  83. LOCK_STATUS = TRUE
  84. WRITE_DISABLED_CAP = TRUE
  85. WRITE_ENABLED_CAP = TRUE
  86. WRITE_STATUS = TRUE
  87. WRITE_LOCK_CAP = TRUE
  88. WRITE_LOCK_STATUS = TRUE
  89. READ_DISABLED_CAP = TRUE
  90. READ_ENABLED_CAP = TRUE
  91. READ_STATUS = TRUE
  92. READ_LOCK_CAP = TRUE
  93. READ_LOCK_STATUS = TRUE
  94. INF ArmPlatformPkg/PrePeiCore/PrePeiCoreUniCore.inf
  95. INF MdeModulePkg/Core/Pei/PeiMain.inf
  96. INF ArmPlatformPkg/PlatformPei/PlatformPeim.inf
  97. INF ArmPlatformPkg/MemoryInitPei/MemoryInitPeim.inf
  98. INF ArmPkg/Drivers/CpuPei/CpuPei.inf
  99. INF MdeModulePkg/Universal/PCD/Pei/Pcd.inf
  100. INF MdeModulePkg/Universal/Variable/Pei/VariablePei.inf
  101. INF MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf
  102. FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {
  103. SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {
  104. SECTION FV_IMAGE = FVMAIN
  105. }
  106. }
  107. !include ArmVirtRules.fdf.inc