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 E5ED6C433EF for ; Wed, 16 Feb 2022 08:24:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7EBCD83A3A; Wed, 16 Feb 2022 09:24:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="BwrPp2hL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 64EF383A48; Wed, 16 Feb 2022 09:24:47 +0100 (CET) Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) (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 78F5B83A2B for ; Wed, 16 Feb 2022 09:24:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 9AD3A22175; Wed, 16 Feb 2022 09:24:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1644999881; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=KLlEu1FYRwNaCOGFJMyDBtvZpOYZsO/CgB89MVPXhko=; b=BwrPp2hL5l/eGVk8WeIhUlgU5lBKbmy5D1qpfTi4cUYJDDb7BqsnaD432QJH3oqOmgBHVS yalch3ItppO9NUn+p3gn/Z5JmmQOUDWgGERIB4o6AqRkN5AVXypF20xcEdRCT/VLMtH9Pj MM5y9DMVwB6eoMlpuoSHGhmexLWdMk4= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 16 Feb 2022 09:24:40 +0100 From: Michael Walle To: Heiko Thiery Cc: u-boot@lists.denx.de, Frieder Schrempf Subject: Re: [PATCH] kontron-sl-mx8mm: change environment address variables In-Reply-To: <20220216081226.1601285-1-heiko.thiery@gmail.com> References: <20220216081226.1601285-1-heiko.thiery@gmail.com> User-Agent: Roundcube Webmail/1.4.12 Message-ID: X-Sender: michael@walle.cc 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 Am 2022-02-16 09:12, schrieb Heiko Thiery: > 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 > varialbes to a feasable value. variables, feasible > 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. reason is missing though, i can already tell from the patch :) > Signed-off-by: Heiko Thiery > --- > 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..0af6a9ab30 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" \ drop the \ at the end of the line. > + > +#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 */ With that fixed: Reviewed-by: Michael Walle -- -michael