summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@xilinx.com>2021-11-17 13:24:24 -0800
committerMark Hatle <mark.hatle@xilinx.com>2021-11-18 15:39:13 -0800
commitcbde3d7368671ee277aa502a791014fd88e276b8 (patch)
treeca037cbfc28b45ffab73c21f41e5380f7056cf9f
parent51e48cc7acd766a6d84dbcc65d7b64de6f5d707e (diff)
downloadmeta-xilinx-cbde3d7368671ee277aa502a791014fd88e276b8.tar.gz
bootbin: Adjust BIF_PARTITION_ATTR
The order is critical for the system to boot properly. Add a comment explaing the requirements, making the various parts parameterized to allow the optional parameters to be adjusted. The bitstream element will typically be added by a bbappend in a layer such as meta-xilinx-tools. Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-bsp/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc20
1 files changed, 19 insertions, 1 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc b/meta-xilinx-bsp/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc
index 4eb404c1..91497658 100644
--- a/meta-xilinx-bsp/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc
+++ b/meta-xilinx-bsp/recipes-bsp/bootbin/machine-xilinx-zynqmp.inc
@@ -2,7 +2,25 @@
2BIF_COMMON_ATTR ?= "" 2BIF_COMMON_ATTR ?= ""
3 3
4# specify BIF partition attributes required for BOOT.bin 4# specify BIF partition attributes required for BOOT.bin
5BIF_PARTITION_ATTR = "fsbl pmufw arm-trusted-firmware device-tree u-boot-xlnx" 5# For details on ordering, see:
6# https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842019/Zynq+UltraScale+FSBL#ZynqUltraScale%2BFSBL-IsthereanyorderinwhichIhavetospecifybitstreaminBIFfile(forbootimagecreation)%3F
7#
8# The loading rules:
9# From the 2017.1 release, bistreams should be loaded bfore ATF...
10# ...preferably immediately after the FSBL and PMUFW.
11#
12# While the first few components must be fsbl and pmufw per:
13# https://www.xilinx.com/support/documentation/sw_manuals/xilinx2021_2/ug1283-bootgen-user-guide.pdf
14#
15# This combination restricts the boot order to be:
16# FSBL & PMUFW -> Bitstream (if available) -> ATF -> Device Tree (if available) -> Second Stage Bootloader
17#
18BIF_FSBL_ATTR ?= "fsbl pmufw"
19BIF_BITSTREAM_ATTR ?= ""
20BIF_ATF_ATTR ?= "arm-trusted-firmware"
21BIF_DEVICETREE_ATTR ?= "device-tree"
22BIF_SSBL_ATTR ?= "u-boot-xlnx"
23BIF_PARTITION_ATTR ?= "${BIF_FSBL_ATTR} ${BIF_BITSTREAM_ATTR} ${BIF_ATF_ATTR} ${BIF_DEVICETREE_ATTR} ${BIF_SSBL_ATTR}"
6 24
7# specify BIF partition attributes for FSBL 25# specify BIF partition attributes for FSBL
8# bootloader is FSBL. Location where FSBL binary is present and dependency to build FSBL 26# bootloader is FSBL. Location where FSBL binary is present and dependency to build FSBL