From: Adrian Bunk <bunk@stusta.de>
To: Ross Burton <ross.burton@intel.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: Very large size of libraries in core-image-minimal rootfs
Date: Mon, 25 Nov 2019 23:10:27 +0200 [thread overview]
Message-ID: <20191125211027.GA32080@localhost> (raw)
In-Reply-To: <e92b8e21-99c6-c2c9-646a-b3a2e76d90aa@intel.com>
On Mon, Nov 25, 2019 at 07:26:58PM +0000, Ross Burton wrote:
> On 25/11/2019 18:37, Ankur Tyagi wrote:
> > Hi,
> >
> > Based upon "thud" branch, I created core-image-minimal for am335x-evm
> > board and resulting image size is very big(71M)
>
> If disk size is important then a good first step is to use musl instead of
> glibc:
>
> TCLIBC = "musl"
>...
musl is mainly useful for tiny systems, a 40 MB partition is such a huge
amount of space that the size of the C library no longer matters much.
The size benefit of replacing glibc with musl is around 2 MB.
A partition with an -Os build of Yocto with glibc+systemd (sic)
is around 9 MB, together with bootloader and kernel this all
fits in a 16 MB flash. Use compression for kernel and root
filesystem and everything fits in a 8 MB flash.
> Ross
cu
Adrian
next prev parent reply other threads:[~2019-11-25 21:10 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-25 18:37 Very large size of libraries in core-image-minimal rootfs Ankur Tyagi
2019-11-25 19:26 ` Ross Burton
2019-11-25 19:33 ` Ankur Tyagi
2019-11-25 19:49 ` Ross Burton
2019-11-25 19:54 ` Ankur Tyagi
2019-11-25 20:56 ` Ross Burton
2019-11-25 21:10 ` Adrian Bunk [this message]
2019-11-26 6:17 ` Ankur Tyagi
2019-11-26 9:17 ` Adrian Bunk
2019-11-26 18:17 ` Khem Raj
2019-11-26 18:27 ` Ankur Tyagi
2019-11-26 18:30 ` Khem Raj
2019-11-26 19:56 ` Adrian Bunk
2019-11-26 22:57 ` Khem Raj
2019-11-27 6:37 ` Adrian Bunk
2019-11-27 21:13 ` Khem Raj
2019-11-25 19:55 ` Adrian Bunk
2019-11-25 20:22 ` Ankur Tyagi
2019-11-25 20:57 ` Ross Burton
2019-11-26 6:16 ` Ankur Tyagi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191125211027.GA32080@localhost \
--to=bunk@stusta.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.