From patchwork Wed Feb 16 12:25:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Thiery X-Patchwork-Id: 1593656 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=YhSszs4V; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4JzHHM3qJ8z9sFv for ; Wed, 16 Feb 2022 23:25:51 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 818CF83A35; Wed, 16 Feb 2022 13:25:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="YhSszs4V"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0B0F983A34; Wed, 16 Feb 2022 13:25:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 960F383A47 for ; Wed, 16 Feb 2022 13:25:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heiko.thiery@gmail.com Received: by mail-ej1-x62d.google.com with SMTP id p14so4173367ejf.11 for ; Wed, 16 Feb 2022 04:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B5WMPJvFBGsVKY17e3FP1Hx8BBYSxqB4ddAKiWmolmM=; b=YhSszs4V4q/lh2Tmx9FPUl2BNEVcXDYBOqgiVzcGATgkl2KhdqlzIcrzy+43TSKO4m uCFfQtjo98SdWoA03CSWi8FZMbMVP9woyPj9t1RLjPeMhiP1UrDbDxw1sCDaeAgVMDOh hDCsTGzF8U8bBCMVE9b9hqZUb6aHj095OnRxteAIP7ikF4r8t1xVbMoNzgMAiEbCWn5p IZGlK5EX7Q9g2eX8qH/YhcGpMMPDrKF5HZ7O65kPeFx5TYOEbP7xUVcsCnmbth6H1fyJ lA89wUYUIt1hCIZ84agjyTwWJqSRB8gpsoPVGd/JgwGrEdmkSod3ZaRlQf08P1mKHHD9 4OVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B5WMPJvFBGsVKY17e3FP1Hx8BBYSxqB4ddAKiWmolmM=; b=jeW/3FmusRVO5IZY89zxWNYLKS3UkCvUG19dDEzw1ZHCg5qHW9XxTqxaIRq5wA+ZM/ hoRJIADFjARp7COZF+ASHbuFho5yxr7Kh35PAdtrPUHJT35+dJKvIfhGvj19pWYcMaMd JqOAQMSSeiB3vHH9ourFcHQW9j6rLHw+C29IHp6SYc8jiWZXfxmjxLWqgYUnuzp8zG6u c1MlIhWzZ7+Ux4BLaHXaWNLEvP+Nww6xG1tBOTWUXXl5V9ZRVEaAdBI6dee2nqw1MKjx gIwLcLoOT8lq6A5oLId2fkA9WLQ9VurEzoDcKvh1CAjaoQvP+H3b6/96Oo0/J0N2MbuH U/DA== X-Gm-Message-State: AOAM533zxDPRin9oOr+zQZgn+jnbPRNFy+HdaliH7ez6C8izVRECMCKb JZSFsIQg56IpDFA0rm7l1rfWnW67pKA= X-Google-Smtp-Source: ABdhPJwy7wf+HWj3e/smHCGcXnKLyuPmoIkA5eu7YD19i4rN6fmrcBJJXaYtm1bdSYENgdzviQYmHA== X-Received: by 2002:a17:906:27db:b0:6ce:6f8:d0e3 with SMTP id k27-20020a17090627db00b006ce06f8d0e3mr2096627ejc.455.1645014331623; Wed, 16 Feb 2022 04:25:31 -0800 (PST) Received: from hthiery.kontron.local ([213.135.10.150]) by smtp.gmail.com with ESMTPSA id y22sm1627431eda.33.2022.02.16.04.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 04:25:31 -0800 (PST) From: Heiko Thiery To: u-boot@lists.denx.de Cc: Frieder Schrempf , Michael Walle , Heiko Thiery Subject: [PATCH] kontron-pitx-imx8m: change environment address variables Date: Wed, 16 Feb 2022 13:25:15 +0100 Message-Id: <20220216122514.1659879-2-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220216122514.1659879-1-heiko.thiery@gmail.com> References: <20220216122514.1659879-1-heiko.thiery@gmail.com> MIME-Version: 1.0 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.5 at phobos.denx.de X-Virus-Status: Clean Currently the space between kernel_addr_r and the fdt_addr_r is only 32MB. To have enought 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 --- configs/kontron_pitx_imx8m_defconfig | 2 +- include/configs/kontron_pitx_imx8m.h | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/configs/kontron_pitx_imx8m_defconfig b/configs/kontron_pitx_imx8m_defconfig index 76430213e3..eeb994c253 100644 --- a/configs/kontron_pitx_imx8m_defconfig +++ b/configs/kontron_pitx_imx8m_defconfig @@ -20,7 +20,7 @@ CONFIG_SPL_DRIVERS_MISC=y CONFIG_SPL=y CONFIG_IMX_BOOTAUX=y CONFIG_DISTRO_DEFAULTS=y -CONFIG_SYS_LOAD_ADDR=0x40480000 +CONFIG_SYS_LOAD_ADDR=0x42000000 CONFIG_FIT=y CONFIG_SPL_FIT_PRINT=y CONFIG_SPL_LOAD_FIT=y diff --git a/include/configs/kontron_pitx_imx8m.h b/include/configs/kontron_pitx_imx8m.h index 0f96b905ab..510ce7906d 100644 --- a/include/configs/kontron_pitx_imx8m.h +++ b/include/configs/kontron_pitx_imx8m.h @@ -49,12 +49,13 @@ #endif #define ENV_MEM_LAYOUT_SETTINGS \ - "kernel_addr_r=0x40880000\0" \ - "fdt_addr_r=0x43000000\0" \ - "scriptaddr=0x43500000\0" \ - "initrd_addr=0x43800000\0" \ - "pxefile_addr_r=0x43500000\0" \ - "bootm_size=0x10000000\0" \ + "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" \ + "scriptaddr=0x40000000\0" \ + "pxefile_addr_r=0x40100000\0" #define BOOT_TARGET_DEVICES(func) \ func(MMC, mmc, 0) \