mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH master v2] ARM: zynq: reduce barebox-avnet-zedboard.img size by 21K
@ 2026-10-15 12:49 Ahmad Fatoum
  2026-10-15 12:58 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2026-10-15 12:49 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

The full barebox image needs to fit into 192K of OCRAM on the Zynq.
This is getting tight, so disable some options that are not always
necessary:

Savings from everything but kallsyms:  3460
Savings from disabling      kallsyms: 18936

This gets barebox-avnet-zedboard.img size down to 171K.

Hopefully, disabling kallsyms is only a temporary measure until we have
either have RELR support for ARM32 or kallsyms is updated to not
emit so many relocations.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
v1 -> v2:
  - actually commit KALLSYMS disablement (Sascha)
---
 arch/arm/configs/zynq_defconfig | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/arch/arm/configs/zynq_defconfig b/arch/arm/configs/zynq_defconfig
index 76c73639d6a0..fd511fa095e0 100644
--- a/arch/arm/configs/zynq_defconfig
+++ b/arch/arm/configs/zynq_defconfig
@@ -1,25 +1,24 @@
 CONFIG_ARCH_ZYNQ=y
+# CONFIG_CPU_V7VE is not set
 CONFIG_MACH_ZEDBOARD=y
-CONFIG_FIRMWARE_ZYNQ7000_FPGA=y
 CONFIG_AEABI=y
 CONFIG_ARM_UNWIND=y
-CONFIG_IMAGE_COMPRESSION_XZKERN=y
 CONFIG_NAME="zynq_defconfig"
+CONFIG_IMAGE_COMPRESSION_XZKERN=y
 CONFIG_MMU=y
 CONFIG_STACK_SIZE=0xf000
 CONFIG_MALLOC_SIZE=0x8000000
-CONFIG_MALLOC_TLSF=y
-CONFIG_KALLSYMS=y
 CONFIG_HUSH_FANCY_PROMPT=y
 CONFIG_CMDLINE_EDITING=y
 CONFIG_AUTO_COMPLETE=y
 CONFIG_MENU=y
-CONFIG_BOOTM_SHOW_TYPE=y
 CONFIG_BOOTM_VERBOSE=y
 CONFIG_BOOTM_INITRD=y
-CONFIG_BOOTM_OFTREE=y
+# CONFIG_BOOTM_UIMAGE is not set
+# CONFIG_DEBUG_BUGVERBOSE is not set
 CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW=y
-CONFIG_DEFAULT_ENVIRONMENT_PATH=""
+# CONFIG_BAREBOX_DT_2ND is not set
+# CONFIG_FILETYPE_STRINGS is not set
 CONFIG_DEBUG_LL=y
 CONFIG_LONGHELP=y
 CONFIG_CMD_MEMINFO=y
@@ -52,6 +51,8 @@ CONFIG_MCI=y
 CONFIG_MCI_ARASAN=y
 CONFIG_GPIO_ZYNQ=y
 # CONFIG_PINCTRL is not set
+CONFIG_FIRMWARE_ZYNQ7000_FPGA=y
+# CONFIG_VIRTIO_MENU is not set
 CONFIG_FS_TFTP=y
 CONFIG_FS_FAT=y
 CONFIG_FS_FAT_WRITE=y
-- 
2.47.3




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

* Re: [PATCH master v2] ARM: zynq: reduce barebox-avnet-zedboard.img size by 21K
  2026-10-15 12:49 [PATCH master v2] ARM: zynq: reduce barebox-avnet-zedboard.img size by 21K Ahmad Fatoum
@ 2026-10-15 12:58 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2026-10-15 12:58 UTC (permalink / raw)
  To: barebox, Ahmad Fatoum


On Thu, 15 Oct 2026 14:49:12 +0200, Ahmad Fatoum wrote:
> The full barebox image needs to fit into 192K of OCRAM on the Zynq.
> This is getting tight, so disable some options that are not always
> necessary:
> 
> Savings from everything but kallsyms:  3460
> Savings from disabling      kallsyms: 18936
> 
> [...]

Applied, thanks!

[1/1] ARM: zynq: reduce barebox-avnet-zedboard.img size by 21K
      https://git.pengutronix.de/cgit/barebox/commit/?id=48bd799e3c90 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2026-10-15 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-15 12:49 [PATCH master v2] ARM: zynq: reduce barebox-avnet-zedboard.img size by 21K Ahmad Fatoum
2026-10-15 12:58 ` Sascha Hauer

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