WORK IN PROGRESS
Embedded module TQMa57xx - Yocto Linux BSP documentation
Preface
The instructions on this page have been tested on Ubuntu 18.04 (64 bit) in a VMWare virtual machine.
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 TQMa57xx.
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.
Please use ci-meta-tq instead of meta-tq to build this release of the BSP.
The instructions on this page refer to the BSP and ancillary tools listed in the following table:
BSP Revision | 0009 |
---|---|
meta-tq release | warrior.TQMa57xx.BSP.SW.0009 |
Yocto Project / Poky Release | 2.7.3 - Warrior |
Target machine1) | tqma57xx-mba57xx \ tqma57xx-ecc-mba57xx |
U-Boot | 2019.04 |
Linux Kernel | v4.19.94-rt39-ti |
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).
The goal of these wiki pages is to get you started using meta-tq with the STKa57xx, so instead of reinventing the wheel we will adhere to the very compact Yocto Project Quick Start and supply details specific to the STKa57xx where necessary.
For further details regarding Yocto Project 2.7.3 - Warrior please refer to its official documentation.
Prerequisites
Yocto Project / Poky requires a Linux build host, so first of all you need a development workstation (or a virtual machine2)) with a (preferably) recent Linux distribution installed.
Please refer to section The Linux Distribution of the Yocto Project Quick Start for supported linux distributions and section 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 tftp server (for image download / update) and an nfs server (for network mounted root filesystem) on your development host.
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 meta-intel layer. Using this as a guideline, the following table describes how to use the meta-tq layer for the STKa57xx.
Section | Remarks / Instructions for ci-meta-tq & STKa57xx |
---|---|
Welcome! | Introduction and basic information about the Yocto Project |
Setting Up to Use the Yocto Project | Description of basic requirements for using the Yocto Project (also cf. Prerequisites above) |
Building Your Images | This section provides step-by-step instructions for STKa57xx. Building an Image for Hardware1. Create a local copy of ci-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.TQMa57xx.BSP.SW.0009 -b tqma57xx-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 tqma57xx_build ti $ echo 'MACHINE = "tqma57xx-mba57xx"' >> conf/local.conf 6. Build an Image for STKa57xx: $ bitbake tq-image-generic
The resulting image is $ sudo dd if=tmp/deploy/images/tqma57xx-mba57xx/tq-image-generic-tqma57xx-mba57xx.wic of=TARGET_DEVICE 8. Boot the STKa57xx from SD card (cf. MBa57xx DIP switch settings) |
TQ-Systems GmbH provides the Board Support Packages (BSP) free of charge. The software included in the shipment has been configured individually for the starter kits. The software is only intended to evaluate the module. The use of the Board Support Packages (BSP) is only allowed within the scope of functionality described by TQ-Systems GmbH. TQ-Systems GmbH does not accept any liability for all further changes of the Board Support Package and for any damage resulting from its use.