the yocto project

Download The Yocto Project

If you can't read please download the document

Upload: leon-anavi

Post on 16-Jan-2017

5.675 views

Category:

Technology


1 download

TRANSCRIPT

The Yocto Project

[email protected]

[email protected]

embedded Linux

Yocto Project Poky

OLinuXino

GNU/Linux

(Qt, GTK+, EFL ...) Linux , , device treeBoot loader

embedded Linux

O (target) (host)

: device tree, Linux ,

,

, ,

root image

mbedded Linux

Config + Makefile : Buildroot, PTXdist, openWrt

(openWrt)

mbedded Linux

OpenEmbedded :Poky, Angstrom, Arago, Tizen, AGL, GENIVI

2002 - 2003

2004

Openembedded OpenZaurus

bitbake Openembedded

OpenedHand c Poky Linux

2006 - 2008

2008

2010

Intel OpenHand

Linux Foundation the Yocto Project

oe-core

2011

Bitbake

P

M BSP (Board Support Package)

Yocto Project?

Linux Foundation , embedded Linux .

Open source Yocto

Pseudo, Swabber

Eclipse plugin, application developer toolkit

GUI/Web UI

yocto kernel tooling -

Poky

, ...

Poky

Poky - , Yocto Project

Bitbake -

-

Poky = bitbake +

Yocto/OE

( OSV)UI (BSP)Yocto (meta-yocto)OpenEmbedded (oe-core),

Yocto Project Releases

6 month release cycle

Security patches and bug fixes one release back

Provides both a 'near current' and LTSI kernels

Yocto Project 2.0 Jethro

Yocto Project 1.8 Fido

Yocto Project 1.7 Dizzy

Yocto Project 1.6 Daisy

Yocto Project 1.5 Dora

Yocto Project 1.4 Dylan

Bitbake?

bitbake tizen-common-core-image-crosswalk -e | grep ^DISTRO_FEATURES

bitbake -s | grep foo

bitbake -c compile foo

bitbake -g core-image-minimal

bitbake foo

bitbake -c clean foo

bitbake?

OLinuXino

Open source hardware

A10/A13/A20 Allwinner Technology ARMv7 SoC

Sunxi

OlinuXino ? (1/3)

Poky:

meta-sunxi:

build:

git clone -b fido git://git.yoctoproject.org/poky.git

cd poky
git clone -b fido https://github.com/linux-sunxi/meta-sunxi.git

source oe-init-build-env

OlinuXino ? (2/3)

conf/local.conf:

conf/bblayers.conf:

MACHINE ??= "olinuxino-a20"PARALLEL_MAKE ?= "-j 12"BB_NUMBER_THREADS ?= "12"

BBLAYERS ?= " \ /home/leon/poky-olinuxino/meta \ /home/leon/poky-olinuxino/meta-sunxi \ /home/leon/poky-olinuxino/meta-yocto \

OlinuXino ? (1/3)

Poky:

meta-sunxi:

build:

git clone -b fido git://git.yoctoproject.org/poky.git

cd poky
git clone -b fido https://github.com/linux-sunxi/meta-sunxi.git

source oe-init-build-env

OlinuXino ? (3/3)

bitbake:

, ...

microSD dd bmaptool:

bitbake core-image-minimal

sudo umount /dev/sdXsudo dd if=tmp/deploy/images/olinuxino-a20/core-image-minimal-olinuxino-a20.sunxi-sdimg of=/dev/sdXsync

?

yocto-layer:

./scripts/yocto-layer create openfest

?

:

:

_.bb

SUMMARY = ""HOMEPAGE = ""LICENSE = ""LIC_FILES_CHKSUM = ""SRC_URI = ""SRC_URI[md5sum] = ""SRC_URI[sha256sum] = ""S = "${WORKDIR}/${PN}${PV}"inherit

?

.bbappend:

:

:

_.bbappend

FILESEXTRAPATHS_prepend := "{THISDIR}/${PN}:${PV}:"SRC_URI += "file://mypatch.patch"

SRC_URI += "file://my.conf"do_install_append() { install -m 644 ${WORKDIR}/my.conf ${D}${sysconfdir}}

?

, conf/bblayers.conf

, conf/local.conf:

IMAGE_INSTALL_append = " hello "

https://www.yoctoproject.org/documentation

http://www.openembedded.org/wiki/Getting_started

http://free-electrons.com/training/yocto/

http://layers.openembedded.org/layerindex/branch/master/layers/

https://www.qtdeveloperdays.com/2013/sites/default/files/presentation_pdf/Yocto%20Project,%20A%20Vehicle%20for%20Embedded%20Qt%20development.pdf

?

!