compiled kernel size

Philip Balister philip at balister.org
Fri Sep 26 10:45:28 UTC 2008


Peter Haijen wrote:
> Hi there,
> 
> I have a kernel and a binary toolchain downloaded from a vendor, and when I
> compile this kernel manually, I get a 1.5mb file eventually.
> However, I want to switch to OE for our development, so I setup an OE
> environment and made a kernel package and the necessary patches to create
> the exact same kernel source under OE.
> When I compile this kernel using the OE build, the resulting file size is
> more than 4mb in size.
> I have also tried compiling these kernel sources separately from the OE
> build environment, but using the OE generated toolchain, and again, the
> resulting kernel image is too big.
> 
> For some reason, when I use the OE generated toolchain, the resulting kernel
> image is +4mb, while the exact same sources compiled with a binary toolchain
> I downloaded result in a perfect 1.5mb kernel.
> 
> I would appreciate any hints where to start looking for the reason for this
> large kernel image.

There was a problem with a binutils version that needed a small patch to 
a linker script in the kernel. This patch solved this problem. This has 
been corrected in later kernels and it looks like we dropped the patch 
from the kernels I know about.

I know this is a bit vague, but is all I can find for you quickly. Maybe 
one of the guys with better memory can find a pointer to the patch we used.

Philip
-------------- 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-users/attachments/20080926/3c50ec90/attachment-0002.bin>


More information about the Openembedded-users mailing list