User Tools

Site Tools


vmware.png nfs.png tftp.png subversion.png eclipse.png logo.png tutorial.png

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:power:tqmt10xx:linux:yocto:quickstart_yocto [2019/09/11 19:06]
liedmann
en:power:tqmt10xx:linux:yocto:quickstart_yocto [2019/09/13 11:07]
liedmann fixed link to yocto version
Line 21: Line 21:
 ^ BSP Revision ​ ^  0100  ^    ​ ^ BSP Revision ​ ^  0100  ^    ​
 ^ ++meta-tq-powerarch |\\  [[https://​github.com/​tq-systems/​meta-tq-powerarch]]++ ​ |  [[https://​github.com/​tq-systems/​meta-tq-powerarch|jethro-tqmtxxxx]] ​ |  ​ ^ ++meta-tq-powerarch |\\  [[https://​github.com/​tq-systems/​meta-tq-powerarch]]++ ​ |  [[https://​github.com/​tq-systems/​meta-tq-powerarch|jethro-tqmtxxxx]] ​ |  ​
-^ Yocto Project / Poky Release ​ |  [[https://www.yoctoproject.org/​downloads/core/jethro201| Jethro - 2.0.1]] ​ |+^ Yocto Project / Poky Release ​ |  [[http://downloads.yoctoproject.org/​releases/yocto/yocto-2.0.1/​poky-jethro-14.0.1.tar.bz2| Jethro - 2.0.1]] ​ |
 ^ Target machine((i.e. value for [[https://​www.yoctoproject.org/​docs/​2.4.4/​ref-manual/​ref-manual.html#​var-MACHINE|MACHINE]] variable)) ​ |  ++tqmt1040-64b-stk | TQMT1040 / STKT104x ​ ++\\  ++tqmt1042-64b-stk | TQMT1042 / STKT104x ​ ++   | ^ Target machine((i.e. value for [[https://​www.yoctoproject.org/​docs/​2.4.4/​ref-manual/​ref-manual.html#​var-MACHINE|MACHINE]] variable)) ​ |  ++tqmt1040-64b-stk | TQMT1040 / STKT104x ​ ++\\  ++tqmt1042-64b-stk | TQMT1042 / STKT104x ​ ++   |
 ^ U-Boot ​ |  [[http://​www.denx.de/​wiki/​U-Boot/​Documentation|2015.07]] ​ | ^ U-Boot ​ |  [[http://​www.denx.de/​wiki/​U-Boot/​Documentation|2015.07]] ​ |
 ^ Linux Kernel ​ |  [[http://​lxr.free-electrons.com/​source/?​v=4.4|4.4]] ​ | ^ Linux Kernel ​ |  [[http://​lxr.free-electrons.com/​source/?​v=4.4|4.4]] ​ |
  
-<WRAP round important>​ It's strongly recommended to use **git** for downloading both the Yocto Project / Poky Release as well as meta-tq (instead of downloading archives and extracting them).</​WRAP>​+<WRAP round important>​ It's strongly recommended to use **git** for downloading both the Yocto Project / Poky Release as well as meta-tq-powerarch ​(instead of downloading archives and extracting them).</​WRAP>​
  
 <WRAP round info> <WRAP round info>
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 [[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#​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: curl http://​commondatastorage.googleapis.com/​git-repo-downloads/​repo > repo +  * Download the repo tool: <​code>​curl http://​commondatastorage.googleapis.com/​git-repo-downloads/​repo > repo</​code>​ 
-  * Make it executable: chmod +x repo +  * Make it executable: ​<​code>​chmod +x repo</​code>​ 
-  * Move it to your system path: sudo mv repo /​usr/​local/​bin +  * Move it to your system path: <​code>​sudo mv repo /​usr/​local/​bin</​code>​ 
-  * Verify installation:​ repo --help+  * Verify installation: ​<​code>​repo --help</​code>​
  
  
-**Initialize the repository**+=== Initialize the repository ​===
  
-  * Create an empty directory: mkdir yocto && cd yocto +  * Create an empty directory: ​<​code>​mkdir yocto && cd yocto</​code>​ 
-  * Initialize the repository: repo init -u ssh://​git@github.com/​tq-systems/​yocto-manifest.git -b jethro-tqmtxxxx +  * Initialize the repository: ​<​code>​repo init -u ssh://​git@github.com/​tq-systems/​yocto-manifest.git -b jethro-tqmtxxxx</​code>  ​ 
-  * Fetch all the source codes: repo sync+  * 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>​
 +cat > environment << EOF
 +export LOADENV_USER=tq
 +export TEMPLATECONF=meta-tq-powerarch/​conf
 +source poky/​oe-init-build-env
 +export BB_ENV_EXTRAWHITE="​$BB_ENV_EXTRAWHITE FSL_RCW"​
 +EOF
 +</​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>​

en/power/tqmt10xx/linux/yocto/quickstart_yocto.txt · Last modified: 2019/09/13 11:25 by liedmann


Disclaimer

TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.


Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki