]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
verdin-imx8mm: verdin-imx8mp: update env memory layout (again)
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>
Thu, 22 Sep 2022 21:28:32 +0000 (23:28 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 24 Oct 2022 09:34:33 +0000 (11:34 +0200)
Update the distro config env memory layout for the Verdin iMX8M Mini and
Verdin iMX8M Plus again:

- loadaddr=0x48200000 allows for 128MB area for uncompressing (ie FIT
  images, kernel_comp_addr_r, kernel_comp_size)
- 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

Memory layout taken from commit fd5c7173ade4
("imx8m{m,n}_venice: update env memory layout").

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).

Note that this corrects a pre-maturely applied version 2 of the same
patch set.

Fixes: bbe0089d29e ("verdin-imx8mm: verdin-imx8mp: update env memory layout")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
configs/verdin-imx8mm_defconfig
configs/verdin-imx8mp_defconfig
include/configs/verdin-imx8mm.h
include/configs/verdin-imx8mp.h

index 230fe55d0688fcd9a84b0af175c95e2a5ad69849..8ed4c872b6691f98d30a81cefa7b2723d542c4c0 100644 (file)
@@ -19,7 +19,7 @@ CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_BOOTCOUNT_ADDR=0x30370090
 CONFIG_SPL=y
 CONFIG_SYS_BOOTCOUNT_SINGLEWORD=y
-CONFIG_SYS_LOAD_ADDR=0x48280000
+CONFIG_SYS_LOAD_ADDR=0x48200000
 CONFIG_SYS_MEMTEST_START=0x40000000
 CONFIG_SYS_MEMTEST_END=0x80000000
 CONFIG_LTO=y
index 5d0c57c52e4f5c6214d328e93fecd923061a1f94..071a2223d41eef623ac6563732937df7f6b473e8 100644 (file)
@@ -22,7 +22,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_IMX_BOOTAUX=y
 CONFIG_SPL_IMX_ROMAPI_LOADADDR=0x48000000
-CONFIG_SYS_LOAD_ADDR=0x48280000
+CONFIG_SYS_LOAD_ADDR=0x48200000
 CONFIG_SYS_MEMTEST_START=0x40000000
 CONFIG_SYS_MEMTEST_END=0x80000000
 CONFIG_DISTRO_DEFAULTS=y
index 1dae991978981bb4b7dcafe7a6adb1d3854f1eea..1de00234f0a04cd812b366606fbeeccbefe996f0 100644 (file)
@@ -23,7 +23,7 @@
        "fdt_addr_r=0x50200000\0" \
        "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
        "kernel_comp_addr_r=0x40200000\0" \
-       "kernel_comp_size=0x08080000\0" \
+       "kernel_comp_size=0x08000000\0" \
        "ramdisk_addr_r=0x50300000\0" \
        "scriptaddr=0x50280000\0"
 
index 69235cb42cb100afd1643fac7968affba58fa28d..ce72798514800c2d7b636d09233806c1b5f57891 100644 (file)
@@ -29,7 +29,7 @@
        "fdt_addr_r=0x50200000\0" \
        "kernel_addr_r=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
        "kernel_comp_addr_r=0x40200000\0" \
-       "kernel_comp_size=0x08080000\0" \
+       "kernel_comp_size=0x08000000\0" \
        "ramdisk_addr_r=0x50300000\0" \
        "scriptaddr=0x50280000\0"