[FE training-materials-updates] yocto: slides: Update slides for krogoth branch
Gregory Clement
gregory.clement at free-electrons.com
Fri Sep 2 17:26:10 CEST 2016
Repository : git://git.free-electrons.com/training-materials.git
On branch : dev_mylene/yocto_update/krogoth
Link : http://git.free-electrons.com/training-materials/commit/?id=a872e358ca1e66088c7417acd58788832128951b
>---------------------------------------------------------------
commit a872e358ca1e66088c7417acd58788832128951b
Author: Mylène Josserand <mylene.josserand at free-electrons.com>
Date: Thu Aug 18 16:32:00 2016 +0200
yocto: slides: Update slides for krogoth branch
Update the Yocto's training slide to be under "krogoth" branch.
Here is the important modifications:
- basics: Remove adt-installer (see poky commit
ab3a71833c7f446aeed7e2aebbd3e20d484c71ff)
- recipe-advanced: Update ALTERNATIVE variables
(see poky commit e0ffc1f37831d03c1e898a9be6e8874130101822)
- bsp: Update the content of cfa10036.inc
- sdk: Rename the poky's version and Eclipse URL
- recipe-extra: Update the connman example
Signed-off-by: Mylène Josserand <mylene.josserand at free-electrons.com>
>---------------------------------------------------------------
a872e358ca1e66088c7417acd58788832128951b
slides/yocto-basics/yocto-basics.tex | 6 ----
slides/yocto-bsp/yocto-bsp.tex | 12 ++++----
slides/yocto-layer/yocto-layer.tex | 3 +-
slides/yocto-overview/yocto-overview.tex | 2 +-
.../yocto-recipe-advanced.tex | 5 ++--
slides/yocto-recipe-extra/yocto-recipe-extra.tex | 20 +++++--------
slides/yocto-sdk/yocto-sdk.tex | 35 ++++++++++++----------
7 files changed, 39 insertions(+), 44 deletions(-)
diff --git a/slides/yocto-basics/yocto-basics.tex b/slides/yocto-basics/yocto-basics.tex
index 4937aaa..85ee458 100644
--- a/slides/yocto-basics/yocto-basics.tex
+++ b/slides/yocto-basics/yocto-basics.tex
@@ -38,8 +38,6 @@
GNOME mobile-based user interface.
\item[meta-toolchain] Includes development headers and
libraries to develop directly on the target.
- \item[adt-installer] Build the application development toolkit
- installer.
\item[meta-ide-support] Generates the cross-toolchain. Useful
when working with the SDK.
\end{description}
@@ -50,8 +48,6 @@
\frametitle{Exported environment variables}
\begin{description}[style=nextline]
\item[BUILDDIR] Absolute path of the build directory.
- \item[BB\_ENV\_EXTRAWHITE] List of environment variables to load
- from the user's environment into BitBake data store.
\item[PATH] Contains the directories where executable programs are
located. Absolute paths to \code{scripts/} and
\code{bitbake/bin/} are prepended.
@@ -122,8 +118,6 @@
\item The \code{conf/local.conf} configuration file holds local
user configuration variables:
\begin{description}
- \item[BB\_NUMBER\_THREADS] How many tasks BitBake should perform
- in parallel.
\item[PARALLEL\_MAKE] How many processes should be used when
compiling.
\item[MACHINE] The machine the target is built for, e.g.
diff --git a/slides/yocto-bsp/yocto-bsp.tex b/slides/yocto-bsp/yocto-bsp.tex
index 42f6403..b3de40c 100644
--- a/slides/yocto-bsp/yocto-bsp.tex
+++ b/slides/yocto-bsp/yocto-bsp.tex
@@ -155,23 +155,23 @@
\begin{block}{}
\begin{minted}[fontsize=\footnotesize]{sh}
# Common definitions for cfa-10036 boards
-include conf/machine/include/mxs-base.inc
+include conf/machine/include/imx-base.inc
+include conf/machine/include/tune-arm926ejs.inc
SOC_FAMILY = "mxs:mx28:cfa10036"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-cfa"
+PREFERRED_PROVIDER_virtual/bootloader ?= "barebox"
IMAGE_BOOTLOADER = "barebox"
BAREBOX_BINARY = "barebox"
+IMAGE_FSTYPES_mxs = "tar.bz2 barebox.mxsboot-sdcard sdcard.gz"
IMXBOOTLETS_MACHINE = "cfa10036"
+
KERNEL_IMAGETYPE = "zImage"
KERNEL_DEVICETREE = "imx28-cfa10036.dtb"
-
# we need the kernel to be installed in the final image
IMAGE_INSTALL_append = " kernel-image kernel-devicetree"
-
SDCARD_ROOTFS ?= "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3"
-IMAGE_FSTYPES ?= "tar.bz2 ext3 barebox.mxsboot-sdcard sdcard"
-
SERIAL_CONSOLE = "115200 ttyAMA0"
MACHINE_FEATURES = "usbgadget usbhost vfat"
\end{minted}
@@ -364,7 +364,7 @@ SRC_URI += "file://defconfig \
patches into several pieces.
\item It is designed to provide a very configurable kernel.
\item The full documentation can be found at
- \url{https://www.yoctoproject.org/docs/1.6.1/kernel-dev/kernel-dev.html\#kernel-dev-advanced}
+ \url{https://www.yoctoproject.org/docs/2.1/kernel-dev/kernel-dev.html\#kernel-dev-advanced}
\end{itemize}
\end{frame}
diff --git a/slides/yocto-layer/yocto-layer.tex b/slides/yocto-layer/yocto-layer.tex
index 9a95640..efc4fbb 100644
--- a/slides/yocto-layer/yocto-layer.tex
+++ b/slides/yocto-layer/yocto-layer.tex
@@ -29,7 +29,6 @@
layers:
\begin{itemize}
\item meta
- \item meta-oe
\item meta-skeleton
\item meta-yocto
\item meta-yocto-bsp
@@ -103,6 +102,8 @@
\item \code{meta-realtime}: real time tools and test programs.
\item \code{meta-telephony} and many more\dots
\end{itemize}
+ Notice that some of these layers do not come with all the Yocto's
+branch. The \code{meta-browser} did not have a krogoth branch, for example.
\end{itemize}
\end{frame}
diff --git a/slides/yocto-overview/yocto-overview.tex b/slides/yocto-overview/yocto-overview.tex
index ff90830..5f5eff2 100644
--- a/slides/yocto-overview/yocto-overview.tex
+++ b/slides/yocto-overview/yocto-overview.tex
@@ -98,7 +98,7 @@
available at \url{http://git.yoctoproject.org/cgit/}
\item To download the Poky reference system: \\
{\small
- \code{git clone -b daisy git://git.yoctoproject.org/poky.git}
+ \code{git clone -b krogoth git://git.yoctoproject.org/poky.git}
}
\end{itemize}
\end{frame}
diff --git a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
index 811eb07..a42c9b3 100644
--- a/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
+++ b/slides/yocto-recipe-advanced/yocto-recipe-advanced.tex
@@ -250,9 +250,8 @@ inherits autotools
functionality, avoiding conflicts by renaming the binaries.
\item Four variables are used to configure the class:
\begin{description}
- \item[ALTERNATIVE\_NAME] The name of the binary.
- \item[ALTERNATIVE\_LINK] The path of the resulting binary.
- \item[ALTERNATIVE\_PATH] The path of the real binary.
+ \item[ALTERNATIVE] The name of the binary.
+ \item[ALTERNATIVE\_LINK\_NAME] The path of the resulting binary.
\item[ALTERNATIVE\_PRIORITY] The alternative priority.
\end{description}
\item The command with the highest priority will be used.
diff --git a/slides/yocto-recipe-extra/yocto-recipe-extra.tex b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
index 8b62c0a..f8243c4 100644
--- a/slides/yocto-recipe-extra/yocto-recipe-extra.tex
+++ b/slides/yocto-recipe-extra/yocto-recipe-extra.tex
@@ -72,18 +72,14 @@ FILES_kdump = "${sbindir}/kdump"
\frametitle{Example: from \code{ConnMan}}
\begin{block}{}
\begin{minted}{sh}
-PACKAGECONFIG ??= "wifi openvpn"
-
-PACKAGECONFIG[wifi] = "--enable-wifi, \
- --disable-wifi, \
- wpa-supplicant"
-PACKAGECONFIG[bluetooth] = "--enable-bluetooth, \
- --disable-bluetooth, \
- bluez4"
-PACKAGECONFIG[openvpn] = "--enable-openvpn , \
- --disable-openvpn, \
- , \
- openvpn"
+PACKAGECONFIG[wifi] = "--enable-wifi, --disable-wifi,\
+ wpa-supplicant, wpa-supplicant"
+PACKAGECONFIG[bluez] = "--enable-bluetooth,\
+ --disable-bluetooth,\
+ ${BLUEZ}, ${BLUEZ}"
+PACKAGECONFIG[openvpn] = "--enable-openvpn \
+ --with-openvpn=${sbindir}/openvpn,\
+ --disable-openvpn,,openvpn"
\end{minted}
\end{block}
\end{frame}
diff --git a/slides/yocto-sdk/yocto-sdk.tex b/slides/yocto-sdk/yocto-sdk.tex
index bd3ccce..9cdbf57 100644
--- a/slides/yocto-sdk/yocto-sdk.tex
+++ b/slides/yocto-sdk/yocto-sdk.tex
@@ -106,7 +106,7 @@
\begin{itemize}
\item \code{build/tmp/deploy/sdk}
\item Example:
- \code{poky-eglibc-x86_64-meta-toolchain-i586-toolchain-1.5.3.sh}
+ \code{poky-glibc-x86_64-meta-toolchain-cortexa8hf-neon-toolchain-2.1.sh}
\end{itemize}
\item The SDK will be configured to be compatible with the
specified \code{MACHINE}.
@@ -131,7 +131,7 @@
\begin{itemize}
\item \code{build/tmp/deploy/sdk}
\item Example:
- \code{poky-eglibc-x86_64-core-image-minimal-i586-toolchain-1.5.3.sh}
+ \code{poky-glibc-x86_64-core-image-minimal-cortexa8hf-neon-toolchain-2.1.sh}
\end{itemize}
\item The SDK will be configured to be compatible with the
specified \code{MACHINE}.
@@ -151,15 +151,20 @@
\begin{itemize}
\item The script asks where to install the SDK. Defaults to
\code{/opt/poky/<version>}
- \item Example: \code{/opt/poky/1.5.3}
+ \item Example: \code{/opt/poky/2.1}
\begin{block}{}
\begin{minted}[fontsize=\scriptsize]{console}
-$ ./poky-eglibc-x86_64-meta-toolchain-i586-toolchain-1.5.3.sh
-Enter target directory for SDK (default: /opt/poky/1.5.3):
-You are about to install the SDK to "/opt/poky/1.5.3". Proceed[Y/n]?
-Extracting SDK...done
+$ ./poky-glibc-x86_64-meta-toolchain-cortexa8hf-neon-toolchain-2.1.sh
+Poky (Yocto Project Reference Distro) SDK installer version 2.1
+===============================================================
+Enter target directory for SDK (default: /opt/poky/2.1):
+You are about to install the SDK to "/opt/poky/2.1". Proceed[Y/n]?
+Extracting SDK.................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
+Each time you wish to use the SDK in a new shell session, you need to source
+the environment setup script e.g.
+ $ . /opt/poky/2.1/environment-setup-cortexa8hf-neon-poky-linux-gnueabi
\end{minted}
\end{block}
\end{itemize}
@@ -172,9 +177,9 @@ SDK has been successfully set up and is ready to be used.
\item To use the SDK, a script is available to set up the
environment:
\begin{block}{}
- \begin{minted}{console}
-$ cd /opt/poky/1.5.3
-$ source ./environment-setup-i586-poky-linux
+ \begin{minted}[fontsize=\scriptsize]{console}
+$ cd /opt/poky/2.1
+$ source ./environment-setup-cortexa8hf-neon-poky-linux-gnueabi
\end{minted}
\end{block}
\item The \code{PATH} is updated to take into account the binaries
@@ -186,13 +191,13 @@ $ source ./environment-setup-i586-poky-linux
\begin{frame}
\frametitle{SDK installation}
\begin{description}
- \item[environment-setup-i586-poky-linux] Exports environment
+ \item[environment-setup-cortexa8hf-neon-poky-linux-gnueabi] Exports environment
variables.
- \item[site-config-i586-poky-linux] Variables used during the
+ \item[site-config-cortexa8hf-neon-poky-linux-gnueabi] Variables used during the
toolchain creation
\item[sysroots] SDK binaries, headers and libraries. Contains
one directory for the host and one for the target.
- \item[version-i586-poky-linux] Version information.
+ \item[version-cortexa8hf-neon-poky-linux-gnueabi] Version information.
\end{description}
\end{frame}
@@ -264,11 +269,11 @@ $ make
version available at:
\begin{itemize}
\item
- \code{http://downloads.yoctoproject.org/releases/eclipse-plugin/1.6.1/juno}
+ \code{http://download.eclipse.org/releases/luna}
\end{itemize}
\item Or it can be compiled from the official repository:
\begin{itemize}
- \item \code{git://git.yoctoproject.org/eclipse-poky-juno}
+ \item \code{git://git.yoctoproject.org/eclipse-poky}
\end{itemize}
\item The full explanations to install and use the Eclipse Yocto
plugin are given in the labs.
More information about the training-materials-updates
mailing list