Use Yocto build i.MX8 MM

Host Requirements

Because the need to download the resource kit from the network during Ycoto build, we need to take up a lot of disk. Pro-test build file system with the need to occupy 120G + Qt5 capacity, recommended to use a free area of ​​the hard disk than 200G.

You need to install the necessary software

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat desktop-file-utils libgl1-mesa-dev
sudo apt-get install libsdl1.2-dev u-boot-tools libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++

Installation repo

If no configuration environment gti related, you need to configure the environment git-related.

mkdir ~/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

If using the above link now fails, the link given later download.
Add the environment variable, simply add the environment variables to the current directory.

export PATH=~/bin:$PATH

Yocto Project Gets

mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-rocko -m imx-4.9.123-2.3.0-8mm_ga.xml
repo sync 

Construction of Yocto project

Compilation configuration

DISTRO=<distro name> MACHINE=<machine name> source fsl-setup-release.sh -b <build dir>
  • DISTOM in "meta-fsl-bap-release / imx / meta-sdk / conf / distro" directory;
  • In MACHINE "sources / meta-fsl-bsp-release / imx / meta-bsp / conf / machine" directory;
  • -b parameter with the compiler directory.

After running the script will jump to -b specified directory.

Related Ads in "/conf/bblayers.conf" file.

Select images in the image needs to be built

The figure is a mirror image i.MX Yocto:
Here Insert Picture Description
Because bloggers need to use Qt5, Pick mirror with QT5 construct.

bitbake fsl-image-qt5-validation-imx

This, Yocto start building, Yocto build process need to download a lot of resources on the network, is very slow here. Specific depend on your computer configuration and network environment of.

Released seven original articles · won praise 0 · Views 93

Guess you like

Origin blog.csdn.net/linxuew/article/details/104823001