Introduction
This article describes how to build native applications for Maivin using the Yocto SDK. Applications can often be cross-compiled using a standard Linux toolchain such as the Ubuntu aarch64-linux-gnu toolchains. In some cases specific libraries, or versions of libraries, are required and in these scenarios using the Yocto SDK for Maivin provides a toolchain which targets a specific Torizon for Maivin release and which provides all the available libraries.
Requirements
- Ubuntu 20.04 or newer on AMD64
- Other versions of Linux should work as long as they mean the minimum glibc requirements from Ubuntu 20.04.
- Ubuntu on Windows Subsystem for Linux is fully supported.
Installation
Each release of Torizon for Maivin includes the Yocto SDK for download. It isn't strictly required to update the SDK every release, but if you require a newer feature or encounter linking/runtime library errors then ensure you are up-to-date.
Refer to Torizon for Maivin Release Notes to find your version and download the SDK installer. The installer will be named torizon-maivin-sdk-VERSION.sh where VERSION will be the Torizon for Maivin release version.
Once you've downloaded the installer it can be run with the following command.
sh torizon-maivin-sdk-6.6.0.1.sh
By default, the SDK will install under /opt/torizon-maivin/6.6.0.1 but it is safe to adjust this to any alternative path. If using WSL ensure it is installed to a native Linux filesystem (ext, xfs, brtfs, etc...) and not to a Windows NTFS or FAT filesystem.
Usage
To use the SDK you simply need to source the provided environment into your terminal session. Once this is done any build system which respects common compiler select flags (CC, CFLAGS, etc...) will cross-compile for the Maivin.
source /opt/torizon-maivin/6.6.0.1/environment-setup-cortexa53-tdx-linux
Once you've compiled your application it can be deployed to the Maivin. Deployment can be done into the /home/torizon directory which is persistent.
Comments
0 comments
Please sign in to leave a comment.