From d05a89acc37783d91b10ff911e6b29a16c494d6f Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 19 Sep 2014 12:06:34 +0200 Subject: yocto-slides: small improvements * toaster screenshots * updated kernel recipe to match meta-mini * updated agenda Signed-off-by: Manuel Traut --- .../yocto-advanced/pres_yocto-advanced.tex | 49 ++++++++-------------- distribution/yocto-basic/pres_yocto-basic.tex | 25 +++++++---- distribution/yocto-intro/pres_yocto-intro.tex | 4 +- 3 files changed, 36 insertions(+), 42 deletions(-) (limited to 'distribution') diff --git a/distribution/yocto-advanced/pres_yocto-advanced.tex b/distribution/yocto-advanced/pres_yocto-advanced.tex index 189e377..5d306f1 100644 --- a/distribution/yocto-advanced/pres_yocto-advanced.tex +++ b/distribution/yocto-advanced/pres_yocto-advanced.tex @@ -6,13 +6,12 @@ \begin{frame} \frametitle{Agenda} \begin{itemize} -\item Using BSP layers (beaglebone) -\item Build a predefined image (beaglebone) +\item Using BSP layers +\item Build a predefined image \item Creating a layer \item Define a distribution \item Create an image \item Writing recipes -\item Yocto \& ELBE combined? \end{itemize} \end{frame} @@ -602,31 +601,15 @@ DISTRO_FEATURES_append = " systemd" TCLIBCAPPEND = "" \end{verbatim} \end{frame} + \begin{frame}[fragile] \begin{verbatim} -PREMIRRORS ??= "\ -bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -svk://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" -\end{verbatim} -\end{frame} -\begin{frame}[fragile] -\begin{verbatim} -MIRRORS =+ "\ -ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ -https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" - CONNECTIVITY_CHECK_URIS ?= " \ https://eula-downloads.yoctoproject.org/index.php \ http://bugzilla.yoctoproject.org/report.cgi" \end{verbatim} \end{frame} + \begin{frame}[fragile] \begin{verbatim} SANITY_TESTED_DISTROS ?= " \ @@ -795,7 +778,8 @@ create the file 'meta-mini/recipes-bsp/linux-vanilla/linux-vanilla\_3.16.1.bb': SECTION = "kernel" DESCRIPTION = "Linux vanilla kernel" LICENSE = "GPLv2" -KERNEL_IMAGETYPE = "uImage" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" +KERNEL_IMAGETYPE ?= "uImage" inherit kernel require recipes-kernel/linux/linux-dtb.inc @@ -805,19 +789,22 @@ require recipes-kernel/linux/linux-dtb.inc \begin{frame}[fragile] \frametitle{adding a kernel \#2} \begin{verbatim} +COMPATILBE_MACHINE_imx6qsabrelite = "imx6qsabrelite" +KERNEL_DEVICETREE_imx6qsabrelite = "arch/arm/boot/dts/imx6q-sabrelite.dts" COMPATILBE_MACHINE_beaglebone-black = "beaglebone-black" -KERNEL_DEVICETREE_beaglebone-black = \ -"arch/arm/boot/dts/am335x-boneblack.dts" +KERNEL_DEVICETREE_beaglebone-black = "arch/arm/boot/dts/am335x-boneblack.dts" + +S = "${WORKDIR}/git -S = "${WORKDIR}/linux-${PV}" -https://www.kernel.org/pub/linux/kernel/v3.x/linux-${PV}.tar.xz \ -file://defconfig \ -" +BRANCH = "master" +SRC_URI = "https://www.kernel.org/pub/linux/kernel/v3.x/linux-${PV}.tar.xz \ + file://defconfig" -SRC_URI[md5sum] = "???" -SRC_URI[sha256sum] = "???" +SRC_URI[md5sum] = "e7a985a243b7941b6bc6240fcbc797fc" +SRC_URI[sha256sum] = "be37dda8ea090525661d64e5c7fc8580f313b7f9ba8592e32120f1332b KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" +LINUX_VERSION_EXTENSION = "-linutronix" do_configure_prepend() { cp '${WORKDIR}/defconfig' '${S}/.config' @@ -848,7 +835,7 @@ PROVIDES += "virtual/kernel" --8<-------------------------------- \end{verbatim} -PREFERRED\_PROVIDER\_virtual/kernel = "linux-yocto" +PREFERRED\_PROVIDER\_virtual/kernel = "linux-vanilla" \pause diff --git a/distribution/yocto-basic/pres_yocto-basic.tex b/distribution/yocto-basic/pres_yocto-basic.tex index c75c7ba..29ab14d 100644 --- a/distribution/yocto-basic/pres_yocto-basic.tex +++ b/distribution/yocto-basic/pres_yocto-basic.tex @@ -489,10 +489,7 @@ specific options inherit is used to use the functionality defined in a .bblcass file. Popular predefined classes are: \begin{itemize} -\item allarch -\item archiver -\item autotools / autotools-brokensep -\item bin\_package +\item autotools \item cmake \item cpan \item distutils / setuptools @@ -525,8 +522,6 @@ an append file must be named after the base package: \begin{verbatim} _.bbappend \end{verbatim} -\pause - can be replaced by \% to match all versions. \end{frame} \subsection{Classes} @@ -535,7 +530,7 @@ an append file must be named after the base package: \begin{itemize} \item python can be used to write functions \pause - \item there should be no need to write a own class + \item e.g. write your own image generation class \end{itemize} \end{frame} @@ -823,7 +818,7 @@ that is used by the Board .conf file \item [IMAGE\_FSTYPES] formats for the rootfs, e.g. "ext3 tar.bz2" \pause \item [IMAGE\_CLASSES] list of classes that all images should inherit, default - is image\_types + is image\_types, e.g. to hook in own image generation code \end{description} \end{frame} @@ -1126,6 +1121,18 @@ is used to stop toaster (only one toaster per pc possible) only actions between toaster start and stop are recorded \end{frame} +\begin{frame} + \includegraphics[height=\textheight]{images/yocto-toaster1} +\end{frame} + +\begin{frame} + \includegraphics[height=\textheight]{images/yocto-toaster2} +\end{frame} + +\begin{frame} + \includegraphics[height=\textheight]{images/yocto-toaster3} +\end{frame} + \begin{frame}[fragile] \frametitle{cleanup} \begin{verbatim} @@ -1259,7 +1266,7 @@ poky/build % bitbake meta-ide-support \begin{frame}[fragile] \frametitle{export a nfsroot} \begin{verbatim} -%runqemu-extract-sdk \ +poky/build % runqemu-extract-sdk \ tmp/deploy/images/qemux86/core-image-minimal-qemux86.tar.bz2 \ ~/sdk/core-image-minimal \end{verbatim} diff --git a/distribution/yocto-intro/pres_yocto-intro.tex b/distribution/yocto-intro/pres_yocto-intro.tex index c3eaae8..ded1291 100644 --- a/distribution/yocto-intro/pres_yocto-intro.tex +++ b/distribution/yocto-intro/pres_yocto-intro.tex @@ -22,8 +22,8 @@ \pause \item Advanced \begin{itemize} - \item Using BSP layers (beaglebone-black) - \item Build a predefined image (beaglebone-black) + \item Using BSP layers + \item Build a predefined image \item Define a distribution \item Create layers \& recipes \item Create images -- cgit v1.2.3