From: Darren Hart <dvhart@linux.intel.com>
To: Yocto Project <yocto@yoctoproject.org>,
raj.khem@gmail.com, koen@dominion.thruhere.net,
kergoth@gmail.com, martin.jansa@gmail.com,
Bruce Ashfield <bruce.ashfield@windriver.com>,
Tom Zanussi <tom.zanussi@intel.com>,
Richard Purdie <richard.purdie@linuxfoundation.org>
Subject: [PATCH V3 0/3] New distribution definition for poky-tiny
Date: Wed, 28 Dec 2011 15:45:27 -0800 [thread overview]
Message-ID: <cover.1325115602.git.dvhart@linux.intel.com> (raw)
V3:
o Rebase on master
o Dependent on oe-core series "Fixes for tiny distros and linux-yocto-tiny"
RFC V2:
o Use VIRTUAL-RUNTIME_keymaps as suggested by Martin Jansa
o Drop poky-common abstraction as suggested by Richard Purdie in
favor of POKY_DEFAULT_EXTRA_R* variables.
Poky-tiny defines a new distro policy for building tiny Linux images. Rather
than create new image tasks and recipes, it reuses existing ones, modifying them
as necessary. See the poky-tiny commit log for details on the policy goals.
In its current form, poky-tiny builds a qemux86 core-image-minimal image
and kernel in 2.6 MB (compressed):
1.2M bzImage-qemux86.bin
1.4M core-image-minimal-qemux86.cpio.gz
After mounting the rootfs:
$ sudo du -hs .
3.4M .
$ sudo ~/bin/dirsize.py 25000
[sudo] password for dvhart:
2927998 .
1754686 ./lib
1022080 ./lib/libc-2.13.so
157124 ./lib/libm-2.13.so
119036 ./lib/ld-2.13.so
96128 ./lib/libpthread-2.13.so
91960 ./lib/libnsl-2.13.so
83748 ./lib/libresolv-2.13.so
46656 ./lib/libnss_files-2.13.so
34588 ./lib/libnss_compat-2.13.so
30624 ./lib/librt-2.13.so
26056 ./lib/libcrypt-2.13.so
549600 ./bin
549600 ./bin/busybox
531908 ./sbin
531908 ./sbin/ldconfig
71860 ./etc
28006 ./etc/init.d
Displayed 2789508/2927998 bytes (95.27%)
This image can be tested in qemu with:
qemu-system-i386 -kernel /build/poky/qemux86/tmp/deploy/images/bzImage-qemux86.bin -append "console=ttyS0,115200 root=0800" -nographic /build/poky/qemux86/tmp/deploy/images/core-image-minimal-qemux86.ext2
This results in booting to a busybox shell:
/bin/sh: can't access tty; job control turned off
/ #
While some improvement is still needed, especially with the init scripting and
the linux-yocto-tiny integration with the linux-yocto kernel tools, this gets
us started and gets the core in place for others to start using it and help to
shape the init process, etc.
Thanks,
Darren
The following changes since commit 6cd5faddad3c69e7e81e7f66d87a3ee650ec717e:
task-core-boot: Allow DISTRO to disable keymaps via VIRTUAL-RUNTIME_keymaps (2011-12-28 15:28:20 -0800)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib dvhart/tiny-v3
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dvhart/tiny-v3
Darren Hart (3):
distro: Add POKY_DEFAULT_EXTRA_R* variables
distro: Add poky-tiny distro definition
image_types: Ensure /init exists for cpio rootfs archives
meta-yocto/conf/distro/poky-tiny.conf | 103 +++++++++++++++++++++++++++++++++
meta-yocto/conf/distro/poky.conf | 8 ++-
meta/classes/image_types.bbclass | 10 +++-
3 files changed, 117 insertions(+), 4 deletions(-)
create mode 100644 meta-yocto/conf/distro/poky-tiny.conf
--
1.7.6.4
next reply other threads:[~2011-12-28 23:46 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-28 23:45 Darren Hart [this message]
2011-12-28 23:45 ` [PATCH 1/3] distro: Add POKY_DEFAULT_EXTRA_R* variables Darren Hart
2011-12-28 23:45 ` [PATCH 2/3] distro: Add poky-tiny distro definition Darren Hart
2012-01-04 0:19 ` Khem Raj
2012-01-04 16:16 ` Darren Hart
2012-01-04 16:31 ` Chris Larson
2012-01-04 13:56 ` Leon Woestenberg
2012-01-04 14:12 ` Richard Purdie
2011-12-28 23:45 ` [PATCH 3/3] image_types: Ensure /init exists for cpio rootfs archives Darren Hart
2011-12-28 23:52 ` Darren Hart
2011-12-28 23:54 ` [PATCH] " Darren Hart
2011-12-29 17:39 ` Chris Larson
2011-12-30 8:25 ` Andrea Adami
2011-12-30 23:18 ` Darren Hart
2012-01-03 14:57 ` Andrea Adami
2012-01-04 0:07 ` Saul Wold
2012-01-04 23:49 ` Andrea Adami
2012-01-05 0:05 ` Andrea Adami
2012-01-05 12:30 ` Richard Purdie
2012-01-05 23:36 ` Darren Hart
2012-01-06 1:00 ` Andrea Adami
2012-01-06 1:10 ` Andrea Adami
2012-01-06 10:57 ` Richard Purdie
2012-01-06 22:58 ` Andrea Adami
2012-01-10 23:07 ` Andrea Adami
2012-01-10 23:28 ` Andrea Adami
2011-12-29 0:16 ` [PATCH V3 0/3] New distribution definition for poky-tiny Chris Larson
2011-12-29 1:07 ` Leon Woestenberg
2011-12-29 1:51 ` Chris Larson
2011-12-29 2:12 ` Leon Woestenberg
2012-01-06 11:52 ` Richard Purdie
2011-12-29 5:55 ` Darren Hart
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=cover.1325115602.git.dvhart@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=bruce.ashfield@windriver.com \
--cc=kergoth@gmail.com \
--cc=koen@dominion.thruhere.net \
--cc=martin.jansa@gmail.com \
--cc=raj.khem@gmail.com \
--cc=richard.purdie@linuxfoundation.org \
--cc=tom.zanussi@intel.com \
--cc=yocto@yoctoproject.org \
/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.