DistroKit Mailinglist
 help / color / mirror / Atom feed
* [DistroKit] [PATCH 1/2] v7a: barebox: verify MLO size at build time
@ 2021-03-12 22:28 Ahmad Fatoum
  2021-03-12 22:28 ` [DistroKit] [PATCH 2/2] v7a: barebox: am335x-mlo: use XZ compression to reduce size Ahmad Fatoum
  2021-03-15  9:17 ` [DistroKit] [PATCH 1/2] v7a: barebox: verify MLO size at build time Robert Schwebel
  0 siblings, 2 replies; 4+ messages in thread
From: Ahmad Fatoum @ 2021-03-12 22:28 UTC (permalink / raw)
  To: distrokit; +Cc: Ahmad Fatoum

SRAM0 on the AM335x is 109K in size. Specify this in the config, so we
get a build error if our MLO exceeds this size.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
Please order before Uwe's series to avoid the intermittent breakage.
---
 configs/platform-v7a/barebox-am335x-mlo.config | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/platform-v7a/barebox-am335x-mlo.config b/configs/platform-v7a/barebox-am335x-mlo.config
index 618d8e77bb3a..7245cd662d0c 100644
--- a/configs/platform-v7a/barebox-am335x-mlo.config
+++ b/configs/platform-v7a/barebox-am335x-mlo.config
@@ -48,7 +48,7 @@ CONFIG_CPU_32v7=y
 # processor features
 #
 # CONFIG_BOOT_ENDIANNESS_SWITCH is not set
-CONFIG_BAREBOX_MAX_IMAGE_SIZE=0xffffffff
+CONFIG_BAREBOX_MAX_IMAGE_SIZE=0x1b400
 
 #
 # OMAP Features
-- 
2.29.2


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

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

* [DistroKit] [PATCH 2/2] v7a: barebox: am335x-mlo: use XZ compression to reduce size
  2021-03-12 22:28 [DistroKit] [PATCH 1/2] v7a: barebox: verify MLO size at build time Ahmad Fatoum
@ 2021-03-12 22:28 ` Ahmad Fatoum
  2021-03-15  9:17   ` Robert Schwebel
  2021-03-15  9:17 ` [DistroKit] [PATCH 1/2] v7a: barebox: verify MLO size at build time Robert Schwebel
  1 sibling, 1 reply; 4+ messages in thread
From: Ahmad Fatoum @ 2021-03-12 22:28 UTC (permalink / raw)
  To: distrokit; +Cc: Ahmad Fatoum

With the upcoming update, our current MLO config will exceed the maximum
size allowed. Work around this by using XZ compression instead, which
reduces size from 115K to 101K, which gives us a further 8K we can
munch.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
Please order before Uwe's series to avoid the intermittent breakage.
---
 configs/platform-v7a/barebox-am335x-mlo.config | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configs/platform-v7a/barebox-am335x-mlo.config b/configs/platform-v7a/barebox-am335x-mlo.config
index 7245cd662d0c..c24227aeaa64 100644
--- a/configs/platform-v7a/barebox-am335x-mlo.config
+++ b/configs/platform-v7a/barebox-am335x-mlo.config
@@ -114,9 +114,9 @@ CONFIG_PBL_MULTI_IMAGES=y
 CONFIG_PBL_RELOCATABLE=y
 CONFIG_IMAGE_COMPRESSION=y
 # CONFIG_IMAGE_COMPRESSION_LZ4 is not set
-CONFIG_IMAGE_COMPRESSION_LZO=y
+# CONFIG_IMAGE_COMPRESSION_LZO is not set
 # CONFIG_IMAGE_COMPRESSION_GZIP is not set
-# CONFIG_IMAGE_COMPRESSION_XZKERN is not set
+CONFIG_IMAGE_COMPRESSION_XZKERN=y
 # CONFIG_IMAGE_COMPRESSION_NONE is not set
 CONFIG_MMU=y
 CONFIG_MMU_EARLY=y
-- 
2.29.2


_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

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

* Re: [DistroKit] [PATCH 1/2] v7a: barebox: verify MLO size at build time
  2021-03-12 22:28 [DistroKit] [PATCH 1/2] v7a: barebox: verify MLO size at build time Ahmad Fatoum
  2021-03-12 22:28 ` [DistroKit] [PATCH 2/2] v7a: barebox: am335x-mlo: use XZ compression to reduce size Ahmad Fatoum
@ 2021-03-15  9:17 ` Robert Schwebel
  1 sibling, 0 replies; 4+ messages in thread
From: Robert Schwebel @ 2021-03-15  9:17 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: distrokit

On Fri, Mar 12, 2021 at 11:28:13PM +0100, Ahmad Fatoum wrote:
> SRAM0 on the AM335x is 109K in size. Specify this in the config, so we
> get a build error if our MLO exceeds this size.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> Please order before Uwe's series to avoid the intermittent breakage.
> ---
>  configs/platform-v7a/barebox-am335x-mlo.config | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to next.

rsc
-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

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

* Re: [DistroKit] [PATCH 2/2] v7a: barebox: am335x-mlo: use XZ compression to reduce size
  2021-03-12 22:28 ` [DistroKit] [PATCH 2/2] v7a: barebox: am335x-mlo: use XZ compression to reduce size Ahmad Fatoum
@ 2021-03-15  9:17   ` Robert Schwebel
  0 siblings, 0 replies; 4+ messages in thread
From: Robert Schwebel @ 2021-03-15  9:17 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: distrokit

On Fri, Mar 12, 2021 at 11:28:14PM +0100, Ahmad Fatoum wrote:
> With the upcoming update, our current MLO config will exceed the maximum
> size allowed. Work around this by using XZ compression instead, which
> reduces size from 115K to 101K, which gives us a further 8K we can
> munch.
> 
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> Please order before Uwe's series to avoid the intermittent breakage.
> ---
>  configs/platform-v7a/barebox-am335x-mlo.config | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to next.

rsc
-- 
Pengutronix e.K.                           | Dipl.-Ing. Robert Schwebel  |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-9    |

_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de

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

end of thread, other threads:[~2021-03-15  9:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-12 22:28 [DistroKit] [PATCH 1/2] v7a: barebox: verify MLO size at build time Ahmad Fatoum
2021-03-12 22:28 ` [DistroKit] [PATCH 2/2] v7a: barebox: am335x-mlo: use XZ compression to reduce size Ahmad Fatoum
2021-03-15  9:17   ` Robert Schwebel
2021-03-15  9:17 ` [DistroKit] [PATCH 1/2] v7a: barebox: verify MLO size at build time Robert Schwebel

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