From 95f5ef2b52d5bde503fdddc172daff3ff1d39ab0 Mon Sep 17 00:00:00 2001 From: Sandeep Gundlupet Raju Date: Fri, 21 Jul 2023 21:54:26 -0600 Subject: [PATCH] u-boot-xlnx-scr: Add PRE_BOOTENV variable for boot cmd files Based on github Pull Request #34. While that pull request is no longer valid with other changes, the actual bug still exists. Originally reported by Felix S(ubfx). Signed-off-by: Sandeep Gundlupet Raju --- .../recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.qspi.versal | 2 ++ .../recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.versal | 2 ++ .../recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynq | 2 ++ .../recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynqmp | 2 ++ 4 files changed, 8 insertions(+) diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.qspi.versal b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.qspi.versal index d56b7c8cd..b9e2f3ec0 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.qspi.versal +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.qspi.versal @@ -1 +1,3 @@ +@@PRE_BOOTENV@@ + @@KERNEL_BOOTCMD@@ @@KERNEL_LOAD_ADDRESS@@ @@RAMDISK_IMAGE_ADDRESS@@ @@DEVICETREE_ADDRESS@@ diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.versal b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.versal index 8eff483a0..d726187a9 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.versal +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.versal @@ -1,3 +1,5 @@ +@@PRE_BOOTENV@@ + setenv sdbootdev @@SDBOOTDEV@@ setenv bootargs $bootargs root=/dev/mmcblk${sdbootdev}p2 rw rootwait earlycon clk_ignore_unused fatload mmc $sdbootdev @@DEVICETREE_ADDRESS@@ @@DEVICE_TREE_NAME@@ diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynq b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynq index bbd2e01e9..abc5ae005 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynq +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynq @@ -1,3 +1,5 @@ +@@PRE_BOOTENV@@ + if test -n "@@BITSTREAM@@"; then fatload mmc $sdbootdev @@BITSTREAM_LOAD_ADDRESS@@ @@BITSTREAM_IMAGE@@ && fpga @@BITSTREAM_LOAD_TYPE@@ 0 @@BITSTREAM_LOAD_ADDRESS@@ ${filesize} fi diff --git a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynqmp b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynqmp index b234a8dfe..bddab5d08 100644 --- a/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynqmp +++ b/meta-xilinx-core/recipes-bsp/u-boot/u-boot-xlnx-scr/boot.cmd.sd.zynqmp @@ -1,3 +1,5 @@ +@@PRE_BOOTENV@@ + setenv sdbootdev @@SDBOOTDEV@@ setenv bootargs $bootargs root=/dev/mmcblk${sdbootdev}p2 rw rootwait earlycon clk_ignore_unused if test -n "@@BITSTREAM@@"; then