aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com>2021-01-14 13:17:49 +0530
committerMark Hatle <mark.hatle@xilinx.com>2021-02-17 14:59:14 -0800
commit15fa606896131d5accba99c14eba514f9bcb5171 (patch)
tree5362da93cdd4ef4c3d8188b9a83f293742a2c6a1
parent4d7b03600770fca03d08f92fc47a739da9f5c0db (diff)
downloadmeta-xilinx-15fa606896131d5accba99c14eba514f9bcb5171.tar.gz
meta-xilinx-15fa606896131d5accba99c14eba514f9bcb5171.tar.bz2
meta-xilinx-15fa606896131d5accba99c14eba514f9bcb5171.zip
u-boot-zynq-scr.bb: Add PRE_BOOTENV variable
Add PRE_BOOTENV in uboot-zynq-scr to add boot commands into boot.scr. Defining FIT_IMAGE_OFFSET variables for QSPI and NAND. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
-rw-r--r--meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb
index aecc36df..ed6ff60f 100644
--- a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb
+++ b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-zynq-scr.bb
@@ -33,6 +33,7 @@ SKIP_APPEND_BASEADDR ?= "0"
DDR_BASEADDR ?= "0x0"
DDR_BASEADDR_microblaze ?= "0x80000000"
+PRE_BOOTENV ?= ""
SRC_URI = " \
file://boot.cmd.sd.zynq \
@@ -130,13 +131,15 @@ QSPI_KERNEL_IMAGE_versal ?= "image.ub"
NAND_KERNEL_IMAGE ?= "image.ub"
-QSPI_FIT_IMAGE_LOAD_ADDRESS ?= "${@append_baseaddr(d,"0x10000000")}"
+QSPI_FIT_IMAGE_LOAD_ADDRESS ?= "${@append_baseaddr(d,d.getVar('QSPI_FIT_IMAGE_OFFSET'))}"
+QSPI_FIT_IMAGE_OFFSET ?= "0x10000000"
QSPI_FIT_IMAGE_SIZE ?= "0x6400000"
QSPI_FIT_IMAGE_SIZE_zynqmpdr ?= "0x3F00000"
QSPI_FIT_IMAGE_SIZE_zynq ?= "0xF00000"
QSPI_FIT_IMAGE_SIZE_microblaze ?= "0xF00000"
-NAND_FIT_IMAGE_LOAD_ADDRESS ?= "${@append_baseaddr(d,"0x10000000")}"
+NAND_FIT_IMAGE_LOAD_ADDRESS ?= "${@append_baseaddr(d,d.getVar('NAND_FIT_IMAGE_OFFSET'))}"
+NAND_FIT_IMAGE_OFFSET ?= "0x10000000"
NAND_FIT_IMAGE_SIZE ?= "0x6400000"
SDBOOTDEV ?= "0"
@@ -149,7 +152,7 @@ do_install[noexec] = "1"
python () {
baseaddr = d.getVar('DDR_BASEADDR') or "0x0"
if baseaddr == "0x0":
- d.setVar('PRE_BOOTENV','')
+ d.appendVar('PRE_BOOTENV','')
else:
soc_family = d.getVar('SOC_FAMILY') or ""
if soc_family == "zynqmp":