Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
en:arm:tqma8xx:linux:yocto:quickstart_yocto [2019/01/15 11:24] – added content liedmann | en:arm:tqma8xx:linux:yocto:quickstart_yocto [2019/01/15 15:35] – liedmann |
---|
<WRAP round important>WORK IN PROGRESS</WRAP> | |
<embed en:templates:tabs_yocto> | <embed en:templates:tabs_yocto> |
<label product_type>Embedded module</label> | <label product_type>Embedded module</label> |
\\ | \\ |
\\ | \\ |
| <WRAP round important>WORK IN PROGRESS</WRAP> |
===== Preface ===== | ===== Preface ===== |
<WRAP info round> | <WRAP info round> |
//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.4.4/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.4.4/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 [[https://www.yoctoproject.org/docs/2.4.4/yocto-project-qs/yocto-project-qs|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.4.4/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 //ci-meta-tq// layer for the STKa8Xx. | Using this as a guideline, the following table describes how to use the //ci-meta-tq// layer for the STKa8Xx. |
| |
1. Create a Local Copy of the //ci-meta-tq// Repository: | 1. Create a Local Copy of the //ci-meta-tq// Repository: |
<code> | <code> |
$ cd $HOME/poky | |
$ git clone --branch=rocko-tqma8x --recurse-submodules https://github.com/tq-systems/ci-meta-tq.git | $ git clone --branch=rocko-tqma8x --recurse-submodules https://github.com/tq-systems/ci-meta-tq.git |
</code> | </code> |
2. Configure the Build: | 2. Configure the Build: |
<code> | <code> |
| $ cd ci-meta-tq |
$ source fsl-setup-release.sh -b tqma8xx_build -e wayland | $ source fsl-setup-release.sh -b tqma8xx_build -e wayland |
$ echo 'MACHINE = "tqma8qx-mba8qx"' >> conf/local.conf | $ echo 'MACHINE = "tqma8qx-mba8qx"' >> conf/local.conf |
4. Write the Image((''TARGET_DEVICE'' has to be an SD card)) | 4. Write the Image((''TARGET_DEVICE'' has to be an SD card)) |
<code> | <code> |
$ sudo dd if=tmp/deploy/images/<label mod_name_code>MOD_NAME_CODE</label>-<label mb_name_code>MB_NAME_CODE</label>/tq-image-qt5-tqma8qx-mba8qx.wic of=TARGET_DEVICE | $ sudo dd if=tmp/deploy/images/tqma8qx-mba8x/tq-image-qt5-tqma8qx-mba8qx.wic of=TARGET_DEVICE |
</code> | </code> |
5. Boot the STKa8Xx from SD card (cf. [[en:arm:tqma8xx:mba8xx:dip_switches|MBa8Xx DIP switche settings]]) | 5. Boot the STKa8Xx from SD card (cf. [[en:arm:tqma8xx:mba8xx:dip_switches|MBa8Xx DIP switch settings]]) |
</WRAP> | | </WRAP> | |