summaryrefslogtreecommitdiff
path: root/distribution/yocto-advanced/yocto-layer-imx6.tex
blob: 729312c434ef9ccb6d8225254b987048937e329a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
\begin{frame}[fragile]
\frametitle{build for imx.6 \#1}
\begin{verbatim}
poky % git clone -b krogoth https://github.com/Freescale/meta-freescale-3rdparty.git
poky % git clone -b krogoth https://github.com/Freescale/meta-fsl-arm.git
poky % cd -
\end{verbatim}
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-freescale-3rdparty \
  "
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\frametitle{build for imx.6 \#2}
update conf/local.conf
\begin{verbatim}
DL_DIR ?= /home/devel/downloads
PACKAGE_CLASSES ?= "package_class_deb"
MACHINE ?= "imx6qsabrelite"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks eclipse-debug"
\end{verbatim}
and build an image
\begin{verbatim}
poky/build-imx6 % bitbake core-image-minimal
\end{verbatim}
\end{frame}

\begin{frame}[fragile]
\frametitle{build for imx.6 \#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??
\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}
\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{build for imx.6 \#4}
example of an issue with an image with graphics
\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}
to solve this issue:
\begin{verbatim}
poky/build-fsl % echo 'ACCEPT_FSL_EULA = "1"' >> conf/local.conf
\end{verbatim}
\dots and run
\begin{verbatim}
poky/build-ti % bitbake qt4e-demo-image
\end{verbatim}
again.
\end{frame}