]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8m{m,n}_venice: update env memory layout
authorTim Harvey <tharvey@gateworks.com>
Wed, 13 Apr 2022 15:25:10 +0000 (08:25 -0700)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 10:44:23 +0000 (12:44 +0200)
Update distro config env memory layout:
 - loadaddr=0x48200000 allows for 130MB area for uncompressing (ie FIT
   images, kernel_comp_addr_r)
 - 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

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
configs/imx8mm_venice_defconfig
configs/imx8mn_venice_defconfig
include/configs/imx8mm_venice.h
include/configs/imx8mn_venice.h

index 7e6bb6808eb2964478a92c13631fafbb06540696..c68c1500faafb01eaba78c401a361f36a4437db0 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_SPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_ENV_OFFSET_REDUND=0xff8000
-CONFIG_SYS_LOAD_ADDR=0x40480000
+CONFIG_SYS_LOAD_ADDR=0x48200000
 CONFIG_SYS_MEMTEST_START=0x40000000
 CONFIG_SYS_MEMTEST_END=0x80000000
 CONFIG_LTO=y
index 02d79fb479037ef3686a4db944e7728e37debd33..72e8f3e58593a6a0dc9021aaea6276ced0c96084 100644 (file)
@@ -16,7 +16,7 @@ CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_ENV_OFFSET_REDUND=0xff8000
 CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x48000000
-CONFIG_SYS_LOAD_ADDR=0x40480000
+CONFIG_SYS_LOAD_ADDR=0x48200000
 CONFIG_SYS_MEMTEST_START=0x40000000
 CONFIG_SYS_MEMTEST_END=0x80000000
 CONFIG_LTO=y
index eee59a4ca57fd9e102770e784d636e18175394b8..4b7dcf3ed9f02a83c0317891c687a121e680a5a2 100644 (file)
 #endif
 
 #define MEM_LAYOUT_ENV_SETTINGS \
-       "fdt_addr_r=0x44000000\0" \
-       "kernel_addr_r=0x42000000\0" \
-       "ramdisk_addr_r=0x46400000\0" \
-       "scriptaddr=0x46000000\0"
+       "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
+       "fdt_addr_r=0x50200000\0" \
+       "scriptaddr=0x50280000\0" \
+       "ramdisk_addr_r=0x50300000\0" \
+       "kernel_comp_addr_r=0x40200000\0"
 
 /* Enable Distro Boot */
 #ifndef CONFIG_SPL_BUILD
index d977d3265203cae2139513cfcac55c1f05e957f1..d59a739927308ffe58283497b863b734b3ac48b9 100644 (file)
 #endif
 
 #define MEM_LAYOUT_ENV_SETTINGS \
-       "fdt_addr_r=0x44000000\0" \
-       "kernel_addr_r=0x42000000\0" \
-       "ramdisk_addr_r=0x46400000\0" \
-       "scriptaddr=0x46000000\0"
+       "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
+       "fdt_addr_r=0x50200000\0" \
+       "scriptaddr=0x50280000\0" \
+       "ramdisk_addr_r=0x50300000\0" \
+       "kernel_comp_addr_r=0x40200000\0"
 
 /* Enable Distro Boot */
 #ifndef CONFIG_SPL_BUILD