From: Michal Simek Date: Wed, 28 Jan 2015 10:13:48 +0000 (+0100) Subject: zynqmp: Add DOM0 register size calculation by default X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f97259f6c2346f4deafe8bd50f9177409e14ceaf;p=thirdparty%2Fu-boot.git zynqmp: Add DOM0 register size calculation by default Update dom0 size to cover dynamic case where size of rootfs is changing at run time. Signed-off-by: Michal Simek --- diff --git a/include/configs/xilinx_zynqmp.h b/include/configs/xilinx_zynqmp.h index 2db7213d07e..2d755a5c499 100644 --- a/include/configs/xilinx_zynqmp.h +++ b/include/configs/xilinx_zynqmp.h @@ -132,7 +132,10 @@ "sf read 80000 140000 1800000 && booti 80000 - f000000\0" \ "sdboot=mmcinfo && fatload mmc 0:0 f000000 system.dtb && " \ "fatload mmc 0:0 f000000 Image && booti 80000 - f000000\0" \ - "xen=tftpb 4000000 system.dtb && tftpb 0x80000 Image && tftpb 6000000 xen.ub && bootm 6000000 - 4000000\0" \ + "xen=tftpb 4000000 system.dtb && fdt addr 4000000 && fdt resize && \ + tftpb 0x80000 Image && \ + fdt set /chosen/dom0 reg <0x80000 0x$filesize> && \ + tftpb 6000000 xen.ub && bootm 6000000 - 4000000\0" \ "jtagboot=tftpboot 10000000 image.ub && bootm\0" #define CONFIG_BOOTARGS "setenv bootargs console=ttyPS0,${baudrate} " \