summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorMarcel Ziswiler <[email protected]>2023-01-16 20:05:09 +0100
committerStefano Babic <[email protected]>2023-01-30 21:08:30 +0100
commita9f1e35bedc4ed0ce62b3eceddfe8ffbef12a44f (patch)
treea9a067b1c8024e67146884ee33ac66ac70218e4d /include/configs
parent8930143e87c607af7430f871fa1c8e249e2fe6a4 (diff)
apalis-imx8: update env memory layout
Update the distro config env memory layout for the Apalis iMX8 aka QuadMax: - kernel_comp_addr_r=0xf0000000 temporary area for uncompressing (ie FIT images or Image.gz booted using booti) - kernel_comp_size=0x08000000 - loadaddr=0x95400000 avoiding any reserved areas located before that - fdt_addr_r = loadaddr + 128MB - allows for 128MB kernel - scriptaddr = fdt_addr_r + 512KB - allows for 512KB fdt - ramdisk_addr_r = scriptaddr + 512KB - allows for 512KB script Basic idea of memory layout taken from commit fd5c7173ade4 ("imx8m{m,n}_venice: update env memory layout"). However, moved past any reserved areas to avoid any kind of conflicts. Note that for our regular BSP Layers and Reference Images for Yocto Project an updated distro boot script is required (see meta-toradex-bsp-common/recipes-bsp/u-boot/u-boot-distro-boot). Signed-off-by: Marcel Ziswiler <[email protected]> Signed-off-by: Francesco Dolcini <[email protected]> Reviewed-by: Fabio Estevam <[email protected]>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/apalis-imx8.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/configs/apalis-imx8.h b/include/configs/apalis-imx8.h
index 0c37aa7e384..9eedf36b41e 100644
--- a/include/configs/apalis-imx8.h
+++ b/include/configs/apalis-imx8.h
@@ -12,10 +12,12 @@
/* Networking */
#define MEM_LAYOUT_ENV_SETTINGS \
- "fdt_addr_r=0x84000000\0" \
- "kernel_addr_r=0x82000000\0" \
- "ramdisk_addr_r=0x94400000\0" \
- "scriptaddr=0x87000000\0"
+ "fdt_addr_r=0x9d400000\0" \
+ "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
+ "kernel_comp_addr_r=0xf0000000\0" \
+ "kernel_comp_size=0x08000000\0" \
+ "ramdisk_addr_r=0x9d500000\0" \
+ "scriptaddr=0x9d480000\0"
/* Enable Distro Boot */
#define BOOT_TARGET_DEVICES(func) \