2008-08-25 19:37:47

by Remy Bohmer

[permalink] [raw]
Subject: [patch 1/2] Enable the use of an uncompressed kernel image for U-boot uImage

Normally the 'zImage' is used as base for uImage.
Enable the capability to use the raw uncompressed 'Image' instead

Signed-off-by: Remy Bohmer <[email protected]>
---
arch/arm/Kconfig | 10 ++++++++++
arch/arm/boot/Makefile | 6 +++++-
2 files changed, 15 insertions(+), 1 deletion(-)

Index: linux-2.6.27-rc4/arch/arm/Kconfig
===================================================================
--- linux-2.6.27-rc4.orig/arch/arm/Kconfig 2008-08-25 20:58:33.000000000 +0200
+++ linux-2.6.27-rc4/arch/arm/Kconfig 2008-08-25 20:58:36.000000000 +0200
@@ -967,6 +967,16 @@ config XIP_KERNEL

If unsure, say N.

+config UNCOMPRESSED_UIMAGE
+ bool "Use uncompressed kernel image for uImage"
+ default n
+ help
+ Enable this option if you want uImage to be based on the kernel
+ 'Image' instead of 'zImage'. This will increase the kernel image
+ size, but it can improve kernel boot time in some situations.
+
+ If unsure, say N.
+
config XIP_PHYS_ADDR
hex "XIP Kernel Physical Location"
depends on XIP_KERNEL
Index: linux-2.6.27-rc4/arch/arm/boot/Makefile
===================================================================
--- linux-2.6.27-rc4.orig/arch/arm/boot/Makefile 2008-08-25 20:58:33.000000000 +0200
+++ linux-2.6.27-rc4/arch/arm/boot/Makefile 2008-08-25 20:58:36.000000000 +0200
@@ -70,7 +70,11 @@ else
$(obj)/uImage: LOADADDR=$(ZRELADDR)
endif

-$(obj)/uImage: $(obj)/zImage FORCE
+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'


--


2008-08-25 21:14:00

by Wolfgang Denk

[permalink] [raw]
Subject: Re: [U-Boot] [patch 1/2] Enable the use of an uncompressed kernel image for U-boot uImage

Dear Remy,

In message <[email protected]> you wrote:
> Normally the 'zImage' is used as base for uImage.
> Enable the capability to use the raw uncompressed 'Image' instead

This is an interesting feature, but...

> +config UNCOMPRESSED_UIMAGE
> + bool "Use uncompressed kernel image for uImage"

.. I think it is wrong to make this a configuration option. Instead, a
separate make target should be used so you can actually chose which
image you wantr (or even both versions) without having to reconfigure
/ rebuild the kernel.


Best regards,

Wolfgang Denk

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected]
GUIs are virtually useless. Learn tools. They're configurable,
scriptable, automatable, cron-able, interoperable, etc. We don't need
no brain-dead winslurping monolithic claptrap.
-- Tom Christiansen in 371140df@csnews