From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 04 Jun 2025 11:28:53 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uMkQX-003boT-0O for lore@lore.pengutronix.de; Wed, 04 Jun 2025 11:28:53 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uMkQW-0008LN-OP; Wed, 04 Jun 2025 11:28:52 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uMkQT-0008Kq-N4; Wed, 04 Jun 2025 11:28:49 +0200 Received: from pty.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::c5]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uMkQT-001lip-1i; Wed, 04 Jun 2025 11:28:49 +0200 Received: from rhi by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uMkQT-00AZZK-1L; Wed, 04 Jun 2025 11:28:49 +0200 Date: Wed, 4 Jun 2025 11:28:49 +0200 From: Roland Hieber To: Ahmad Fatoum Message-ID: <1749029124-18d5039ed4d170c7ec330ccc@pty> References: <20250602081232.3334190-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20250602081232.3334190-1-a.fatoum@pengutronix.de> Subject: Re: [DistroKit] [PATCH] v7a: images: stm32mp: double STM32MP15 fip partition size to 2M X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: distrokit@pengutronix.de Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false On Mon, Jun 02, 2025 at 10:12:32AM +0200, Ahmad Fatoum wrote: > Our FIP image contains barebox as non-trusted firmware, a hardware > device tree and a very small firmware config as well as the secure > monitor, either from TF-A or OP-TEE. > > This clocks in at 617K for STM32MP15, where we don't use OP-TEE and 986K > on STM32MP13, where we do use it. > > The STM32MP13 has a separate genimage config, which has a 2M FIP > partition already. Let's follow suit for STM32MP15 to allow for more > convenient experimentation and debugging, e.g. enabling Kernel > AddressSanitizer in barebox already makes it to big to fit inside a 1M > fip partition. > > Signed-off-by: Ahmad Fatoum Note: this is already effectively included in my barebox unification series: <20250526101147.1953428-5-rhi@pengutronix.de> (2025-05-26, Roland Hieber: "[DistroKit] [PATCH 05/11] v7a: stm32mp: switch to upstream barebox recipe") (where the size of the partition is removed in favour of specifying it in the fit image config). - Roland > --- > configs/platform-v7a/config/images/stm32mp.config | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configs/platform-v7a/config/images/stm32mp.config b/configs/platform-v7a/config/images/stm32mp.config > index 888f83b360b1..8f784ad8b9fc 100644 > --- a/configs/platform-v7a/config/images/stm32mp.config > +++ b/configs/platform-v7a/config/images/stm32mp.config > @@ -16,7 +16,7 @@ image @IMAGE@ { > } > partition fip { > image = "@STM32MP_BOARD@@SCMI@.fip" > - size = 1M > + size = 2M > } > > partition barebox-environment { > -- > 2.39.5 -- Roland Hieber, Pengutronix e.K. | rhi@pengutronix.de | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |