依照 Yocto Project 快速入門文件的步驟下載 Poky 参考建構系统.

http://www.yoctoproject.org/docs/1.7.1/yocto-project-qs/yocto-project-qs.html

* 作業環境為 x86 64 位元 Ubuntu 14.04

<< 安裝必要套件 >>

~$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev xterm

<< 下載 Poky >>

~$ git clone http://git.yoctoproject.org/git/poky

<< 切換至 dizzy 分支 >>

~$ cd poky
~/poky$ git checkout -b dizzy origin/dizzy

<< 環境配置 >>

~/poky$ source oe-init-build-env
~/poky/build$ gedit ./conf/local.conf
#
# Machine Selection
#
# You need to select a specific machine to target the build with. There are a selection
# of emulated machines available which can boot and run in the QEMU emulator:
#
#MACHINE ?= "qemuarm"
#MACHINE ?= "qemumips"
#MACHINE ?= "qemuppc"
#MACHINE ?= "qemux86"
MACHINE ?= "qemux86-64"
#
# There are also the following hardware board target machines included for
# demonstration purposes:
#
#MACHINE ?= "beaglebone"
#MACHINE ?= "genericx86"
#MACHINE ?= "genericx86-64"
#MACHINE ?= "mpc8315e-rdb"
#MACHINE ?= "edgerouter"
#
# This sets the default machine to be qemux86 if no other machine is selected:
#MACHINE ??= "qemux86"

<< 使用 bitbake 建立映像檔 >>

~/poky/build$ bitbake -k core-image-sato

* 编譯過程需數小時...

<< 使用 QEMU 啟動 >>

~/poky/build$ runqemu qemux86-64

yocto_qemu_1.jpg  

yocto_qemu_2.jpg  

(完)

 

 

文章標籤
創作者介紹
創作者 版大 的頭像
版大

嵌入式系統

版大 發表在 痞客邦 留言(0) 人氣()