aboutsummaryrefslogtreecommitdiff
path: root/include/configs/imx8mn_evk.h
diff options
context:
space:
mode:
authorHeiko Thiery2022-02-24 21:07:14 +0100
committerStefano Babic2022-04-21 23:14:24 +0200
commitd173b107be94eb474e1ae75a8addbf5f2fecfd56 (patch)
tree5c598dff0043044dc410b571873f3485380fc2c9 /include/configs/imx8mn_evk.h
parentf5f3906d3abd7761d9341a6aed621650316048df (diff)
ARM: imx: imx8mn-evk: change environment address variables
Currently the space between kernel_addr_r and the fdt_addr_r is only 32MB. To have enough space to load kernel images bigger than 32MB change the variables to a feasible value. The new environment variables layout is based on the scheme from "include/configs/ti_armv7_common.h". The CONFIG_SYS_LOAD_ADDR value is set to 0x42000000. With that we have the same value as for the kernel_addr_r. Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include/configs/imx8mn_evk.h')
-rw-r--r--include/configs/imx8mn_evk.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/include/configs/imx8mn_evk.h b/include/configs/imx8mn_evk.h
index 86b75ab4625..034132225c6 100644
--- a/include/configs/imx8mn_evk.h
+++ b/include/configs/imx8mn_evk.h
@@ -39,19 +39,27 @@
#endif
/* Initial environment variables */
+/* see include/configs/ti_armv7_common.h */
+#define ENV_MEM_LAYOUT_SETTINGS \
+ "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
+ "kernel_addr_r=0x42000000\0" \
+ "fdt_addr_r=0x48000000\0" \
+ "fdtoverlay_addr_r=0x49000000\0" \
+ "ramdisk_addr_r=0x48080000\0" \
+ "initrd_addr=0x48080000\0" \
+ "scriptaddr=0x40000000\0" \
+ "pxefile_addr_r=0x40100000\0"
+
#define CONFIG_EXTRA_ENV_SETTINGS \
"image=Image\0" \
BOOTENV \
- "scriptaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
- "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
"console=ttymxc1,115200\0" \
- "fdt_addr_r=0x43000000\0" \
"boot_fit=no\0" \
"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
- "initrd_addr=0x43800000\0" \
"bootm_size=0x10000000\0" \
"mmcpart=1\0" \
"mmcroot=/dev/mmcblk1p2 rootwait rw\0" \
+ ENV_MEM_LAYOUT_SETTINGS
/* Link Definitions */