Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EBB5FC54EE9 for ; Thu, 22 Sep 2022 21:29:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4CFE184CE7; Thu, 22 Sep 2022 23:28:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 62A4F81FD2; Thu, 22 Sep 2022 23:28:46 +0200 (CEST) Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6CD05849F0 for ; Thu, 22 Sep 2022 23:28:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ziswiler.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=marcel@ziswiler.com Received: from toolbox.int.toradex.com ([81.221.243.92]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MVNsG-1olt6W2hiw-00YlCQ; Thu, 22 Sep 2022 23:28:39 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Cc: Marcel Ziswiler Subject: [PATCH v3 1/3] verdin-imx8mm: verdin-imx8mp: update env memory layout (again) Date: Thu, 22 Sep 2022 23:28:32 +0200 Message-Id: <20220922212834.2419255-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220922212834.2419255-1-marcel@ziswiler.com> References: <20220922212834.2419255-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:PD9dwLlPa5nKk0XMb30ycL8aJpW9WUSm/wCEzibLhEGkR6+NGw3 kl0NLeAIV28+DdmRzw6QuJ1BTpGSGUUf802jQwTdtumc+5IHn9iJOfqhWMviKsDe0MMe/ah vknGNrnfKBhzDF3dUbvSFrkor4We16bb/k/zMPEUkS7Og247z7CZW2kdQ1HunurRMrFaM48 oYh/vCt5WS1U6nWsUQyxg== X-UI-Out-Filterresults: notjunk:1;V03:K0:2JK1YqsxZRw=:oSE6nLoyg9KMuL6wOJDV/p PRi47S9s122zVpjAdkfK8Pc7GmTJDQ8qL42yydgrc5mNpPGX6NXwPsimexGn/7CIRkpEpauIv IxsHKXz6QQWUhsHEqVW59jp+FYKfopn/F1h2iu4vIxVW2QE0F2IwErRPoaUhUNFx2JcBRBFiH iigXfZfXTUv5/pr7WZjxGPnMYYReI7DNLuOUbqMytPMR15JJWa3Y/utHjGIP35TpvAs0A70Dw RzR3+rJ/L+hCjffgx5o4luk79zKppJZ4jVxn4/5xPUVIOZdUt3JLZvKbVqumN06AUR69gKX8h O8RfJyBQu2C7n3hWdDycdDw2u1c6jeWYmPU5jbhf+whBQUNIFb3ECFHd+C4V4JzghhDdSWAzJ 9uNRKv1HiVk+9WqjUJJtJs1nupssOtzrSgCDzV3/kp47ZzBxZhhCcTsFLJCEe46xHF0SBJu0P HcQRKP4aiPxrD0FChx9imPwdI59mYneukp1RQNrmYNbqT1vqRaZpLtdiNyZtt82DQwKoDtTIW 3STLDnzHc7K+t3Vh9vDKxb4LrZxXyet4heLS9qjU2d1zcEkY45ACj4LF9UbdMcrWzkB+iX176 vNEyDlfrJ+BMOCJeFMV8Q+WRQX0KsjHTdBlOfUw9k10uEvuRHgC4qU7kUAyPIL/i8dfdi+NR5 neK+h1/lfbNGZ0E9dmV96WIYvMTbav9sfyvCvvsLqSb6Rxdq8eUB3cGaB9Lgui1Ss8buYYsaR qy347MTD9okDdnFLvJtXGNvEYEaiQ6+KeccH0GFlvpN60Fn8o61TW/QF5dXF+CRJy/X8GHrZH hw85fNe X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Marcel Ziswiler 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 --- Changes in v3: - Moved loadaddr back by 0.5MB as I meanwhile found out that it is actually a property of the kernel binary whether or not any additional moving/relocation will (need) to be done. However, a pre-maturely applied v2 did not take that into account as of yet [1]. [1] https://patchwork.ozlabs.org/project/uboot/cover/20220822130604.843081-1-marcel@ziswiler.com/#2953792 Changes in v2: - Moved loadaddr by an additional 0.5MB to avoid "Moving Image from 0x48200000 to 0x48280000" during booti plus increasing kernel_comp_size by same 0.5MB. configs/verdin-imx8mm_defconfig | 2 +- configs/verdin-imx8mp_defconfig | 2 +- include/configs/verdin-imx8mm.h | 2 +- include/configs/verdin-imx8mp.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/configs/verdin-imx8mm_defconfig b/configs/verdin-imx8mm_defconfig index f65b4a7f307..9b9b684ccbc 100644 --- a/configs/verdin-imx8mm_defconfig +++ b/configs/verdin-imx8mm_defconfig @@ -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 diff --git a/configs/verdin-imx8mp_defconfig b/configs/verdin-imx8mp_defconfig index 5d0c57c52e4..071a2223d41 100644 --- a/configs/verdin-imx8mp_defconfig +++ b/configs/verdin-imx8mp_defconfig @@ -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 diff --git a/include/configs/verdin-imx8mm.h b/include/configs/verdin-imx8mm.h index 4d20b86591f..ec893763215 100644 --- a/include/configs/verdin-imx8mm.h +++ b/include/configs/verdin-imx8mm.h @@ -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" diff --git a/include/configs/verdin-imx8mp.h b/include/configs/verdin-imx8mp.h index 9b8db223bb2..959c15f598e 100644 --- a/include/configs/verdin-imx8mp.h +++ b/include/configs/verdin-imx8mp.h @@ -37,7 +37,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" -- 2.35.1