VersaLogic Zebra VL-EPC-2701 User Manual page 28

Yocto linux, arm i.mx6 single board computer with gigabit ethernet, video, usb, sata, serial i/o, digital i/o, can bus, spi and i2c
Table of Contents

Advertisement

BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-python "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-filesystems
"
BBLAYERS += " ${BSPDIR}/sources/meta-qt5 "
BB_NUMBER_THREADS = "8"
4. We also need to tell bitbake to include helloworld in the new Linux image by
modifying conf/local.conf to include the line highlighted.
MACHINE ??= 'imx6zebra'
DISTRO ?= 'fsl-imx-x11'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"
IMAGE_INSTALL_append = " helloworld"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
5. Now it is time to build the Linux image again.
$ bitbake fsl-image-validation-imx
Once the new image is built, deploy it to the Zebra using one of the methods already discussed.
On the Zebra, run the application by typing the name of the executable.
root@imx6zebra:~# helloworld
Hello World!
Thank you for choosing VersaLogic!
28
Creating a Simple Application
Zebra (VL-EPC-2701) Yocto Linux User Guide

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents