kernel size
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
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"steve" == steve caster <[email protected]> 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?
Signature · 1 line
Bye, Peter Korsgaard
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 <[email protected]>:
Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"steve" == steve caster <[email protected]> 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?
Quoted 7 lines
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.
Le Sun, 2 Nov 2008 23:10:37 +0100,
"steve caster" <[email protected]> a ?crit :
Quoted 4 lines
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
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com
Please search mailing list archive,
There was similar problem.
The issue was in binutils and linux-kernel version incompatibility.
Regards,
Ivan
Quoted 18 lines
Le Sun, 2 Nov 2008 23:10:37 +0100,
"steve caster" <[email protected]> a ?crit :Quoted 4 lines
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