Commit f3565908 authored by Ye Li's avatar Ye Li Committed by Jason Liu
Browse files

MLK-15301 imx8/imx8m: Change kernel loading address to avoid overlap



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: default avatarYe Li <ye.li@nxp.com>
Reviewed-by : Peng Fan <peng.fan@nxp.com>
parent a33ffe7e
......@@ -140,7 +140,7 @@
"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
......
......@@ -193,7 +193,7 @@
"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
......
......@@ -181,7 +181,7 @@
"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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment