mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] arm: avnet zedboard: Use compressed DTB
@ 2022-12-16 12:11 Sascha Hauer
  2022-12-16 12:11 ` [PATCH 2/2] arm: zync: Use XZ for image compression Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Sascha Hauer @ 2022-12-16 12:11 UTC (permalink / raw)
  To: Barebox List

The barebox image is limited to the OCRAM size, so squeeze the binary
size a little bit by using compressed DTB.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/boards/avnet-zedboard/lowlevel.c | 4 ++--
 arch/arm/mach-zynq/Kconfig                | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boards/avnet-zedboard/lowlevel.c b/arch/arm/boards/avnet-zedboard/lowlevel.c
index f7bdceb42a..87ce79863d 100644
--- a/arch/arm/boards/avnet-zedboard/lowlevel.c
+++ b/arch/arm/boards/avnet-zedboard/lowlevel.c
@@ -14,7 +14,7 @@
 #define PLL_DDR_LOCK	(1 << 1)
 #define PLL_IO_LOCK	(1 << 2)
 
-extern char __dtb_zynq_zed_start[];
+extern char __dtb_z_zynq_zed_start[];
 
 static void avnet_zedboard_ps7_init(void)
 {
@@ -289,7 +289,7 @@ static void avnet_zedboard_pbl_console_init(void)
 ENTRY_FUNCTION(start_avnet_zedboard, r0, r1, r2)
 {
 
-	void *fdt = __dtb_zynq_zed_start + get_runtime_offset();
+	void *fdt = __dtb_z_zynq_zed_start + get_runtime_offset();
 
 	/* MIO_07 in GPIO Mode 3.3V VIO, can be uncomented because it is the default value */
 	writel(0x0000DF0D, ZYNQ_SLCR_UNLOCK);
diff --git a/arch/arm/mach-zynq/Kconfig b/arch/arm/mach-zynq/Kconfig
index 3f2cd8e99c..3aac4506e3 100644
--- a/arch/arm/mach-zynq/Kconfig
+++ b/arch/arm/mach-zynq/Kconfig
@@ -29,6 +29,7 @@ menu "select Zynq boards to be built"
 
 config MACH_ZEDBOARD
 	bool "Avnet Zynq-7000 ZedBoard"
+	select ARM_USE_COMPRESSED_DTB
 	select ARCH_ZYNQ7000
 
 endmenu
-- 
2.30.2




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

* [PATCH 2/2] arm: zync: Use XZ for image compression
  2022-12-16 12:11 [PATCH 1/2] arm: avnet zedboard: Use compressed DTB Sascha Hauer
@ 2022-12-16 12:11 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2022-12-16 12:11 UTC (permalink / raw)
  To: Barebox List

The zync images are currently limited to OCRAM size, so make the images
a bit smaller by using XZ instead of LZO.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/configs/zynq_defconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/configs/zynq_defconfig b/arch/arm/configs/zynq_defconfig
index 38662eeb5d..226942e6b4 100644
--- a/arch/arm/configs/zynq_defconfig
+++ b/arch/arm/configs/zynq_defconfig
@@ -2,6 +2,7 @@ CONFIG_ARCH_ZYNQ=y
 CONFIG_MACH_ZEDBOARD=y
 CONFIG_AEABI=y
 CONFIG_ARM_UNWIND=y
+CONFIG_IMAGE_COMPRESSION_XZKERN=y
 CONFIG_MMU=y
 CONFIG_STACK_SIZE=0xf000
 CONFIG_MALLOC_SIZE=0x8000000
@@ -42,7 +43,7 @@ CONFIG_NET=y
 CONFIG_DRIVER_SERIAL_CADENCE=y
 CONFIG_DRIVER_NET_MACB=y
 # CONFIG_SPI is not set
+CONFIG_GPIO_ZYNQ=y
 # CONFIG_PINCTRL is not set
 CONFIG_FS_TFTP=y
 CONFIG_DIGEST=y
-CONFIG_GPIO_ZYNQ=y
-- 
2.30.2




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

end of thread, other threads:[~2022-12-16 12:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-16 12:11 [PATCH 1/2] arm: avnet zedboard: Use compressed DTB Sascha Hauer
2022-12-16 12:11 ` [PATCH 2/2] arm: zync: Use XZ for image compression Sascha Hauer

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