Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] image size reduction
@ 2015-01-13 17:54 Ravi Chhabra
  2015-01-14 10:08 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Ravi Chhabra @ 2015-01-13 17:54 UTC (permalink / raw)
  To: buildroot


Hi All,

I am trying to boot linux on quad core Aarch64 system with only 8MB on chip RAM which I plan to use for storage and loading the image.

I intend to shrink the size of image file by reducing all possible components and simplifying the build. I am using latest buildroot 14.11 release with ulibc option, no application and minimal busybox options which brought the root filesystem (unzipped cpio) size down to ~3MB which is still quite big.

I would be interested to reduce the size of kernel as well and further reduce the size of filesystem to reduce the size of image (axf file)

Kindly guide the right way to do that.

Thanks,
Ravi C

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150113/af48a1f7/attachment.html>

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

* [Buildroot] image size reduction
  2015-01-13 17:54 [Buildroot] image size reduction Ravi Chhabra
@ 2015-01-14 10:08 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-01-14 10:08 UTC (permalink / raw)
  To: buildroot

Dear Ravi Chhabra,

On Tue, 13 Jan 2015 17:54:11 +0000, Ravi Chhabra wrote:

> I am trying to boot linux on quad core Aarch64 system with only 8MB
> on chip RAM which I plan to use for storage and loading the image.

Great to see people using Buildroot to bring up AArch64 systems!

> I intend to shrink the size of image file by reducing all possible
> components and simplifying the build. I am using latest buildroot
> 14.11 release with ulibc option, no application and minimal busybox
> options which brought the root filesystem (unzipped cpio) size down
> to ~3MB which is still quite big.

Well, 3 MB is generally considered quite small for a Linux root
filesystem. Here is what I could propose to further reduce the size:

 * Tune the Busybox configuration, to reduce the size of the Busybox
   binary. Run 'make busybox-menuconfig', and disable all applets you
   don't use.

 * Enable BR2_STATIC_LIBS=y (was named BR2_PREFER_STATIC_LIB=y). This
   way, Busybox will be linked statically, and you won't have any C
   library on your target.

However, I'm a bit surprised: how do you have uClibc support for
AArch64 ? Or are you building an ARMv7 root filesystem ?

> I would be interested to reduce the size of kernel as well and
> further reduce the size of filesystem to reduce the size of image
> (axf file)

Well, for the kernel, just adjust your kernel configuration and remove
stuff, I believe it's quite obvious.

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-01-14 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 17:54 [Buildroot] image size reduction Ravi Chhabra
2015-01-14 10:08 ` Thomas Petazzoni

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