]> git.baikalelectronics.ru Git - uboot.git/commitdiff
board: sama5d3_xplained: Fix uboot size when loaded from NAND by SPL
authorFabien Lehoussel <fabien.lehoussel@medianesysteme.com>
Mon, 24 Feb 2020 15:45:31 +0000 (16:45 +0100)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 10 Mar 2020 09:01:08 +0000 (11:01 +0200)
Uboot size is incorrect.
Uboot SPL use CONFIG_SYS_MONITOR_LEN to read uboot from NAND : 0x80000
With sama5d3_xplained_nandflash_defconfig : u-boot.bin size is ~800Ko 0xC0000

So I increased size to 1MB : 0x100000

Signed-off-by: Fabien Lehoussel <fabien.lehoussel@medianesysteme.com>
include/configs/sama5d3_xplained.h

index 696933da73d00b30e4136da83c47a36ac90fd2a6..42c14007c082dce43ccaef0e0abc6a635fa8c57f 100644 (file)
@@ -9,6 +9,7 @@
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
+#include <linux/sizes.h>
 #include "at91-sama5_common.h"
 
 /*
@@ -64,7 +65,8 @@
 #define CONFIG_SYS_SPL_MALLOC_START    0x20080000
 #define CONFIG_SYS_SPL_MALLOC_SIZE     0x80000
 
-#define CONFIG_SYS_MONITOR_LEN         (512 << 10)
+/* size of u-boot.bin to load */
+#define CONFIG_SYS_MONITOR_LEN         (2 * SZ_512K)
 
 #ifdef CONFIG_SD_BOOT
 #define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION     1