All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V3 0/3] New distribution definition for poky-tiny
@ 2011-12-28 23:45 Darren Hart
  2011-12-28 23:45 ` [PATCH 1/3] distro: Add POKY_DEFAULT_EXTRA_R* variables Darren Hart
                   ` (4 more replies)
  0 siblings, 5 replies; 32+ messages in thread
From: Darren Hart @ 2011-12-28 23:45 UTC (permalink / raw)
  To: Yocto Project, raj.khem, koen, kergoth, martin.jansa,
	Bruce Ashfield, Tom Zanussi, Richard Purdie

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



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

end of thread, other threads:[~2012-01-10 23:35 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-28 23:45 [PATCH V3 0/3] New distribution definition for poky-tiny Darren Hart
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

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.