Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
en:power:tqmt10xx:linux:yocto:quickstart_yocto [2019/09/12 17:03] liedmannen:power:tqmt10xx:linux:yocto:quickstart_yocto [2019/09/13 11:04] liedmann
Line 38: Line 38:
 //Yocto Project / Poky// requires a Linux build host, so first of all you need a development workstation (or a virtual machine((for testing purposes //Yocto Project// provides a ready to use virtual machine called [[https://www.yoctoproject.org/tools-resources/projects/build-appliance|Build Appliance]]))) with a (preferably) recent Linux distribution installed. //Yocto Project / Poky// requires a Linux build host, so first of all you need a development workstation (or a virtual machine((for testing purposes //Yocto Project// provides a ready to use virtual machine called [[https://www.yoctoproject.org/tools-resources/projects/build-appliance|Build Appliance]]))) with a (preferably) recent Linux distribution installed.
  
-Please refer to section [[https://www.yoctoproject.org/docs/2.0.1/yocto-project-qs/yocto-project-qs.html#the-linux-distro|The Linux Distribution]] of the //Yocto Project Quick Start// for supported linux distributions and section [[http://<label yocto_doc_base_url>YOCTO_DOC_BASE_URL</label>/<label yocto_rel_ver_major>YOCTO_REL_VER_MAJOR</label>.<label yocto_rel_ver_minor>YOCTO_REL_VER_MINOR</label>/yocto-project-qs/yocto-project-qs.html#packages|The Build Host Packages]] for required build host packages for those distributions.+Please refer to section [[https://www.yoctoproject.org/docs/2.0.1/yocto-project-qs/yocto-project-qs.html#the-linux-distro|The Linux Distribution]] of the //Yocto Project Quick Start// for supported linux distributions and section [[https://www.yoctoproject.org/docs/2.0.1/yocto-project-qs/yocto-project-qs.html#packages|The Build Host Packages]] for required build host packages for those distributions.
  
 Although not required by //Yocto Project / Poky//, we also recommend to configure and run a [[en:tftp|tftp server]] (for image download / update) and an [[en:nfs|nfs server]] (for network mounted root filesystem) on your development host. Although not required by //Yocto Project / Poky//, we also recommend to configure and run a [[en:tftp|tftp server]] (for image download / update) and an [[en:nfs|nfs server]] (for network mounted root filesystem) on your development host.
Line 47: Line 47:
 ===== Yocto Project / Poky set-up ===== ===== Yocto Project / Poky set-up =====
  
-The [[|Yocto Project Quick Start]] document explains how to set up //Yocto Project / Poky// and how to build images using the //meta-intel// layer. +The [[https://www.yoctoproject.org/docs/2.0.1/yocto-project-qs/yocto-project-qs.html|Yocto Project Quick Start]] document explains how to set up //Yocto Project / Poky// and how to build images using the //meta-intel// layer. 
-Using this as a guideline, the following table describes how to use the //meta-tq-powerach// layer for the STK104x.+Using this as a guideline, the following describes how to use the //meta-tq-powerach// layer for the STK104x.
  
  
-**Install the repo tool on development host**+=== Install the repo tool on development host ===
  
   * Download the repo tool: <code>curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repo</code>   * Download the repo tool: <code>curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repo</code>
Line 59: Line 59:
  
  
-**Initialize the repository**+=== Initialize the repository ===
  
   * Create an empty directory: <code>mkdir yocto && cd yocto</code>   * Create an empty directory: <code>mkdir yocto && cd yocto</code>
Line 65: Line 65:
   * Fetch all the source codes: <code>repo sync</code>   * Fetch all the source codes: <code>repo sync</code>
  
-**Setup the Yocto project build environment**+=== Setup the Yocto project build environment === 
 + 
 +==1. Create an environment file in your build directory: == 
 <code> <code>
 cat > environment << EOF cat > environment << EOF
Line 75: Line 78:
 </code> </code>
  
 +==2. Initialize Build environment== 
 +
 +Before image generation can be started the build environment has to be initialized by the following command:  
 +
 +<code> source environment </code>
 +
 +This copies default configuration information into the build/conf directory. Additionally some environment variables will be set up for the build system. This configuration directory is not under revision control; you may wish to edit these configuration files for your specific setup.
 +
 +
 +=== Building an Image  ===
 +
 +Now building an image can be started by running the command:
 +
 +<code> bitbake core-image-minimal </code>
  • Last modified: 2023/01/23 10:43