When a bitstream is available and being loaded, setup 'loadbit_addr' to
the expected value. Normally this variable is only set when using
u-boot-xlnx.

Signed-off-by: Nathan Rossi <[email protected]>
---
 recipes-bsp/u-boot/u-boot-zynq-uenv.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/recipes-bsp/u-boot/u-boot-zynq-uenv.bb 
b/recipes-bsp/u-boot/u-boot-zynq-uenv.bb
index 6cb9b9eca3..1aa27607a7 100644
--- a/recipes-bsp/u-boot/u-boot-zynq-uenv.bb
+++ b/recipes-bsp/u-boot/u-boot-zynq-uenv.bb
@@ -58,6 +58,8 @@ do_compile() {
 
        BITSTREAMPATH="${@bootfiles_bitstream(d)[0]}"
        if [ ! -z "$BITSTREAMPATH" ]; then
+               echo "loadbit_addr=0x100000" >> ${WORKDIR}/uEnv.txt
+
                echo "bitstream_image=$BITSTREAMPATH" >> ${WORKDIR}/uEnv.txt
                # if bitstream is "bit" format use loadb, otherwise use load
                echo "bitstream_type=${@'loadb' if bootfiles_bitstream(d)[1] 
else 'load'}" >> ${WORKDIR}/uEnv.txt
-- 
2.14.2


-- 
_______________________________________________
meta-xilinx mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-xilinx

Reply via email to