리눅스 환경
root@li:/home/li# lsb_release -a |
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.3 LTS Release: 14.04 Codename: trusty |
관련 패키지 설치
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc- |
multilib build-essential chrpath socat libsdl1.2-dev xterm make
xsltproc docbook-utils fop dblatex xmlto autoconf automake libtool
libglib2.0-dev python-gtk2 bsdmainutils screen
Installing Poky
Yocto release 1.7.1 을 설치한다.
$ sudo install -o $(id -u) -g $(id -g) -d /opt/yocto
$ cd /opt/yocto
$ git clone --branch dizzy git://git.yoctoproject.org/poky
$ cd /opt/yocto/poky
$ source oe-init-build-env qemuarm
다음 경로에 파일들이 생성된다.
li@li:/opt/yocto/poky/qemuarm/conf$ ls
bblayers.conf local.conf templateconf.cfg
templateconf.cfg : This file contains the directory that includes the template
configuration files used to create the project. By default it uses the one pointed to by
the templateconf file in your Poky installation directory, which is meta-yocto/
conf by default.
f core-image-minimal : This is the smallest BusyBox-, sysvinit-, and udev-based
console-only image
f core-image-full-cmdline : This is the BusyBox-based console-only image with
full hardware support and a more complete Linux system, including bash
f core-image-lsb : This is a console-only image that is based on Linux Standard
Base compliance
f core-image-x11 : This is the basic X11 Windows-system-based image with a
graphical terminal
f core-image-sato : This is the X11 Window-system-based image with a SATO theme
and a GNOME Mobile desktop environment
f core-image-weston : This is a Wayland protocol and Weston reference compositor-
based image
You will also find images with the following suffixes:
f dev : These images are suitable for development work, as they contain headers and
libraries.
f sdk : These images include a complete SDK that can be used for development on
the target.
f initramfs : This is an image that can be used for a RAM-based root filesystem,
which can optionally be embedded with the Linux kernel.
----------
$ cd /opt/yocto/poky/qemuarm
$ MACHINE=qemuarm bitbake core-image-minimal
Or we could export the MACHINE variable to the current shell environment with the following:
$ export MACHINE=qemuarm
//////////////////////////////////////LOG
li@li:/opt/yocto/poky/qemuarm$ MACHINE=qemuarm bitbake core-image-minimal
Parsing recipes: 100% |######################| Time: 00:01:36
Parsing of 891 .bb files complete (0 cached, 891 parsed). 1287 targets, 61 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.24.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-14.04"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "qemuarm"
DISTRO = "poky"
DISTRO_VERSION = "1.7.3"
TUNE_FEATURES = "arm armv5 thumb dsp"
TARGET_FPU = "soft"
meta
meta-yocto
meta-yocto-bsp = "dizzy:6d34267e0a13e10ab91b60590b27a2b5ba3b7da6"
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL ftp://ftp.gnu.org/gnu/automake/automake-1.14.1.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://download.savannah.gnu.org/releases/quilt/quilt-0.63.tar.gz, attempting MIRRORS if available
Currently 4 running tasks (92 of 2045):
0: gcc-source-4.9.1-r0 do_fetch (pid 25550)
1: pkgconfig-native-0.28-r0 do_configure (pid 39471)
2: ncurses-native-5.9-r15.1 do_configure (pid 50488)
3: gmp-native-6.0.0-r0 do_compile (pid 65956)
//////////////////////////////////////////////////////////////////////////
NOTE: Tasks Summary: Attempted 149 tasks of which 0 didn't need to be rerun and 2 failed.
Waiting for 0 running tasks to finish:
Summary: 2 tasks failed:
virtual:native:/opt/yocto/poky/meta/recipes-support/libmpc/libmpc_1.0.2.bb, do_fetch
virtual:native:/opt/yocto/poky/meta/recipes-extended/gperf/gperf_3.0.4.bb, do_fetch
Summary: There were 6 WARNING messages shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
'Yocto' 카테고리의 다른 글
rpi image (0) | 2015.11.27 |
---|---|
EGLFS란 (0) | 2015.11.27 |
Bitbake 에서 Hello World출력하기 (0) | 2015.11.25 |
The BSP Layer (0) | 2015.11.23 |
Build 1-1 (0) | 2015.11.23 |