Skip to contentSkip to conversation

ARM: New option for generating uncompressed uImage.

PATCH New Jonas Aaberg 3 participants 5 messages Sep 16, 2010 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: New option for generating uncompressed uImage.

Some systems do boot faster with an uncompressed kernel.

---
 arch/arm/Kconfig       |    7 +++++++
 arch/arm/boot/Makefile |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)
arch/arm/Kconfig +7 -0
index 0b52271..7570be5 100644
@@ -1591,6 +1591,13 @@ config AUTO_ZRELADDR
 	  0xf8000000. This assumes the zImage being placed in the first 128MB
 	  from start of memory.
 
+config UNCOMPRESSED_UIMAGE
+	bool "Uncompressed uImage"
+	help
+	  Some systems do boot faster if an uncompressed kernel is used.
+	  This is depending on your bootloader's flash/mmc read speed
+	  and your CPU speed.
+
 endmenu
 
 menu "CPU Power Management"
arch/arm/boot/Makefile +4 -0
index 4a590f4..dca3163 100644
@@ -77,7 +77,11 @@ else
 $(obj)/uImage: STARTADDR=$(LOADADDR)
 endif
 
+ifeq ($(CONFIG_UNCOMPRESSED_UIMAGE),y)
+$(obj)/uImage:	$(obj)/Image FORCE
+else
 $(obj)/uImage:	$(obj)/zImage FORCE
+endif
 	$(call if_changed,uimage)
 	@echo '  Image $@ is ready'
 
Signature · 1 line
1.6.3.3
#2 lore raw

PATCH 1/1 ARM: New option for generating uncompressed uImage.

In reply to Jonas Aaberg
Quoted 1 line · Jonas Aaberg

Some systems do boot faster with an uncompressed kernel.

Do this externally. uImage in the kernel build is a pain in the backside because different people want different things from it.

#3 lore raw

PATCH 1/1 ARM: New option for generating uncompressed uImage.

Quoted 5 lines · Russell King - ARM Linux
Quoted 1 line · Jonas Aaberg

Some systems do boot faster with an uncompressed kernel.

Do this externally. uImage in the kernel build is a pain in the backside because different people want different things from it.

Ok. I see your point. Maybe uImage generation should be removed from the kernel build system.

BR,
Jonas

#4 lore raw

PATCH 1/1 ARM: New option for generating uncompressed uImage.

In reply to Russell King - ARM Linux
Quoted 5 lines · Russell King - ARM Linux
Quoted 1 line · Jonas Aaberg

Some systems do boot faster with an uncompressed kernel.

Do this externally. uImage in the kernel build is a pain in the backside because different people want different things from it.

we drop this from barebox you can now boot the zImage or the raw image directly

we keep the uImage for the ones that still want to use it

Best Regards,
J.