Embedded module TQMa6ulx - YOCTO Linux BSP documentation
Preface
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 TQMa6ULx.
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.
The instructions on this page refer to the BSP and ancillary tools listed in the following table:
BSP Revision | 0117 |
---|---|
meta-tq release | kirkstone.TQMa6UL.BSP.SW.0117 |
Yocto Project / Poky Release | 4.0.5 |
Target machine1) | tqma6ulx-mba6ulx \ tqma6ulx-512mb-mba6ulx \ tqma6ullx-mba6ulx \ tqma6ullx-512mb-mba6ulx |
U-Boot | 2016.03 NXP imx-rel_imx_4.1.15_2.0.0_ga |
Linux Kernel | 5.15.55 Linux Mainline |
For further details regarding Yocto Project 4.0.5 - Kirkstone please refer to its official documentation.
Prerequisites
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 Supported Linux Distribution of the Yocto Project Quick Start for supported linux distributions and section Required Packages for the Build Host 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 BSP Build Instructions
Yocto Hardknott BSP
1. Open a new terminal and create a directory for the BSP build e.g. in the home directory and navigate to that directory.
mkdir -p ~/workspace/kirkstone.TQMa6UL.BSP.SW.0117 cd ~/workspace/kirkstone.TQMa6UL.BSP.SW.0117
2. Create a local copy of meta-tq
git clone --recurse-submodules https://github.com/tq-systems/ci-meta-tq.git
3. Checkout BSP release on new local branch.
cd ci-meta-tq git checkout kirkstone.TQMa6UL.BSP.SW.0117 -b kirkstone-tqma6ulx
4. Update git submodules:
git submodule sync git submodule update --init
5. Setup local branch to track the remote branch.
git branch -u origin/kirkstone
6. Configure and the Build for a specific Linux 3):
Configuration for Linux mainline kernel
Configuration for Linux RT kernel
source setup-environment tqma6ulx_build
7. Build an Image for STKa6ULx:
Linux mainline kernel
Image with debug features/root login
bitbake tq-image-weston-debug
Image without debug features/root login
bitbake tq-image-weston
Linux RT kernel
Image with debug features/root login
bitbake tq-image-generic-debug
Image without debug features/root login
bitbake tq-image-generic
sudo dd if=tmp/deploy/images/tqma6ulx-mba6ulx/tq-image-weston-tqma6ulx-mba6ulx.wic of=/dev/<TARGET_DEVICE>
10. Boot the STKa6ULx from SD card (cf. MBa6ULx DIP switch settings) |
tqma6ulx-mba6ulx \
tqma6ulx-512mb-mba6ulx \
tqma6ullx-mba6ulx \
tqma6ullx-512mb-mba6ulx
tqma6ulx-mba6ulx \
tqma6ulx-512mb-mba6ulx \
tqma6ullx-mba6ulx \
tqma6ullx-512mb-mba6ulx
tqma6ulx-mba6ulx \
tqma6ulx-512mb-mba6ulx \
tqma6ullx-mba6ulx \
tqma6ullx-512mb-mba6ulx
tqma6ulx-mba6ulx \
tqma6ulx-512mb-mba6ulx \
tqma6ullx-mba6ulx \
tqma6ullx-512mb-mba6ulx
TARGET_DEVICE
has to be an SD card