From 6472328917c240d1ad03561f038a6fe2de8bb382 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Tue, 20 Jun 2017 22:46:53 +1000 Subject: u-boot-zynq-uenv.bb: Enforce default load addresses There is differences in the value of *_load_address environment variables between U-Boot versions (u-boot/u-boot-xlnx) as well as any environment stored in spi flash. Instead of relying on correct configuration being set, set the expected values in uEnv.txt to avoid issues. Signed-off-by: Nathan Rossi --- 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 60b2759c..6cb9b9ec 100644 --- a/recipes-bsp/u-boot/u-boot-zynq-uenv.bb +++ b/recipes-bsp/u-boot/u-boot-zynq-uenv.bb @@ -45,7 +45,9 @@ do_compile() { echo "machine_name=${MACHINE}" > ${WORKDIR}/uEnv.txt echo "kernel_image=${KERNEL_IMAGETYPE}" >> ${WORKDIR}/uEnv.txt + echo "kernel_load_address=0x2080000" >> ${WORKDIR}/uEnv.txt echo "devicetree_image=${@bootfiles_dtb_filepath(d)}" >> ${WORKDIR}/uEnv.txt + echo "devicetree_load_address=0x2000000" >> ${WORKDIR}/uEnv.txt # bootargs, default to booting with the rootfs device being partition 2 of the first mmc device echo 'bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait earlyprintk' >> ${WORKDIR}/uEnv.txt -- cgit v1.2.3-54-g00ecf