DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH] v7a: images: stm32mp: double STM32MP15 fip partition size to 2M
@ 2025-06-02  8:12 Ahmad Fatoum
  2025-06-04  9:28 ` Roland Hieber
  0 siblings, 1 reply; 3+ messages in thread
From: Ahmad Fatoum @ 2025-06-02  8:12 UTC (permalink / raw)
  To: distrokit; +Cc: Ahmad Fatoum

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 <a.fatoum@pengutronix.de>
---
 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [DistroKit] [PATCH] v7a: images: stm32mp: double STM32MP15 fip partition size to 2M
  2025-06-02  8:12 [DistroKit] [PATCH] v7a: images: stm32mp: double STM32MP15 fip partition size to 2M Ahmad Fatoum
@ 2025-06-04  9:28 ` Roland Hieber
  2025-06-04  9:44   ` Ahmad Fatoum
  0 siblings, 1 reply; 3+ messages in thread
From: Roland Hieber @ 2025-06-04  9:28 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: distrokit

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 <a.fatoum@pengutronix.de>

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 |



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [DistroKit] [PATCH] v7a: images: stm32mp: double STM32MP15 fip partition size to 2M
  2025-06-04  9:28 ` Roland Hieber
@ 2025-06-04  9:44   ` Ahmad Fatoum
  0 siblings, 0 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2025-06-04  9:44 UTC (permalink / raw)
  To: Roland Hieber; +Cc: distrokit

Hello Roland,

On 6/4/25 11:28, Roland Hieber wrote:
> 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 <a.fatoum@pengutronix.de>
> 
> 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).

Nice, this patch can be disregarded then.

Thanks,
Ahmad

> 
>  - 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
> 

-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-04  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-02  8:12 [DistroKit] [PATCH] v7a: images: stm32mp: double STM32MP15 fip partition size to 2M Ahmad Fatoum
2025-06-04  9:28 ` Roland Hieber
2025-06-04  9:44   ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox