From mboxrd@z Thu Jan 1 00:00:00 1970 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 1934FECAAA1 for ; Fri, 16 Sep 2022 16:02:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C3C0884BCB; Fri, 16 Sep 2022 18:02:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="vOcDGsXJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F402A84BC0; Fri, 16 Sep 2022 18:02:12 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 75C3784BD3 for ; Fri, 16 Sep 2022 18:02:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kabel@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 35CF2628B9; Fri, 16 Sep 2022 16:02:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF7B0C433D6; Fri, 16 Sep 2022 16:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663344126; bh=1P1U7vj8+/+pFoDYEQ7zzoYEyDQG0IkzACaD2dBzluc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vOcDGsXJuYnHQi2DBTmo2xHCFtrgMbz6yA/t9o0jeNFJrau8YThrZksr9fOEFojgn tJ3Y4LtHRkRlx5Is2dVGE9LBdR67z0X0EfFlS40Ld4B10Uu+uQni9+ky6TkW1Lm3Ji Wr62YngqLfK9o71TBypM7beJHUNLMcGBSikOaa21M81FdRC12LzRspy1qkvTHpM1FZ xOvIfs0Z4s0FLvLb6T5YBa3wNC5lTt/nvUnA82tM95s7V2J6Imbar4WaPHlqkFDh9A T05bL4mKaFuGUksrG6Cc1S5exTFs+q6z6kLpHnNLUnMUHN5s4z+QmbPTKuDTaLIQwu nQlPpJgka6dyA== Date: Fri, 16 Sep 2022 18:02:02 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Stefan Roese , u-boot@lists.denx.de Subject: Re: [PATCH] arm: mvebu: turris_omnia: Add CONFIG_BOARD_SIZE_LIMIT Message-ID: <20220916180202.09d8bd59@dellmb> In-Reply-To: <20220914130646.14262-1-pali@kernel.org> References: <20220914130646.14262-1-pali@kernel.org> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 On Wed, 14 Sep 2022 15:06:46 +0200 Pali Roh=C3=A1r wrote: > Maximal size of u-boot kwb image binary is $CONFIG_ENV_OFFSET which is > 0xF0000 =3D 983040 bytes. So add missing CONFIG_BOARD_SIZE_LIMIT definiti= on > to ensure that u-boot binary does not overflow to the u-boot env storage. >=20 > Signed-off-by: Pali Roh=C3=A1r > --- > configs/turris_omnia_defconfig | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defcon= fig > index ba635feb44b2..6698f2313550 100644 > --- a/configs/turris_omnia_defconfig > +++ b/configs/turris_omnia_defconfig > @@ -28,6 +28,8 @@ CONFIG_SYS_MEMTEST_END=3D0x00ffffff > CONFIG_DISTRO_DEFAULTS=3Dy > CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=3Dy > CONFIG_CUSTOM_SYS_INIT_SP_ADDR=3D0xff0000 > +CONFIG_HAS_BOARD_SIZE_LIMIT=3Dy > +CONFIG_BOARD_SIZE_LIMIT=3D983040 > CONFIG_FIT=3Dy > CONFIG_FIT_VERBOSE=3Dy > CONFIG_OF_BOARD_SETUP=3Dy Reviewed-by: Marek Beh=C3=BAn