Embedded module TQMLS10xxA - YOCTO Linux BSP documentation


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 TQMLS10xxA.

It uses the same codebase as the 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.

Because of the dependencies to the other yocto layers we recommend to use ci-meta-tq which already provides all required yocto layers as git submodules instead of meta-tq to build this BSP release.

The instructions on this page refer to the BSP and ancillary tools listed in the following table:

BSP Revision 0102
meta-tq release warrior.TQMLS1046A.BSP.SW.0102
Yocto Project / Poky Release 2.7.2 - Warrior
Target machine1) tqmls1043a-mbls10xxa
tqmls1046a-mbls10xxa
tqmls1088a-mbls10xxa
U-Boot v2018.07
Linux Kernel TQMLS1043A / 1046A
TQMLS1088A
The goal of these wiki pages is to get you started using ci-meta-tq with the STKLS10xxA, so instead of reinventing the wheel we will adhere to the very compact Yocto Project Quick Start and supply details specific to the STKLS10xxA where necessary.

For further details regarding Yocto Project 2.7.2 - Warrior please refer to its official documentation.

Build Host

Yocto Project / Poky requires a Linux build host, so first of all you need a development workstation (or a virtual machine2)) with a Linux distribution installed.

Please refer to section Compatible Linux Distribution of the Yocto Project Quick Start for supported linux distributions and section Build Host Packages for required build host packages for those distributions.

The instructions on this page have been tested on Ubuntu 18.04 (64 bit) in a VMWare virtual machine.

Although not required by Yocto Project / Poky, we also recommend to configure and run a tftp server (for image download / update) and an nfs server (for network mounted root filesystem) on your development host.

BSP build instructions

1. Create a local copy of meta-tq

$ git clone --recurse-submodules https://github.com/tq-systems/ci-meta-tq.git

2. Checkout BSP release on new local branch.

$ cd ci-meta-tq
$ git checkout warrior.TQMLS10xx.BSP.SW.0102 -b warrior

3. Update git submodules:

$ git submodule update --init
$ git submodule sync

4. Setup local branch to track the remote branch.

git branch -u origin/warrior

5. Configure the Build3):

$ source setup-environment tqmls10xxa_build minimal
$ echo 'MACHINE = "tqmls1046a-mbls10xxa"' >> conf/local.conf

6. Build an Image for STKLS10xxA:

$ bitbake core-image-minimal

The resulting image is tmp/deploy/images/tqmls1046a-mbls10xxa4)/core-image-minimal-tqmls1046a-mbls10xxa5).wic
7. Write the Image6)7)

$ sudo dd if=tmp/deploy/images/tqmls1046a-mbls10xxa/core-image-minimal-tqmls1046a-mbls10xxa.wic of=TARGET_DEVICE

8. Boot the STKLS10xxA from SD card (cf. tqmls10xxa DIP switch settings) |


1)
i.e. value for MACHINE variable
2)
for testing purposes Yocto Project provides a ready to use virtual machine called Build Appliance
3)
valid machines are
tqmls1043a-mbls10xxa
tqmls1046a-mbls10xxa
tqmls1088a-mbls10xxa
4)
valid machines are
tqmls1043a-mbls10xxa
tqmls1046a-mbls10xxa
tqmls1088a-mbls10xxa
5)
valid machines are
tqmls1043a-mbls10xxa
tqmls1046a-mbls10xxa
tqmls1088a-mbls10xxa
6)
valid machines are
tqmls1043a-mbls10xxa
tqmls1046a-mbls10xxa
tqmls1088a-mbls10xxa
7)
TARGET_DEVICE has to be an SD card