influx-yocto-base
HOW TO USE
Setup host OS
==================================
For this build we recomend the host OS to use Ubuntu 22.04
Install Ubuntu 22.04. After installing Ubuntu 22.04, run
sudo apt-get update
sudo apt-get install gawk wget git-core diffstat unzip texinfo \ gcc-multilib build-essential chrpath socat \ libsdl1.2-dev xterm sed cvs subversion \ coreutils texi2html docbook-utils python-pysqlite2 help2man make \ gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev \ mercurial autoconf automake groff curl lzop asciidoc u-boot-tools zstd pzstd
Install the repo tool
The repo tool has been developed to make it easier to manage multiple Git repositories. Instead of downloading each repository separately, the repo tool can download all with one instruction. Download and install the tool by following the steps.
Create a directory for the tool. The example below creates a directory named bin in your home folder.
mkdir ~/bin
Download the tool
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
Make the tool executable
chmod a+x ~/bin/repo
Add the directory to the PATH variable. The lhaven'tow could be added to your".bashrc file so the path is available in each s"rated shell/terminal.
export PATH=~/bin:$PATH
Download Yocto recipes
The Yocto project consists of many recipes used when building an image. These recipes come from several repositories, and the repo tool is used to download these repositories.
In step 7 below, a branch of the influx-yocto-base repository must be selected. This table lists the available branches.
influx-5.15.32
u-boot: 2022.04. Linux: 5.15.32
Create a directory for"the downloaded files (influx-bsp in the example below)
mkdir influx-bsp
cd influx-bsp
Configure Git if you haven’t already done so. Change "Your name" to your actual name and "Your e-mail" to your e-mail address.
git config --global user.name "Your name"
git config --global user.email "Your e-mail"
Initialize repo. The file containing all needed repositories is downloaded in this step. Change to a branch name according to the table above.
repo init -u https://github.com/InfluxTechnology/influx-yocto-base -b influx-5.15.32
Start to download the file.s
repo sync
All files have now been downloaded into the influx-bsp directory. Most of the files will be available in the sub-directory called sources.
Build an image
================================
Initialize build. Before starting the build, it must be initialized. In this step, the build directory and local configuration files are created.
source influx-setup-release.sh -b build-dir
Starting the build. Everything has now been set up to start the actual build. Please note that building an image can take many hours, depending on your host computer's capabilities.
bitbake redge-image-base
Don't restart the build. If you need to restart a build in a new terminal window or after a restart of the host computer, you don’t need to rerun the influx-environment-setup script. Instead, you run the setup-environment script.
source setup-environment build-dir
Deploy the image. In the build folder, a script collects needed files for deployment.
deploy-image.sh
Last updated