From f97259f6c2346f4deafe8bd50f9177409e14ceaf Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Wed, 28 Jan 2015 11:13:48 +0100 Subject: [PATCH] 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 --- include/configs/xilinx_zynqmp.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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} " \ -- 2.47.3