summaryrefslogtreecommitdiff
path: root/distribution/yocto-advanced/yocto-layer-imx6.tex
diff options
context:
space:
mode:
authorJan Altenberg <jan@linutronix.de>2016-05-20 19:02:57 +0200
committerJan Altenberg <jan@linutronix.de>2016-05-20 19:02:57 +0200
commitde3626497bba95b5d44550c9c23b99fd20a8d9c8 (patch)
treedeb98eff85fffccf9f7b2818bf837e6ab51d836a /distribution/yocto-advanced/yocto-layer-imx6.tex
parent29bcbff58ced768f9f4edbc6f4d9d9604552f09e (diff)
parentf4af36737b6e0ca37f5b17434b8f37d04cf083d7 (diff)
Merge remote-tracking branch 'remotes/origin/devel/manut/yocto'
Integration of Manu's latest Yocto topics (autotools)
Diffstat (limited to 'distribution/yocto-advanced/yocto-layer-imx6.tex')
-rw-r--r--distribution/yocto-advanced/yocto-layer-imx6.tex99
1 files changed, 99 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/yocto-layer-imx6.tex b/distribution/yocto-advanced/yocto-layer-imx6.tex
new file mode 100644
index 0000000..1528645
--- /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 krogoth https://github.com/Freescale/meta-fsl-demos.git
+poky % git clone -b krogoth 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}