Exercitiu 4 curs Yocto

Acest exercitiu va fi facut pe sursele downloadate de poky.

  • In layer-ul creat la exercitiul 2 creati o imagine noua
$> mkdir meta-test/recipes-core
$> cd meta-test/recipes-core
$> touch test-image.bb 
  • Deschideti imaginea nou creata si includeti reteta de helloworld
# Base this image on core-image-minimal
include recipes-core/images/core-image-minimal.bb

# Include modules in rootfs
IMAGE_INSTALL += " \
	kernel-modules \
	helloworld \
	"

IMAGE_FEATURES += "ssh-server-dropbear mcp9808"
  • Adaugati noul layer la configuratia directorului de build
$> vim conf/bblayers.conf

Fisierul trebuie sa contine in variabila „BBLAYERS“ urmatoarea informatie:

BBLAYERS ?= " \
  /.../poky/meta \
  /.../poky/meta-yocto \
  /.../poky/meta-yocto-bsp \
  /.../meta-raspberrypi \
  /.../poky/meta-test/ \
  "
  • Adaugati configuratia necesara directorului de build prin intermediul fisierului „conf/local.conf“
$> vim conf/local.conf

Fisierul trebuie sa modifice variabile de build corespunzatoare(descrierea fiecarei variabile este facuta in detaliu):

# 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"
  • Buildati imaginea cu Bitbake
$> bitbake test-image
sisteme_integrate/rezolvari/yocto_readme4.txt · Ultima modificare: 2013/07/31 02:33 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