]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
zynqmp: Add DOM0 register size calculation by default
authorMichal Simek <michal.simek@xilinx.com>
Wed, 28 Jan 2015 10:13:48 +0000 (11:13 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 28 Jan 2015 10:15:02 +0000 (11:15 +0100)
Update dom0 size to cover dynamic case where size of
rootfs is changing at run time.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h

index 2db7213d07ee5ca0647346d1d4f294516d430e8f..2d755a5c499f1e6dc6d086cfc6489e5030699010 100644 (file)
                  "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} " \