Informatie generala Yocto

wget http://downloads.yoctoproject.org/releases/yocto/yocto-1.4/poky-dylan-9.0.tar.bz2
tar xjf poky-dylan-9.0.tar.bz2
mv poky-dylan-9.0.0/ poky
cd poky/
git clone https://github.com/djwillis/meta-raspberrypi.git
source oe-init-build-env ../build_raspberryPi
$> vim conf/local.conf
#I have 8 threads on my PC, so I would change it to 8.
BB_NUMBER_THREADS = "8"
PARALLEL_MAKE = "-j 8"
	
MACHINE ?= "raspberrypi"
	
#We need to hide some packages (recipes) from bitbake as they're not yet compatible with the meta-yocto/oe-core layers we are using.
BBMASK = "meta-raspberrypi/recipes-multimedia/libav|meta-raspberrypi/recipes-core/systemd"
$> vim conf/bblayers.conf
BBLAYERS ?= " \
  /.../poky/meta \
  /.../poky/meta-yocto \
  /.../poky/meta-yocto-bsp \
  /.../meta-raspberrypi \
  "
sudo apt-get install sed wget cvs subversion git-core coreutils \
unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk \
python-pysqlite2 diffstat help2man make gcc build-essential \
g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev \
mercurial autoconf automake groff libtool xterm
bitbake rpi-basic-image
dd if=tmp/deploy/images/rpi-basic-image.sd-img of=/path/to/sd/card
  • For cross compiling:
    • use the arm compiler from Mentor graphics.
    • Or use Yocto to generate the toolchain:
bitbake meta-ide-support
		
cd tmp/
source ./environment-setup-armv6-vfp-poky-linux-gnueabi
		
arm-poky-linux-gnueabi-gcc ./hello.c -o ./hello
echo $CC

More info here: http://www.yoctoproject.org/docs/1.3/adt-manual/adt-manual.html

sisteme_integrate/rezolvari/yocto_readme.txt · Ultima modificare: 2013/07/31 02:34 de către alexandru.vaduva
CC Attribution-Noncommercial-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0