From e11da41853ddb36745c68adaab352fbe00bebc16 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Wed, 18 May 2016 09:44:42 +0200 Subject: split yocto advanced training use several tex files and include them in the presentation Signed-off-by: Manuel Traut --- distribution/yocto-advanced/yocto-layer-imx6.tex | 99 ++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 distribution/yocto-advanced/yocto-layer-imx6.tex (limited to 'distribution/yocto-advanced/yocto-layer-imx6.tex') diff --git a/distribution/yocto-advanced/yocto-layer-imx6.tex b/distribution/yocto-advanced/yocto-layer-imx6.tex new file mode 100644 index 0000000..557afe2 --- /dev/null +++ b/distribution/yocto-advanced/yocto-layer-imx6.tex @@ -0,0 +1,99 @@ +\begin{frame}[fragile] +\frametitle{EXCURSUS: build an imx.6 image \#1} +use +\begin{verbatim} +ls ../*/*/images/ +\end{verbatim} +to get a list of predefined images; image, you want to build an imx6 image, so +none of them fits your needs\dots + \pause +\begin{verbatim} +poky/build-fsl % cd .. +poky % git clone -b fido https://github.com/Freescale/meta-fsl-demos.git +poky % git clone -b fido git://git.openembedded.org/meta-openembedded +poky % cd - +\end{verbatim} + \pause +and edit conf/bblayers.conf, to match +\begin{verbatim} +BBLAYERS ?= " \ + /home/devel/poky/meta \ + /home/devel/poky/meta-yocto \ + /home/devel/poky/meta-yocto-bsp \ + /home/devel/poky/meta-fsl-arm \ + /home/devel/poky/meta-fsl-arm-extra \ + /home/devel/poky/meta-openembedded/meta-oe \ + /home/devel/poky/meta-fsl-demos \ + " +\end{verbatim} +\end{frame} + +\begin{frame}[fragile] +\frametitle{EXCURSUS: build an imx.6 image \#2} +build a qt demo image +\begin{verbatim} +poky/build-imx6 % bitbake qt4e-demo-image +Currently 4 running tasks (26 of 4459): +\end{verbatim} +\end{frame} + +\begin{frame}[fragile] +\frametitle{EXCURSUS: build an imx.6 image \#3} +\dots back from coffee break +\begin{verbatim} +ERROR: No new tasks can be executed since + the disk space monitor action is "STOPTASKS"! +\end{verbatim} +what happened?? + \pause +\begin{verbatim} +poky/build-imx6 % df -h +Filesystem Size Used Avail Use% Mounted on +/dev/sda4 367G 348G 850M 100% / +poky/build-imx6 % du -sm . +31026 . +poky/build-imx6 % du -sm ../build +29172 ../build/ +\end{verbatim} + \pause +\dots so the solution is to cleanup the disk and run +\begin{verbatim} +poky/build-imx6 % bitbake qt4e-demo-image +\end{verbatim} +again. + +A different behaviour can be configured in 'conf/local.conf'. +\end{frame} + +\begin{frame}[fragile] +\frametitle{EXCURSUS: build an imx.6 image \#4} +example of an issue with a sabrelite board +\begin{verbatim} +ERROR: To use 'gpu-viv-bin-mx6q' + you need to accept the Freescale EULA + at '/home/local/src/poky/meta-ti-arm/EULA'. + Please read it and in case you accept it, write: + ACCEPT_FSL_EULA = "1" in your local.conf. +ERROR: Function failed: do_unpack +ERROR: Logfile of failure stored in: + /home/local/src/poky/build-ti/tmp/work/ + cortexa9hf-vfp-neon-mx6-poky-linux-gnueabi/ + gpu-viv-bin-mx6q/1_3.10.17-1.0.0-hfp-r0/temp/ + log.do_unpack.6795 +ERROR: Task 1105 (/home/local/src/poky/meta-ti-arm/ + recipes-graphics/gpu-viv-bin-mx6q/ + gpu-viv-bin-mx6q_3.10.17-1.0.0-hfp.bb, do_unpack) failed + with exit code '1' +\end{verbatim} + \pause +to solve this issue: +\begin{verbatim} +poky/build-fsl % echo 'ACCEPT_FSL_EULA = "1"' >> conf/local.conf +\end{verbatim} + \pause +\dots and run +\begin{verbatim} +poky/build-ti % bitbake qt4e-demo-image +\end{verbatim} +again. +\end{frame} -- cgit v1.2.3