]> git.proxmox.com Git - mirror_edk2.git/blame - ArmVirtPkg/ArmVirtQemuKernel.fdf
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / ArmVirtPkg / ArmVirtQemuKernel.fdf
CommitLineData
8de84d42
AB
1#\r
2# Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
3# Copyright (c) 2014, Linaro Limited. All rights reserved.\r
42e3d9eb 4# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.\r
8de84d42 5#\r
9792fb0e 6# SPDX-License-Identifier: BSD-2-Clause-Patent\r
8de84d42
AB
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.QEMU_EFI]\r
24BaseAddress = 0x00000000|gArmTokenSpaceGuid.PcdFdBaseAddress # QEMU assigns 0 - 0x8000000 for a BootROM\r
25Size = 0x00200000|gArmTokenSpaceGuid.PcdFdSize # The size in bytes of the FLASH Device\r
26ErasePolarity = 1\r
27\r
28# This one is tricky, it must be: BlockSize * NumBlocks = Size\r
29BlockSize = 0x00001000\r
30NumBlocks = 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
4d2ea261 49# Implement the Linux kernel header layout so that the loader will identify\r
8de84d42 50# it as something bootable, and execute it with a FDT pointer in x0 or r2.\r
4d2ea261 51# This area will be reused to store a copy of the FDT so round it up to 32 KB.\r
8de84d42 52#\r
4d2ea261 530x00000000|0x00008000\r
8de84d42
AB
54DATA = {\r
55!if $(ARCH) == AARCH64\r
56 0x01, 0x00, 0x00, 0x10, # code0: adr x1, .\r
4d2ea261 57 0xff, 0x1f, 0x00, 0x14, # code1: b 0x8000\r
8de84d42
AB
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
4d2ea261 76 0xf6, 0x1f, 0x00, 0xea, # b 0x8000\r
8de84d42
AB
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
4d2ea261 840x00008000|0x001f8000\r
8de84d42
AB
85gArmTokenSpaceGuid.PcdFvBaseAddress|gArmTokenSpaceGuid.PcdFvSize\r
86FV = FVMAIN_COMPACT\r
87\r
bf57a42a 88!include VarStore.fdf.inc\r
8de84d42
AB
89\r
90################################################################################\r
91#\r
92# FV Section\r
93#\r
94# [FV] section is used to define what components or modules are placed within a flash\r
95# device file. This section also defines order the components and modules are positioned\r
96# within the image. The [FV] section consists of define statements, set statements and\r
97# module statements.\r
98#\r
99################################################################################\r
100\r
c9eca0b2 101!include ArmVirtQemuFvMain.fdf.inc\r
8de84d42 102\r
8de84d42
AB
103[FV.FVMAIN_COMPACT]\r
104FvAlignment = 16\r
105ERASE_POLARITY = 1\r
106MEMORY_MAPPED = TRUE\r
107STICKY_WRITE = TRUE\r
108LOCK_CAP = TRUE\r
109LOCK_STATUS = TRUE\r
110WRITE_DISABLED_CAP = TRUE\r
111WRITE_ENABLED_CAP = TRUE\r
112WRITE_STATUS = TRUE\r
113WRITE_LOCK_CAP = TRUE\r
114WRITE_LOCK_STATUS = TRUE\r
115READ_DISABLED_CAP = TRUE\r
116READ_ENABLED_CAP = TRUE\r
117READ_STATUS = TRUE\r
118READ_LOCK_CAP = TRUE\r
119READ_LOCK_STATUS = TRUE\r
120\r
121 INF ArmVirtPkg/PrePi/ArmVirtPrePiUniCoreRelocatable.inf\r
122\r
123 FILE FV_IMAGE = 9E21FD93-9C72-4c15-8C4B-E77F1DB2D792 {\r
124 SECTION GUIDED EE4E5898-3914-4259-9D6E-DC7BD79403CF PROCESSING_REQUIRED = TRUE {\r
125 SECTION FV_IMAGE = FVMAIN\r
126 }\r
127 }\r
128\r
f4aee089 129!include ArmVirtRules.fdf.inc\r