Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:power:tqmt10xx:linux:yocto:quickstart_yocto [2019/09/11 17:06] – liedmann | en:power:tqmt10xx:linux:yocto:quickstart_yocto [2025/01/28 11:17] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | < | + | {{template> | 
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | </ | + | |
| \\ | \\ | ||
| \\ | \\ | ||
| - | <WRAP round info>The instructions on this page have been tested on Ubuntu 16.04 64bit) in a VMWare virtual machine.</ | + | <callout type=" | 
| The meta-tq-powerach layer extends the Yocto Project' | The meta-tq-powerach layer extends the Yocto Project' | ||
| The instructions on this page refer to the BSP and ancillary tools listed in the following table: | The instructions on this page refer to the BSP and ancillary tools listed in the following table: | ||
| - | + | < | |
| - | ^ BSP Revision | + | <col sm=" | 
| + | <panel no-body=" | ||
| + | ^ BSP Revision | ||
| ^ ++meta-tq-powerarch |\\  [[https:// | ^ ++meta-tq-powerarch |\\  [[https:// | ||
| - | ^ Yocto Project / Poky Release | + | ^ Yocto Project / Poky Release | 
| ^ Target machine((i.e. value for [[https:// | ^ Target machine((i.e. value for [[https:// | ||
| - | ^ U-Boot | + | ^ U-Boot | 
| - | ^ Linux Kernel | + | ^ Linux Kernel | 
| + | </ | ||
| + | </ | ||
| + | </ | ||
| - | <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> | + | <alert type=" | 
| - | <WRAP round info> | + | <callout type=" | 
| - | The goal of these wiki pages is to get you started using meta-tq-powerach with the STKT104x, so instead of reinventing the wheel we will adhere to the very compact Yocto Project Quick Start and supply details specific to the STKT104x where necessary. | + | The goal of these wiki pages is to get you started using meta-tq-powerach with the STKT104x, so instead of reinventing the wheel we will adhere to the very compact | 
| - | For further details regarding Yocto Project 2.0.1 - Rocko please refer to its official documentation. | + | For further details regarding Yocto Project 2.0.1 - Jethro | 
| - | </WRAP> | + | </callout> | 
| ===== Prerequisites | ===== Prerequisites | ||
| + | <panel type=" | ||
| //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:// | //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:// | ||
| - | Please refer to section [[http://<label yocto_doc_base_url> | + | Please refer to section [[https://www.yoctoproject.org/docs/2.0.1/ | 
| Although not required by //Yocto Project / Poky//, we also recommend to configure and run a [[en: | Although not required by //Yocto Project / Poky//, we also recommend to configure and run a [[en: | ||
| + | </ | ||
| + | ===== Yocto Build instructions ===== | ||
| + | <panel type=" | ||
| + | <alert type=" | ||
| ===== 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 // | + | The [[https:// | 
| - | Using this as a guideline, the following | + | Using this as a guideline, the following describes how to use the // | 
| + | |||
| + | |||
| + | === Install the repo tool on development host === | ||
| + | |||
| + | * Download the repo tool: < | ||
| + | * Make it executable: < | ||
| + | * Move it to your system path: < | ||
| + | * Verify installation: | ||
| + | |||
| + | |||
| + | === Initialize the repository === | ||
| + | |||
| + | * Create an empty directory: < | ||
| + | * Initialize the repository: < | ||
| + | * Fetch all the source codes: < | ||
| + | |||
| + | === Setup the Yocto project build environment === | ||
| + | ==1. Create an environment file in your build directory: == | ||
| - | **Install the repo tool on development host** | + | < | 
| + | cat > environment << EOF | ||
| + | export LOADENV_USER=tq | ||
| + | export TEMPLATECONF=meta-tq-powerarch/ | ||
| + | source poky/ | ||
| + | export BB_ENV_EXTRAWHITE=" | ||
| + | EOF | ||
| + | </ | ||
| - | * Download the repo tool: curl http:// | + | ==2. Initialize Build environment== | 
| - | * Make it executable: chmod +x repo | + | |
| - | * Move it to your system path: sudo mv repo / | + | |
| - | * Verify installation: | + | |
| + | Before image generation can be started the build environment has to be initialized by the following command: | ||
| - | **Initialize the repository** | + | < | 
| - | * Create an empty directory: mkdir yocto && cd yocto | + | 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. | 
| - | * Initialize | + | |
| - | * Fetch all the source codes: repo sync | + | |
| - | **Setup the Yocto project build environment** | ||
| + | === Building an Image === | ||
| + | Now building an image can be started by running the command: | ||
| + | < | ||
| + | </ | ||