]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
Xilinx: ARM: Add initrd_high environment variable
authorJagan <jaganna@xilinx.com>
Thu, 19 Jul 2012 10:11:59 +0000 (15:41 +0530)
committerJagan <jaganna@xilinx.com>
Thu, 19 Jul 2012 10:28:07 +0000 (15:58 +0530)
This patch provides support to have dynamic relocation
of ramdisk image (initrd) through initrd_high environment variable.

We set initrd_high value based on our ramdisk image size and is
calculated as initrd_high = 0x800000 + <size_of_mkimaged_ramdisk>

User needs to change this value based on his custom ramdisk image.

Signed-off-by: Jagan <jaganna@xilinx.com>
include/configs/zynq_common.h

index ee7af8b029df85c16e6033bac59e5cde362af198..33691fd415cf34a8f663f5197dd17cfec8fa20c5 100644 (file)
@@ -29,6 +29,7 @@
        "nand_kernel_size=0x400000\0"   \
        "nand_ramdisk_size=0x400000\0"  \
        "fdt_high=0x1000000\0"  \
+       "initrd_high=0xA627C2\0"        \
        "norboot=echo Copying Linux from NOR flash to RAM...;" \
                            "cp 0xE2100000 0x8000 ${kernel_size};" \
                            "cp 0xE2600000 0x1000000 0x8000;" \