[oe] large uImage size

Philip Balister philip at balister.org
Sun Jan 13 15:33:14 UTC 2008


Risto Pajula wrote:
> Hello.
> 
> I am getting very large kernel image size (~4,5 MB) when using the 
> cross-compiler built with a recent version of openembedded. Normal kernel 
> image size is around 1,5 MB. The large kernel image size only happens when 
> building the kernel outside the openembedded build environment, when building 
> with the normal OE build (bitbake minimal-image) the resulting kernel image 
> size is normal.

The newer version of binutils does this. This patch should solve the 
problem. I put this copy in linux/linux-davinci. I believe it has been 
sent upstream ...

Philip

diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
index 5ff5406..538fcb5 100644
--- a/arch/arm/kernel/vmlinux.lds.S
+++ b/arch/arm/kernel/vmlinux.lds.S
@@ -94,6 +94,7 @@ SECTIONS
                         TEXT_TEXT
                         SCHED_TEXT
                         LOCK_TEXT
+                       *(.note.*)
  #ifdef CONFIG_MMU
                         *(.fixup)
  #endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3303 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20080113/7e84291c/attachment-0002.bin>


More information about the Openembedded-devel mailing list