Difference between revisions of "Shared Embedded Linux Distribution"

From eLinux.org
Jump to: navigation, search
(add page outline)
 
Line 10: Line 10:
  
 
== How to use ==
 
== How to use ==
 +
=== Setup repositories ===
 +
<pre>$ git clone git://git.yoctoproject.org/poky.git
 +
$ cd poky
 +
$ git checkout daisy
 +
$ git clone https://github.com/meta-debian/meta-debian.git
 +
$ cd meta-debian
 +
$ git checkout daisy</pre>
 +
Please don't forget to install essential packages into your host system before you bitbake something.
 +
See Yocto Project's web site for this information [http://www.yoctoproject.org/docs/1.6/poky-ref-manual/poky-ref-manual.html#intro-requirements]
 +
 +
=== Setup build directory ===
 +
<pre>
 +
$ export TEMPLATECONF=meta-debian/conf
 +
$ source ./poky/oe-init-build-env
 +
</pre>
 +
You can change the target machine by setting MACHINE variable in local.conf to one of the following machines.
 +
* qemux86, qemux86-64, qemuarm, qemuppc
 +
 +
=== Bitbake kernel and tiny rootfs ===
 +
<pre>
 +
$ bitbake core-image-minimal
 +
</pre>
 +
 +
=== Run the build image on Qemu ===
 +
Please run the following commands after bitbake core-image-minimal finishes.
 +
<pre>
 +
(qemux86)
 +
$ runqemu qemux86 nographic bootparams="init=/init root=/dev/sda"
 +
 +
(qemux86-64)
 +
$ runqemu qemux86-64 nographic bootparams="init=/init root=/dev/sda"
 +
 +
(qemuarm)
 +
$ runqemu qemuarm nographic bootparams="init=/init console=ttyAMA0"
 +
 +
(qemuppc)
 +
$ runqemu qemuppc nographic bootparams="init=/init"
 +
</pre>
 +
The shell prompt appears automatically after system boots without login. "init=/init" means that kernel uses tiny-init script as the init process instead of busybox /sbin/init.
 +
 +
== Resources ==
 +
=== Project home ===
 +
* https://github.com/meta-debian/
 +
 +
=== Mailing list ===
 +
* meta-debian@googlegroups.com
 +
* Subscription
 +
** meta-debian+subscribe@googlegroups.com
 +
** https://groups.google.com/forum/#!forum/meta-debian/join
 +
 +
=== Presentations ===
 +
* [[Media:Poky_meets_Debian_Understanding_How_to_Make_an_Embedded_Linux_by_Using_an_Existing_Distribution%27s_Source_Code.pdf|"Poky meets Debian: Understanding How to Make an Embedded Linux by Using an Existing Distribution's Source Code"]] talk at ELC 2015 by Yoshitake Kobayashi
 +
* [http://events.linuxfoundation.org/sites/events/files/slides/LinuxCon2015_meta-debian_r5.pdf|"meta-debian: Extending Yocto Project's Poky for building Debian-based embedded system"] talk at LinuxCon Japan 2015 by Kazuhiro Hayashi

Revision as of 19:24, 2 June 2015

This page describes the CE Workgroup "Shared Embedded Linux Distribution" project

Rationale

[describe purpose of project]

Status

How to use

Setup repositories

$ git clone git://git.yoctoproject.org/poky.git
$ cd poky
$ git checkout daisy
$ git clone https://github.com/meta-debian/meta-debian.git
$ cd meta-debian
$ git checkout daisy

Please don't forget to install essential packages into your host system before you bitbake something. See Yocto Project's web site for this information [1]

Setup build directory

$ export TEMPLATECONF=meta-debian/conf
$ source ./poky/oe-init-build-env

You can change the target machine by setting MACHINE variable in local.conf to one of the following machines.

  • qemux86, qemux86-64, qemuarm, qemuppc

Bitbake kernel and tiny rootfs

$ bitbake core-image-minimal

Run the build image on Qemu

Please run the following commands after bitbake core-image-minimal finishes.

(qemux86)
$ runqemu qemux86 nographic bootparams="init=/init root=/dev/sda"

(qemux86-64)
$ runqemu qemux86-64 nographic bootparams="init=/init root=/dev/sda"

(qemuarm)
$ runqemu qemuarm nographic bootparams="init=/init console=ttyAMA0"

(qemuppc)
$ runqemu qemuppc nographic bootparams="init=/init"

The shell prompt appears automatically after system boots without login. "init=/init" means that kernel uses tiny-init script as the init process instead of busybox /sbin/init.

Resources

Project home

Mailing list

Presentations