2016/2/18

from: http://www.cnblogs.com/enyusmile/p/4442077.html

说明:

我的操作系统环境:ubuntu 14.04 LTS 64位

进入源代码根目录
. build/envsetup.sh(让mmm起作用)
mmm development/tools/idegen/(生成idegen.jar等文件)
sh ./development/tools/idegen/idegen.sh(生成android.irp等文件)
打开android studio导入源码里的android.irp文件(打开Android studio,点击File > Open,选择刚刚生成的android.ipr即可)

    参考:http://www.jianshu.com/p/c85984cf99e2
        http://www.cnblogs.com/qianxudetianxia/p/3721202.html
        http://blog.csdn.net/zhenwenxian/article/details/7102049

ref:
其他:
wand 已經 build 好, robotimxsd
先在 wand 上看 run 起來?
follow instruction build idesign.jar
..

2016/2/16

bitbake 是用 python 寫的tool
他依照bitbake metadata (.bbclass, .bb) 的task內容,判斷task 的dependency, 安排 build 的順序。

bitbake 安裝完,會有一個 class/base.bbclass , 這是基本的 metadata, 會被所有的 metadata include
所以所有project(/task)共同的部份,可以寫在這裡。

openembedded ..

ref: http://www.openembedded.org/wiki/OE-Core_Standalone_Setup

所以 oe 跟 yocto 根本一樣。

-- 有被proxy 檔的可以改clone github mirror, 有 https : http://www.openembedded.org/wiki/Mirrors

大概就是 clone oe-core, 再到oe-core 下面 clone bitbake.
然後 run envsetup, 指定 build 目錄。
然後就開使用bitbake build

 /oe-core
  |
  +- bitbake
  |
  +- meta(s)
  |
  +- scripts
因為oe-core 自己是一個 git project, 所以bitbake 有被寫進 .gitignore 中。


這一篇有說為什麼: http://stackoverflow.com/questions/35904769/what-are-the-differences-between-open-embedded-core-and-meta-openembedded
At the start of the OpenEmbedded Project, there was only one set of recipes. By 2010, the sheer size of the meta-data was a problem. (You can see the old repository here: https://github.com/openembedded/openembedded) The start of the Yocto Project provided manpower to do something OpenEmbedded had talked about for years, start splitting the recipes into useful and easier to maintain subsets. Openembedded-core are the set of recipes that most people need to use to build a small, useful embedded device. Meta-openembedded was everything else. The meta-openembedded layers are used to extend the capability of openembedded-core by increasing the number of recipes to build more software for your project. Since then, we have been working on meta-openembedded to divide it into smaller groups of recipes grouped by technology, which is why meta-openembedded contains several layers now.
大概是說,openembedded 只有一個 recipts, meta-openembedded 就做openedbedded 沒包到的 recipts
yocto 就利用多 recipts 的方法做出一堆公能。

2016/2/2

wandboard, yocto

follow : http://wiki.wandboard.org/Getting_started_with_Yocto_on_Wandboard
但是只能用 dizzy
一樣..

repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b dizzy
repo sync
然後..
export MACHINE=wandboard-dual
. setup-environment build
會到 build 目錄..
Welcome to Freescale Community BSP

The Yocto Project has extensive documentation about OE including a
reference manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/

You can now run 'bitbake '

Common targets are:
    core-image-minimal
    meta-toolchain
    meta-toolchain-sdk
    adt-installer
    meta-ide-support

Your configuration files at build have not been touched.
myserver:~/wandyocto/build$ 
然後build.. minimal..
bitbake core-image-minimal
build 好的東西會在..
build/tmp/deploy/images/wandboard-dual/
其中的 core-image-minimal-wandboard-dual.sdcard 就是 sd card image,
直接 dd 到 sd card 就可以。

開機以後,會出現 login prompt, default username=root, 沒有 password

2016/2/1

yocto imx6 build log

repo init, repo sync
然後..
DISTRO=fsl=imx-fb MACHINE=imx6qsabreauto source  fsl-setup-release.sh -b build-fb
完成以後,會在 build-fb 目錄..
就在這,下
bitbake fsl-image-gui
然後..
Parsing recipes: 100% |#########################################################################################################| Time: 00:00:39
Parsing of 2050 .bb files complete (0 cached, 2050 parsed). 2573 targets, 361 skipped, 4 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: multiple providers are available for jpeg (jpeg, libjpeg-turbo)
NOTE: consider defining a PREFERRED_PROVIDER entry to match jpeg

Build Configuration:
BB_VERSION        = "1.26.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "imx6qsabreauto"
DISTRO            = "fsl-imx-fb"
DISTRO_VERSION    = "3.14.52-1.1.0"
TUNE_FEATURES     = "arm armv7a vfp neon callconvention-hard cortexa9"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        = "(nobranch):b74ea963cefffad9fbd91d4eb9b240f6a8c86cd0"
meta-oe           
meta-multimedia   = "(nobranch):df2f700d66bace65f5d802225232d01cf511fe81"
meta-fsl-arm      = "(nobranch):70ddee3ebeacbc53180ee7221533375bf0c9eac4"
meta-fsl-arm-extra = "(nobranch):41e79c6bd055f12b6252618c22c43a2fed5cfb49"
meta-fsl-demos    = "(nobranch):17f9da65efb5c65c1d44b5cc18584034b29a742b"
meta-bsp          
meta-sdk          = "(nobranch):6a96fe97d411e097d2222c8e93198b558f4c0329"
meta-browser      = "(nobranch):30b8d6b3d0d6501c56ef6967a2fa73a3d4bf5fe9"
meta-gnome        
meta-networking   
meta-python       
meta-ruby         
meta-filesystems  = "(nobranch):df2f700d66bace65f5d802225232d01cf511fe81"
meta-qt5          = "(nobranch):51b4620392aa9041d8512549bfa554bea368c5ea"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL ftp://ftp.astron.com/pub/file/file-5.22.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.openssl.org/source/openssl-1.0.2d.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://invisible-island.net/byacc/byacc-20141128.tgz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://sourceware.org/pub/libffi/libffi-3.2.1.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://downloads.sourceforge.net/project/libpng/libpng16/1.6.16/libpng-1.6.16.tar.xz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://xmlsoft.org/libxml2/libxml2-2.9.2.tar.gz;name=libtar, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://xmlsoft.org/libxslt//libxslt-1.1.28.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.28.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-1.5.1.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-3.3.12.tar.xz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.apache.org/dist/subversion/subversion-1.8.11.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.info-zip.org/pub/infozip/src/unzip60.tgz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/liba/libaio/libaio_0.3.110.orig.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.iana.org/tz/releases/tzcode2015d.tar.gz;name=tzcode, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.iana.org/tz/releases/tzdata2015d.tar.gz;name=tzdata, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.porcupine.org/pub/security/tcp_wrappers_7.6.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://space.mit.edu/pub/davis/slang/v2.2/slang-2.2.4.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.18.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL http://downloads.sourceforge.net/levent/libevent-2.0.21-stable.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.freedesktop.org/pub/mesa/10.4.4/MesaLib-10.4.4.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.2.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.28.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/n/netbase/netbase_5.3.tar.xz, attempting MIRRORS if available
WARNING: /home/charles-chang/imx6yocto/build-fb/tmp/work/imx6qsabreauto-poky-linux-gnueabi/fbset-modes/0.1.0-r6/fbset-modes-0.1.0 ('S') doesn't exist, please set 'S' to a proper value
WARNING: Failed to fetch URL ftp://nano-editor.org/pub/nano/v2.2/nano-2.2.5.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://dl.lm-sensors.org/i2c-tools/releases/i2c-tools-3.1.1.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.alsa-project.org/pub/tools/alsa-tools-1.0.28.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/a/apmd/apmd_3.2.2.orig.tar.gz;name=tarball, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/a/apmd/apmd_3.2.2-14.diff.gz;name=patch, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.debian.org/debian/pool/main/d/dpkg/dpkg_1.17.21.tar.xz, attempting MIRRORS if available
WARNING: lttng-modules: no modules were created; this may be due to CONFIG_TRACEPOINTS not being enabled in your kernel.
WARNING: cpufrequtils-dev-008 was registered as shlib provider for libcpufreq.so.0, changing it to cpufrequtils-008 because it was built later
WARNING: QA Issue: The /usr/share/info/dir file is not meant to be shipped in a particular package. [infodir]
WARNING: QA Issue: devil rdepends on tiff, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: devil rdepends on liblzma, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: pulseaudio-module-console-kit rdepends on consolekit, but it isn't a build dependency? [build-deps]
WARNING: QA Issue: imx-gpu-viv-tools-apitrace rdepends on libpng, but it isn't a build dependency? [build-deps]
WARNING: log_check: There is a warn message in the logfile
WARNING: log_check: Matched keyword: [WARNING:]
WARNING: log_check: WARNING: The license listed Firmware-atheros_firmware was not in the licenses collected for linux-firmware

NOTE: Tasks Summary: Attempted 4300 tasks of which 21 didn't need to be rerun and all succeeded.

Summary: There were 41 WARNING messages shown.