Currently, the space between kernel loading address and u-boot start address
is less than 512KB, smaller than u-boot size. This is ok for normal booting,
because u-boot will relocate itself to higher memory address before loading the
kernel. But for mfgtool which pre-loads kernel and u-boot into memory, this causes overlap.
So need change the kernel loading address. Add 2MB offset to it. Because ARM64 kernel
has such requirement:
"arm64 requires the kernel image to placed TEXT_OFFSET bytes beyond a 2 MB aligned base“
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by : Peng Fan <peng.fan@nxp.com>
"else booti ${loadaddr} - ${fdtaddr}; fi"
/* Link Definitions */
-#define CONFIG_LOADADDR 0x40080000
+#define CONFIG_LOADADDR 0x40280000
#define CONFIG_SYS_TEXT_BASE 0x40021000
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
"else booti ${loadaddr} - ${fdtaddr}; fi"
/* Link Definitions */
-#define CONFIG_LOADADDR 0x80080000
+#define CONFIG_LOADADDR 0x80280000
#define CONFIG_SYS_TEXT_BASE 0x80020000
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR
"else booti ${loadaddr} - ${fdtaddr}; fi"
/* Link Definitions */
-#define CONFIG_LOADADDR 0x80080000
+#define CONFIG_LOADADDR 0x80280000
#define CONFIG_SYS_TEXT_BASE 0x80020000
#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR