Don't hardcode u-boot.bin size for the case where mkimage signature is
missing, use CONFIG_SYS_NAND_U_BOOT_SIZE for this.

Signed-off-by: Ilya Yanok <[email protected]>
---
 arch/arm/cpu/armv7/omap-common/spl.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/arm/cpu/armv7/omap-common/spl.c 
b/arch/arm/cpu/armv7/omap-common/spl.c
index c76fea6..f28411b 100644
--- a/arch/arm/cpu/armv7/omap-common/spl.c
+++ b/arch/arm/cpu/armv7/omap-common/spl.c
@@ -81,8 +81,7 @@ void spl_parse_image_header(const struct image_header *header)
                printf("mkimage signature not found - ih_magic = %x\n",
                        header->ih_magic);
                puts("Assuming u-boot.bin ..\n");
-               /* Let's assume U-Boot will not be more than 200 KB */
-               spl_image.size = 200 * 1024;
+               spl_image.size = CONFIG_SYS_NAND_U_BOOT_SIZE;
                spl_image.entry_point = CONFIG_SYS_TEXT_BASE;
                spl_image.load_addr = CONFIG_SYS_TEXT_BASE;
                spl_image.os = IH_OS_U_BOOT;
-- 
1.7.6.4

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to