Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] kernel size
@ 2008-11-02 22:10 steve caster
  2008-11-03  8:41 ` Peter Korsgaard
  2008-11-03 10:15 ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: steve caster @ 2008-11-02 22:10 UTC (permalink / raw)
  To: buildroot

Hi all,

 

I am trying to build a kernel with buildroot and are using a separate
.config file which I made myself. The kernel is working, yet is about 90MB
is size. This is unbelievable as I nearly don't have any modules. What could
make is so big?

I have module support enabled and most of my drivers are compiled as
modules. I don't get the issues. When I look at what it is compiling it is
as if it is compiling everything in it.

Any ideas?

 

Best regards

Steve

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/buildroot/attachments/20081102/66768e2e/attachment.htm 

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

* [Buildroot] kernel size
  2008-11-02 22:10 [Buildroot] kernel size steve caster
@ 2008-11-03  8:41 ` Peter Korsgaard
  2008-11-03 15:05   ` steve at c2root.be
  2008-11-03 10:15 ` Thomas Petazzoni
  1 sibling, 1 reply; 5+ messages in thread
From: Peter Korsgaard @ 2008-11-03  8:41 UTC (permalink / raw)
  To: buildroot

>>>>> "steve" == steve caster <steve@c2root.be> writes:

 steve> Hi all,

 steve> I am trying to build a kernel with buildroot and are using a
 steve> separate .config file which I made myself. The kernel is
 steve> working, yet is about 90MB is size.  This is unbelievable as I
 steve> nearly don?t have any modules. What could make is so big?

Hard to know without any more details. How big is the kernel if you
compile it by hand with the buildroot cross compiler? What platform,
what is your buildroot and kernel .config's?

-- 
Bye, Peter Korsgaard

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

* [Buildroot] kernel size
  2008-11-02 22:10 [Buildroot] kernel size steve caster
  2008-11-03  8:41 ` Peter Korsgaard
@ 2008-11-03 10:15 ` Thomas Petazzoni
  2008-11-03 10:26   ` Ivan Kuten
  1 sibling, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2008-11-03 10:15 UTC (permalink / raw)
  To: buildroot

Le Sun, 2 Nov 2008 23:10:37 +0100,
"steve caster" <steve@c2root.be> a ?crit :

> I am trying to build a kernel with buildroot and are using a separate
> .config file which I made myself. The kernel is working, yet is about
> 90MB is size. This is unbelievable as I nearly don't have any
> modules. What could make is so big?

By chance, aren't you using an initramfs, included in the kernel, which
contains your root filesystem ? That could easily explain the large
size of your kernel image.

This is something that is done automatically by Buildroot if you
enabled BR2_TARGET_ROOTFS_INITRAMFS.

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

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

* [Buildroot] kernel size
  2008-11-03 10:15 ` Thomas Petazzoni
@ 2008-11-03 10:26   ` Ivan Kuten
  0 siblings, 0 replies; 5+ messages in thread
From: Ivan Kuten @ 2008-11-03 10:26 UTC (permalink / raw)
  To: buildroot

Please search mailing list archive,
There was similar problem.
The issue was in binutils and linux-kernel version incompatibility.

Regards,
Ivan

> Le Sun, 2 Nov 2008 23:10:37 +0100,
> "steve caster" <steve@c2root.be> a ?crit :
> 
>> I am trying to build a kernel with buildroot and are using a separate
>> .config file which I made myself. The kernel is working, yet is about
>> 90MB is size. This is unbelievable as I nearly don't have any
>> modules. What could make is so big?
> 
> By chance, aren't you using an initramfs, included in the kernel, which
> contains your root filesystem ? That could easily explain the large
> size of your kernel image.
> 
> This is something that is done automatically by Buildroot if you
> enabled BR2_TARGET_ROOTFS_INITRAMFS.
> 
> Sincerly,
> 
> Thomas

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

* [Buildroot] kernel size
  2008-11-03  8:41 ` Peter Korsgaard
@ 2008-11-03 15:05   ` steve at c2root.be
  0 siblings, 0 replies; 5+ messages in thread
From: steve at c2root.be @ 2008-11-03 15:05 UTC (permalink / raw)
  To: buildroot

Hi all,

I have fixed. It had to do with the initramfs being enabled. So this  
was built inside the kernel. Once I removed that option, my kernel was  
again 1.5 MB

regards
Steve
Quoting Peter Korsgaard <jacmet@uclibc.org>:

>>>>>> "steve" == steve caster <steve@c2root.be> writes:
>
>  steve> Hi all,
>
>  steve> I am trying to build a kernel with buildroot and are using a
>  steve> separate .config file which I made myself. The kernel is
>  steve> working, yet is about 90MB is size.  This is unbelievable as I
>  steve> nearly don?t have any modules. What could make is so big?
>
> Hard to know without any more details. How big is the kernel if you
> compile it by hand with the buildroot cross compiler? What platform,
> what is your buildroot and kernel .config's?
>
> --
> Bye, Peter Korsgaard
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

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

end of thread, other threads:[~2008-11-03 15:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-02 22:10 [Buildroot] kernel size steve caster
2008-11-03  8:41 ` Peter Korsgaard
2008-11-03 15:05   ` steve at c2root.be
2008-11-03 10:15 ` Thomas Petazzoni
2008-11-03 10:26   ` Ivan Kuten

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox