Building a Linux Distro with Yocto for the Variscite MX7

This guide is based heavily on the official guide from Variscite, with some additional info i found useful while learning this. 1 Dependencies 1.1 Ubuntu 16.04 LTS & 18.04 LTS This tutorial was made with a machine running Ubuntu 18.04 LTS 64-bit, which worked almost flawless, though Variscite’s original tutorial is based on Ubuntu 16.04 64-bit. sudo apt-get install gawk wget git diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping libsdl1.2-dev xterm sudo apt-get install autoconf libtool libglib2.0-dev libarchive-dev python-git \ sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 \ help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev \ mercurial automake groff curl lzop asciidoc u-boot-tools dos2unix mtd-utils pv \ libncurses5 libncurses5-dev libncursesw5-dev libelf-dev zlib1g-dev 1.2 Ubuntu 20.04 LTS Compiling Yocto thud does not work on Ubuntu 20.04 LTS 64-bit. The GNU C library, or short glibc, is version 2.30 in Ubuntu 20.04, which is incompatible to glibc 2.29, which the bitbake command expects. This patch from OCtober 2019 in the OpenEmbedded Core Layer fixes this, but it hasn’t been implemented into the Variscite BSP for Yocto thud. The last update for the thud-fslc-4.14.78-mx7-v1.0 tag was in May 2019, so it probably won’t be updated anymore. Downgrading the glibc is not recommended, so you should compile it in a virtual machine or with docker. ...

19 December 2024 · 9 min

How to add a Speaker via i2s and enable it in Yocto

Base for this project is the Variscite VAR-SOM-MX7 together with its development board. Goal of this project is to get a speaker running over i2s on an embedded Linux system, and get a deeper understanding of the linux environment in general. First steps This guide assumes you already successfully compiled Yocto and have basic knowledge of navigating through an linux environment. There are 2 things needed for this whole thing to work. First, Linux needs the driver for the Speaker/Microphone installed and loaded, so it can communicate with it. Second it needs to know where the Hardware is mapped to. ...

19 December 2024 · 5 min