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 3D5B8C433F5 for ; Wed, 16 Feb 2022 12:25:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B2C1983A45; Wed, 16 Feb 2022 13:25:30 +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="c5YSVGTT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F0DF083A3A; Wed, 16 Feb 2022 13:25:28 +0100 (CET) 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 02EDF83A34 for ; Wed, 16 Feb 2022 13:25:26 +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 d10so4192559eje.10 for ; Wed, 16 Feb 2022 04:25:25 -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:mime-version :content-transfer-encoding; bh=f9Q8GjX0HdCOsxqMh435wRy7H8IFPkrc3ivBNjFY/sc=; b=c5YSVGTT1mg2nMyOtfxI44fxfA9mTJ0kLqe4gqs7rn6mzk6b4sUA/gvxgEcPWVGCH4 JMrF3/EGTheCrQngNSw2uN9eDetWo4mEYu8+0RBxoNM9s8qefolfLk2/82r6o7zMKulh UPvXGILh/DFS9CmRqVRNQKMQbP4m3Gt4FC6adxKrZrvZsptmkJbxWAjRBmZX4DPF5Kq6 +ju3vtVw+dpbSfUFmXGxN3XqzcD/nmnP/VmGH/g1T7vtmevuIfpeihBr7MipmqraZ9D4 tHT/FXZk0M0SFMSyXVlnypkGpHR4tKqReqOjjugG1Pw0J5e6oz/t6duchWLhZTX2+d4d DA0A== 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:mime-version :content-transfer-encoding; bh=f9Q8GjX0HdCOsxqMh435wRy7H8IFPkrc3ivBNjFY/sc=; b=gJN5nOn7pRXvvT+QCJhJG3uKSLI0vjYrfT0jlbpB1g9Fter9QYFIkjN5ydAk1fxOze SfsQhfsX2Ir8cVZ6SK6Ynq7NkdpufD5gJb+ypo1OLR2wGlAlokG7aSrPrPWjmUMKC3Uu gyfasPb/GsJ4DQOl/zLWCvk8cpIG9yNV7O/IY7OF49cUNBpgP+kA40s7A1k3k+Kzvtu/ dG0LSElHKzux4kwIu05IvCxSjAPNwDjMCVUmLLpaTbUxFZkOwYFofwqWDLELeTorlQwB ggXU008h+th7ZI7iJ8DSO8iM6OI344QF1SVTtdXma+zNTLrIvXA1DWXZHzh+RNJWkm5h pGzw== X-Gm-Message-State: AOAM53165dabnan/h3rCLpoRq5HXH9vx3XMANV73p5cpz6lc6O6RSGjr K2U4Zw3xx3iayM5KLzgPy6U53SMKbDM= X-Google-Smtp-Source: ABdhPJy3xPhJNyLxf2B6xWBKi3DKMvpmYR9ch0p2XjNjT9/R7pu9TxL5i45HrGWWiW23eXXnUlleRg== X-Received: by 2002:a17:906:8051:b0:6ce:a85d:ed74 with SMTP id x17-20020a170906805100b006cea85ded74mr2138509ejw.58.1645014325130; Wed, 16 Feb 2022 04:25:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 04:25:24 -0800 (PST) From: Heiko Thiery To: u-boot@lists.denx.de Cc: Frieder Schrempf , Michael Walle , Heiko Thiery Subject: [PATCH v2] kontron-sl-mx8mm: change environment address variables Date: Wed, 16 Feb 2022 13:25:14 +0100 Message-Id: <20220216122514.1659879-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Michael Walle --- configs/kontron-sl-mx8mm_defconfig | 2 +- include/configs/kontron-sl-mx8mm.h | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/configs/kontron-sl-mx8mm_defconfig b/configs/kontron-sl-mx8mm_defconfig index 940bf07a92..030e2251e7 100644 --- a/configs/kontron-sl-mx8mm_defconfig +++ b/configs/kontron-sl-mx8mm_defconfig @@ -20,7 +20,7 @@ CONFIG_SPL_SERIAL=y CONFIG_BOOTCOUNT_BOOTLIMIT=3 CONFIG_SPL=y CONFIG_DISTRO_DEFAULTS=y -CONFIG_SYS_LOAD_ADDR=0x40480000 +CONFIG_SYS_LOAD_ADDR=0x42000000 CONFIG_FIT=y CONFIG_FIT_EXTERNAL_OFFSET=0x3000 CONFIG_SPL_LOAD_FIT=y diff --git a/include/configs/kontron-sl-mx8mm.h b/include/configs/kontron-sl-mx8mm.h index d1e87f97d6..788ae77cd3 100644 --- a/include/configs/kontron-sl-mx8mm.h +++ b/include/configs/kontron-sl-mx8mm.h @@ -67,15 +67,20 @@ #define FEC_QUIRK_ENET_MAC -#define CONFIG_EXTRA_ENV_SETTINGS \ +#define ENV_MEM_LAYOUT_SETTINGS \ + "loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \ "kernel_addr_r=0x42000000\0" \ - "fdt_addr_r=0x44000000\0" \ - "ramdisk_addr_r=0x46400000\0" \ - "pxefile_addr_r=0x46000000\0" \ - "scriptaddr=0x46000000\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 CONFIG_EXTRA_ENV_SETTINGS \ "dfu_alt_info=sf 0:0=flash-bin raw 0x400 0x1f0000\0" \ "bootdelay=3\0" \ "hostname=" CONFIG_HOSTNAME "\0" \ + ENV_MEM_LAYOUT_SETTINGS \ BOOTENV #endif /* __KONTRON_MX8MM_CONFIG_H */ -- 2.30.2