[FE training-materials-updates] yocto: labs/data: use git for Poky and apply a patch for the lab to work

Antoine Ténart antoine.tenart at free-electrons.com
Mon Sep 5 11:58:50 CEST 2016


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=0e26c7c7727442032760a65605fe2f5c989f67d3

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

commit 0e26c7c7727442032760a65605fe2f5c989f67d3
Author: Antoine Tenart <antoine.tenart at free-electrons.com>
Date:   Mon Sep 5 11:58:24 2016 +0200

    yocto: labs/data: use git for Poky and apply a patch for the lab to work
    
    Signed-off-by: Antoine Tenart <antoine.tenart at free-electrons.com>


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

0e26c7c7727442032760a65605fe2f5c989f67d3
 lab-data/yocto/0001-Fix-lab.patch            | 59 ++++++++++++++++++++++++++++
 labs/yocto-first-build/yocto-first-build.tex | 20 +++++-----
 2 files changed, 69 insertions(+), 10 deletions(-)

diff --git a/lab-data/yocto/0001-Fix-lab.patch b/lab-data/yocto/0001-Fix-lab.patch
new file mode 100644
index 0000000..a8dae54
--- /dev/null
+++ b/lab-data/yocto/0001-Fix-lab.patch
@@ -0,0 +1,59 @@
+From f42fab2459f18e719a07f60949730cae27a0241c Mon Sep 17 00:00:00 2001
+From: Antoine Tenart <antoine.tenart at free-electrons.com>
+Date: Mon, 5 Sep 2016 09:31:07 +0200
+Subject: [PATCH] Fix lab
+
+Signed-off-by: Antoine Tenart <antoine.tenart at free-electrons.com>
+---
+ meta-yocto-bsp/conf/machine/beaglebone.conf | 39 -----------------------------
+ 1 file changed, 39 deletions(-)
+ delete mode 100644 meta-yocto-bsp/conf/machine/beaglebone.conf
+
+diff --git a/meta-yocto-bsp/conf/machine/beaglebone.conf b/meta-yocto-bsp/conf/machine/beaglebone.conf
+deleted file mode 100644
+index ea50accc2d8e..000000000000
+--- a/meta-yocto-bsp/conf/machine/beaglebone.conf
++++ /dev/null
+@@ -1,39 +0,0 @@
+-#@TYPE: Machine
+-#@NAME: Beaglebone machine
+-#@DESCRIPTION: Machine configuration for http://beagleboard.org/bone and http://beagleboard.org/black boards
+-
+-PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
+-XSERVER ?= "xserver-xorg \
+-           xf86-input-evdev \
+-           xf86-input-mouse \
+-           xf86-video-modesetting \
+-           xf86-input-keyboard"
+-
+-MACHINE_EXTRA_RRECOMMENDS = " kernel-modules kernel-devicetree"
+-
+-EXTRA_IMAGEDEPENDS += "u-boot"
+-
+-DEFAULTTUNE ?= "cortexa8hf-neon"
+-include conf/machine/include/tune-cortexa8.inc
+-
+-IMAGE_FSTYPES += "tar.bz2 jffs2"
+-EXTRA_IMAGECMD_jffs2 = "-lnp "
+-
+-SERIAL_CONSOLE = "115200 ttyO0"
+-
+-PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
+-PREFERRED_VERSION_linux-yocto ?= "4.4%"
+-
+-KERNEL_IMAGETYPE = "zImage"
+-KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb"
+-KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
+-
+-SPL_BINARY = "MLO"
+-UBOOT_SUFFIX = "img"
+-UBOOT_MACHINE = "am335x_evm_config"
+-UBOOT_ENTRYPOINT = "0x80008000"
+-UBOOT_LOADADDRESS = "0x80008000"
+-
+-MACHINE_FEATURES = "usbgadget usbhost vfat alsa"
+-
+-IMAGE_BOOT_FILES ?= "u-boot.${UBOOT_SUFFIX} MLO"
+-- 
+2.9.3
+
diff --git a/labs/yocto-first-build/yocto-first-build.tex b/labs/yocto-first-build/yocto-first-build.tex
index 047e8de..5d5978f 100644
--- a/labs/yocto-first-build/yocto-first-build.tex
+++ b/labs/yocto-first-build/yocto-first-build.tex
@@ -23,20 +23,20 @@ sudo apt-get install bc build-essential chrpath cpio diffstat gawk git python te
 
 \section{Download Yocto}
 
-Download the latest stable release of the Yocto Project and extract it:
+Download the \code{krogoth} version of Poky and apply a custom patch:
 \begin{verbatim}
-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
+git clone git://git.yoctoproject.org/poky.git
+cd $HOME/yocto-labs/poky
+git checkout -b krogoth-15.0.1 krogoth-15.0.1
+git am $HOME/yocto-labs/0001-Fix-lab.patch
 \end{verbatim}
 
-Go to the Poky root directory: \code{cd $HOME/yocto-labs/poky-krogoth-15.0.0/}
-
-Then download the OpenEmbedded TI layer:
+Return to your project root directory (\code{cd $HOME/yocto-labs/})
+and download the OpenEmbedded TI layer:
 \begin{verbatim}
 git clone git://git.yoctoproject.org/meta-ti.git
-cd $HOME/yocto-labs/poky-krogoth-15.0.0/meta-ti/
-git checkout krogoth
+cd $HOME/yocto-labs/meta-ti
+git checkout -b ti2016.03 ti2016.03
 \end{verbatim}
 
 \section{Set up the build environment}
@@ -45,7 +45,7 @@ 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-krogoth-15.0.0/
+cd $HOME/yocto-labs/poky/
 source oe-init-build-env
 \end{verbatim}
 




More information about the training-materials-updates mailing list