[FE training-materials-updates] labs: yocto-lab1: update to use krogoth branch

Antoine Ténart antoine.tenart at free-electrons.com
Wed Jun 15 11:22:44 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=c2a47fbfc00670d11c9d190b830f3e3c24909d75

>---------------------------------------------------------------

commit c2a47fbfc00670d11c9d190b830f3e3c24909d75
Author: Mylène Josserand <mylene.josserand at free-electrons.com>
Date:   Wed Jun 15 10:58:09 2016 +0200

    labs: yocto-lab1: update to use krogoth branch
    
    Update the first lab of the yocto training to use the krogoth branch.
    
    All the modifications/differences:
       - Updated to use the krogoth tarball
       - Removed the BB_NUMBER_THREADS and PARALLEL_MAKE variables as there
       are automatically set now
       - The default rootfs archive is now .tar.bz2 by default
    
    Problems encountered:
       - Impossible to run the format_sdcard.sh script. I am on a Debian
       testing and I got error "unrecognized option "--in-order" and "--unit M"
       on "sfdisk" command.
    
    Signed-off-by: Mylène Josserand <mylene.josserand at free-electrons.com>


>---------------------------------------------------------------

c2a47fbfc00670d11c9d190b830f3e3c24909d75
 labs/yocto-first-build/yocto-first-build.tex | 26 ++++++++------------------
 1 file changed, 8 insertions(+), 18 deletions(-)

diff --git a/labs/yocto-first-build/yocto-first-build.tex b/labs/yocto-first-build/yocto-first-build.tex
index 206e235..0005a9d 100644
--- a/labs/yocto-first-build/yocto-first-build.tex
+++ b/labs/yocto-first-build/yocto-first-build.tex
@@ -25,23 +25,18 @@ sudo apt-get install bc build-essential chrpath diffstat gawk git texinfo wget
 
 Download the latest stable release of the Yocto Project and extract it:
 \begin{verbatim}
-wget http://downloads.yoctoproject.org/releases/yocto/yocto-1.5.1/\
-  poky-dora-10.0.1.tar.bz2
-tar xf poky-dora-10.0.1.tar.bz2
+wget http://downloads.yoctoproject.org/releases/yocto/yocto-2.1/\
+  poky-krogoth-15.0.0.tar.bz2
+tar xf poky-krogoth-15.0.0.tar.bz2
 \end{verbatim}
 
-Go to the Poky root directory: \code{cd $HOME/yocto-labs/poky-dora-10.0.1/}
+Go to the Poky root directory: \code{cd $HOME/yocto-labs/poky-krogoth-15.0.0/}
 
 Then download the OpenEmbedded TI layer:
 \begin{verbatim}
 git clone git://git.yoctoproject.org/meta-ti.git
-cd $HOME/yocto-labs/poky-dora-10.0.1/meta-ti/
-git checkout dora
-\end{verbatim}
-
-To improve BeagleBone support, you need to apply a patch:
-\begin{verbatim}
-git am ~/yocto-labs/0001-beaglebone-use-the-am335x_boneblack-u-boot-configura.patch
+cd $HOME/yocto-labs/poky-krogoth-15.0.0/meta-ti/
+git checkout krogoth
 \end{verbatim}
 
 \section{Set up the build environment}
@@ -50,15 +45,10 @@ Check you're using Bash. This is the default shell when using Ubuntu.
 
 Export all needed variables and set up the build directory:
 \begin{verbatim}
-cd $HOME/yocto-labs/poky-dora-10.0.1/
+cd $HOME/yocto-labs/poky-krogoth-15.0.0/
 source oe-init-build-env
 \end{verbatim}
 
-In order to choose the target and to configure the generic build settings,
-edit the local configuration file (\code{$BUILDDIR/conf/local.conf}).
-Update the parallelization variables (\code{BB_NUMBER_THREADS} and
-\code{PARALLEL_MAKE}) according to your computer capabilities.
-
 You must specify which machine is your target. By default it
 is \code{quemu}. We need to build an image for a \code{beaglebone}.
 Update the \code{MACHINE} configuration variable accordingly. Be
@@ -112,7 +102,7 @@ Now uncompress the generated rootfs in the second partition with the
 following \code{tar} command:
 \begin{verbatim}
 sudo tar xpf $BUILDDIR/tmp/deploy/images/beaglebone/\
-  core-image-minimal-beaglebone.tar.gz -C /media/$USER/rootfs
+  core-image-minimal-beaglebone.tar.bz2 -C /media/$USER/rootfs
 sync
 \end{verbatim}
 




More information about the training-materials-updates mailing list