Lets give the life to our imx6Q friend.
After following the installation steps from https://community.freescale.com/docs/DOC-94849
source setup-environment fsl-image-ui
Our current image configuration is fsl-image-gui
cd /path/to/fsl-community-bsp/fsl-image-gui
vim conf/local.conf
MACHINE ??= 'imx6qsabreauto'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks dev-pkgs"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K"
CONF_VERSION = "1"
BB_NUMBER_THREADS = '6'
PARALLEL_MAKE = '-j 6'
LICENSE_FLAGS_WHITELIST = "commercial"
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = ""
CORE_IMAGE_EXTRA_INSTALL += "gpu-viv-bin-mx6q gpu-viv-bin-mx6q-dev"
CORE_IMAGE_EXTRA_INSTALL += "libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev opencv-samples openssh-sftp-server"
TOOLCHAIN_HOST_TASK_append = " nativesdk-python-subprocess"
EXTRA_IMAGE_FEATURES = "ssh-server-openssh"
Error:
doc_utils will fail to compile.
We will get an error and it can solved fortunately.
Solution:
https://lists.yoctoproject.org/pipermail/meta-freescale/2012-December/000585.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=2972
http://pastebin.com/cUb1x2Qj
* Or download the openjade-native_1.3.2_freescale from previous page and replace its contents in
/path/to/fsl-community-bsp/sources/poky/meta/recipes-devtools/openjade/openjade-native_1.3.2.bb
bitbake opencv
Error:
Nothing PROVIDES 'libav' (but /home/trendantenna/bin/fsl-community-bsp-dora/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb DEPENDS on or otherwise requires it)
ERROR: libav was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
ERROR: libav was skipped: because it has a restricted license not whitelisted in LICENSE_FLAGS_WHITELIST
ERROR: Required build target 'opencv' has no buildable providers.
Missing or unbuildable dependency chain was: ['opencv', 'libav']
Solution:
vim conf/local.conf
MACHINE ??= 'imx6qsabreauto'
LICENSE_FLAGS_WHITELIST = "commercial"
Error:
ERROR: Task 187 (/home/satyam/Yocto/freescale/fsl-community-bsp/sources/meta-openembedded/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb, do_compile) failed with exit code '1'
Solution:
bitbake opencv-samples for building the samples.
Reference: http://imxcv.blogspot.com.br/2014/02/building-opencv-24x-for-freescales-imx6.html