linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: New option for generating uncompressed uImage.
@ 2010-09-16  7:23 Jonas Aaberg
  2010-09-16  7:36 ` Jean-Christophe PLAGNIOL-VILLARD
  2010-09-16  9:04 ` Russell King - ARM Linux
  0 siblings, 2 replies; 5+ messages in thread
From: Jonas Aaberg @ 2010-09-16  7:23 UTC (permalink / raw)
  To: linux-arm-kernel

Some systems do boot faster with an uncompressed kernel.

Acked-by: Linus Walleij <linus.walleij@stericsson.com>

Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
---
 arch/arm/Kconfig       |    7 +++++++
 arch/arm/boot/Makefile |    4 ++++
 2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 0b52271..7570be5 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -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"
diff --git a/arch/arm/boot/Makefile b/arch/arm/boot/Makefile
index 4a590f4..dca3163 100644
--- a/arch/arm/boot/Makefile
+++ b/arch/arm/boot/Makefile
@@ -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'
 
-- 
1.6.3.3

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

* [PATCH] ARM: New option for generating uncompressed uImage.
  2010-09-16  7:23 [PATCH] ARM: New option for generating uncompressed uImage Jonas Aaberg
@ 2010-09-16  7:36 ` Jean-Christophe PLAGNIOL-VILLARD
  2010-09-16  9:04 ` Russell King - ARM Linux
  1 sibling, 0 replies; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2010-09-16  7:36 UTC (permalink / raw)
  To: linux-arm-kernel

On 09:23 Thu 16 Sep     , Jonas Aaberg wrote:
> Some systems do boot faster with an uncompressed kernel.
> 
> Acked-by: Linus Walleij <linus.walleij@stericsson.com>
> 
> Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com>
I mostly never see it

we are faster to uncompress a kernel in ddr

can you provide beanchmark

Best Regards,
J.

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

* [PATCH] ARM: New option for generating uncompressed uImage.
  2010-09-16  7:23 [PATCH] ARM: New option for generating uncompressed uImage Jonas Aaberg
  2010-09-16  7:36 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2010-09-16  9:04 ` Russell King - ARM Linux
  2010-09-16  9:29   ` Jonas Aaberg
  2010-09-16  9:56   ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 2 replies; 5+ messages in thread
From: Russell King - ARM Linux @ 2010-09-16  9:04 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Sep 16, 2010 at 09:23:03AM +0200, Jonas Aaberg wrote:
> 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.

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

* [PATCH] ARM: New option for generating uncompressed uImage.
  2010-09-16  9:04 ` Russell King - ARM Linux
@ 2010-09-16  9:29   ` Jonas Aaberg
  2010-09-16  9:56   ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 5+ messages in thread
From: Jonas Aaberg @ 2010-09-16  9:29 UTC (permalink / raw)
  To: linux-arm-kernel

On 09/16/2010 11:04 AM, Russell King - ARM Linux wrote:
> On Thu, Sep 16, 2010 at 09:23:03AM +0200, Jonas Aaberg wrote:
>> 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

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

* [PATCH] ARM: New option for generating uncompressed uImage.
  2010-09-16  9:04 ` Russell King - ARM Linux
  2010-09-16  9:29   ` Jonas Aaberg
@ 2010-09-16  9:56   ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 5+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2010-09-16  9:56 UTC (permalink / raw)
  To: linux-arm-kernel

On 10:04 Thu 16 Sep     , Russell King - ARM Linux wrote:
> On Thu, Sep 16, 2010 at 09:23:03AM +0200, Jonas Aaberg wrote:
> > 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.

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

end of thread, other threads:[~2010-09-16  9:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-16  7:23 [PATCH] ARM: New option for generating uncompressed uImage Jonas Aaberg
2010-09-16  7:36 ` Jean-Christophe PLAGNIOL-VILLARD
2010-09-16  9:04 ` Russell King - ARM Linux
2010-09-16  9:29   ` Jonas Aaberg
2010-09-16  9:56   ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).