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:06] – liedmann | en:power:tqmt10xx:linux:yocto:quickstart_yocto [2019/09/12 17:03] – liedmann |
---|
^ 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 [[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. |
| |
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. |
**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** |
| <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> |
| |