Next revision | Previous revision Next revisionBoth sides next revision |
en:templates:meta-tq_qs_tqma57xx [2018/08/07 18:54] – created liedmann | en:templates:meta-tq_qs_tqma57xx [2018/08/08 18:45] – liedmann |
---|
===== Preface ===== | ===== Preface ===== |
<WRAP info round> | <WRAP info round> |
The instructions on this page have been tested on <label host_os_name>HOST_OS_NAME</label> <label host_os_version>HOST_OS_VERSION</label> (<label host_os_bits>HOST_OS_BITS</label>) in a VMWare virtual machine. | The instructions on this page have been tested on Ubuntu 16.04 64-bit in a VMWare virtual machine. |
</WRAP> | </WRAP> |
| |
The //meta-tq// layer extends the //Yocto Project's// reference system //Poky// to provide support for a selection of TQ Embedded CPU Modules, including the <label mod_name>MOD_NAME</label>. | The //meta-tq// layer extends the //Yocto Project's// reference system //Poky// to provide support for a selection of TQ Embedded CPU Modules, including the <label mod_name>MOD_NAME</label>. |
| |
It uses the same codebase as the [[..:arm:<label mod_name>MOD_NAME</label>:linux:overview|PTXdist based TQ Linux BSPs]] and therefore provides the same versions of U-Boot and Linux kernel, but doesn't define a specific root filesystem configuration. | |
| |
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((refers to the revision of the [[..:arm:<label mod_name>MOD_NAME</label>:linux:overview|PTXdist based TQ Linux BSP]], which provides the codebase of U-Boot and Linux kernel)) ^ <label bsp_rev>BSP_REV</label> ^ | ^ BSP Revision ^ <label bsp_rev>BSP_REV</label> ^ |
^ ++meta-tq release|\\ [[https://github.com/tq-systems/meta-tq/releases|all releases]]++ | [[https://github.com/tq-systems/meta-tq/releases/tag/<label mod_name>MOD_NAME</label>.BSP.SW.<label mtq_reltag>META-TQ_RELTAG</label>|<label mod_name>MOD_NAME</label>.BSP.SW.<label mtq_reltag>META-TQ_RELTAG</label>]] | | ^ ++meta-tq release|\\ [[https://github.com/tq-systems/meta-tq/releases|all releases]]++ | [[https://github.com/tq-systems/meta-tq/releases/tag/<label mod_name>MOD_NAME</label>.BSP.SW.<label mtq_reltag>META-TQ_RELTAG</label>|<label mod_name>MOD_NAME</label>.BSP.SW.<label mtq_reltag>META-TQ_RELTAG</label>]] | |
^ Yocto Project / Poky Release | ++<label yocto_rel_ver_major>YOCTO_REL_VER_MAJOR</label>.<label yocto_rel_ver_minor>YOCTO_REL_VER_MINOR</label> - <label yocto_rel_name>YOCTO_REL_NAME</label>|\\ ''git clone -b <label yocto_rel_branch>YOCTO_REL_BRANCH</label> git:%%//%%git.yoctoproject.org%%/%%poky.git''\\ [[http://<label yocto_rel_base_url>YOCTO_REL_BASE_URL</label>/yocto-<label yocto_rel_ver_major>YOCTO_REL_VER_MAJOR</label>/<label yocto_rel_tarball>YOCTO_REL_TARBALL</label>|<label yocto_rel_tarball>YOCTO_REL_TARBALL</label>]]++ | | ^ Yocto Project / Poky Release | ++<label yocto_rel_ver_major>YOCTO_REL_VER_MAJOR</label>.<label yocto_rel_ver_minor>YOCTO_REL_VER_MINOR</label> - <label yocto_rel_name>YOCTO_REL_NAME</label>|\\ ''git clone -b <label yocto_rel_branch>YOCTO_REL_BRANCH</label> git:%%//%%git.yoctoproject.org%%/%%poky.git''\\ [[http://<label yocto_rel_base_url>YOCTO_REL_BASE_URL</label>/yocto-<label yocto_rel_ver_major>YOCTO_REL_VER_MAJOR</label>/<label yocto_rel_tarball>YOCTO_REL_TARBALL</label>|<label yocto_rel_tarball>YOCTO_REL_TARBALL</label>]]++ | |
^ Target machine((i.e. value for [[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>/ref-manual/ref-manual.html#var-MACHINE|MACHINE]] variable)) | <label mod_name_code>MOD_NAME_CODE</label>-<label mb_name_code>MB_NAME_CODE</label> | | ^ Target machine((i.e. value for [[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>/ref-manual/ref-manual.html#var-MACHINE|MACHINE]] variable)) | <label mod_name_machine>MOD_NAME_MACHINE</label> \\ <label mod_name_machine_2>MOD_NAME_MACHINE_2</label> | |
^ U-Boot | <label uboot_version>UBOOT_VERSION</label> | | ^ U-Boot | <label uboot_version>UBOOT_VERSION</label> | |
^ Linux Kernel | <label linux_kernel>LINUX_KERNEL</label> | | ^ Linux Kernel | <label linux_kernel>LINUX_KERNEL</label> | |
</WRAP><WRAP block> | </WRAP><WRAP block> |
==== Building an Image for Hardware ==== | ==== Building an Image for Hardware ==== |
1. Create a Local Copy of the //meta-tq// Repository: | 1. Create a Local Copy of the //meta-tq// and //meta-ti// Repository: |
<code> | <code> |
$ cd $HOME/poky | $ cd $HOME/poky |
$ git clone -b <label yocto_rel_branch>YOCTO_REL_BRANCH</label> https://github.com/tq-systems/meta-tq.git | $ git clone -b <label yocto_rel_branch_module>YOCTO_REL_BRANCH_MODULE</label> https://github.com/tq-systems/meta-tq.git |
| $ git clone -b <label yocto_rel_branch>YOCTO_REL_BRANCH</label> http://git.yoctoproject.org/cgit/cgit.cgi/meta-ti |
</code> | </code> |
2. Configure the Build: | 2. Configure the Build: |
$ cd $HOME/poky/build | $ cd $HOME/poky/build |
$ bitbake-layers add-layer "../meta-tq" | $ bitbake-layers add-layer "../meta-tq" |
| $ bitbake-layers add-layer "../meta-ti" |
$ echo 'MACHINE = "<label mod_name_code>MOD_NAME_CODE</label>-<label mb_name_code>MB_NAME_CODE</label>"' >> conf/local.conf | $ echo 'MACHINE = "<label mod_name_code>MOD_NAME_CODE</label>-<label mb_name_code>MB_NAME_CODE</label>"' >> conf/local.conf |
</code> | </code> |