
Dear John Rigby,
In message 1285775292-15060-6-git-send-email-john.rigby@linaro.org you wrote:
Based on other architectures already supported.
Signed-off-by: John Rigby john.rigby@linaro.org
arch/arm/include/asm/config.h | 2 + arch/arm/lib/bootm.c | 137 ++++++++++++++++++++++++++++++++++++----- common/image.c | 2 + 3 files changed, 125 insertions(+), 16 deletions(-)
diff --git a/arch/arm/include/asm/config.h b/arch/arm/include/asm/config.h index 4e8dfd7..d85a396 100644 --- a/arch/arm/include/asm/config.h +++ b/arch/arm/include/asm/config.h @@ -25,4 +25,6 @@ /* Relocation to SDRAM works on all ARM boards */ #define CONFIG_RELOC_FIXUP_WORKS #endif +#define CONFIG_LMB +#define CONFIG_BOOT_RAMDISK_HIGH #endif
These should be CONFIG_SYS_ instead.
diff --git a/common/image.c b/common/image.c index 0562e3b..7b181cc 100644 --- a/common/image.c +++ b/common/image.c @@ -1214,9 +1214,11 @@ int boot_relocate_fdt (struct lmb *lmb, ulong bootmap_base, if (fdt_blob < (char *)bootmap_base) relocate = 1;
+#ifdef CONFIG_SYS_BOOTMAPSZ if ((fdt_blob + *of_size + CONFIG_SYS_FDT_PAD) >= ((char *)CONFIG_SYS_BOOTMAPSZ + bootmap_base)) relocate = 1; +#endif
What is the impact of this on other architectures?
On which systems / architectures has this been tested?
Best regards,
Wolfgang Denk