configs: ti: armv7: Fixes bug in fit_loadaddr for ramfs boot
authorMadan Srinivas <madans@ti.com>
Mon, 17 Jul 2017 18:01:36 +0000 (13:01 -0500)
committerTom Rini <trini@konsulko.com>
Wed, 26 Jul 2017 15:26:51 +0000 (11:26 -0400)
The load address of ramdisk, rdaddr is 0x88080000 and fit_loadaddr
is defined as 0x88000000. This leaves only 512Kbytes for the
fit image. When the FIT images are larger than this, it will
overwite the ramdisk and cause the boot to fail.

For eg, The K2 HS fit images are a few MB and end up overwriting
the ramdsk. This patch moves the fit_loadaddr to 0x87000000,
leaving a 16MB window for the fit image. This memory can be
reclaimed once the kernel starts running.

Signed-off-by: Madan Srinivas <madans@ti.com>
include/configs/ti_armv7_common.h

index a94748c35db9c6a2dbfe6c9e0e6225f1932482b6..ccd7cd72d2f1d96a239d5c6274e0e0176334f4e9 100644 (file)
@@ -53,7 +53,7 @@
 
 #define DEFAULT_FIT_TI_ARGS \
        "boot_fit=0\0" \
-       "fit_loadaddr=0x88000000\0" \
+       "fit_loadaddr=0x87000000\0" \
        "fit_bootfile=fitImage\0" \
        "update_to_fit=setenv loadaddr ${fit_loadaddr}; setenv bootfile ${fit_bootfile}\0" \
        "loadfit=run args_mmc; bootm ${loadaddr}#${fdtfile};\0" \