Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
en:power:tqmt10xx:linux:yocto:quickstart_yocto [2019/09/11 19:09] – liedmann | en:power:tqmt10xx:linux:yocto:quickstart_yocto [2019/09/13 11:07] – fixed link to yocto version liedmann |
---|
^ 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> |
//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. |
===== 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> |
| |
| |
**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> |
* 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 |
</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> |