[EB-IMX8MM] 2. Recipe for building the Yocto Linux for EBOX-IMX8MM-2G

December 01, 2020

This section will talk about the Recipe for building the Yocto Linux for EBOX-IMX8MM-2G.
Contact for files and resources to build the Yocto Linux recipe for the EBOX-IMX8MM-2G.

You can also check the compiling method from NXP: IMXLXYOCTOUG.pdf


Suggested O/S: Ubuntu 18.04 or later.

To avoid errors while building the SDL, please refer to the local.conf.

#PACKAGECONFIG_append_pn-qemu-native = “sdl”


Storage: Please make sure the capacity of your storage device is larger than 300GB.

RAM: Please make sure your physical memory + swap capacity is larger than 16GB.


Steps for building Yocto Linux recipe for EBOX-IMX8MM-2G:


  1. Install Host packages:
    Essential Yocto Project host packages:
    $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat libsdl1.2-dev

    i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup are:
    $ sudo apt-get install 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


  2. Installing the repo utility:
    Create the bin folder in the home directory:
    $ mkdir ~/bin (this step may not be needed if the bin folder already exists)
        $ curl > ~/bin/repo
        $ chmod a+x ~/bin/repo


  3. Add the following line to the .bashrc file to make sure the ~/bin folder is in the PATH.
    export PATH=~/bin:$PATH


  4. Ensure the git is properly set up be the commands below:
    $ git config --global "Your Name"
        $ git config --global "Your Email"
        $ git config –list


  5. Download the i.MX Yocto Project Community BSP recipe layers:
    $ mkdir imx-yocto-bsp
    $ cd imx-yocto-bsp
        $ repo init -u -b \ imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml
        $ repo sync


  6. Unzip the Recipe for building Yocto Linux to the file ‘imx-yocto-bsp’


  7. Create the setup environment by the command below (filename is variable)
    $ DISTRO=fsl-imx-xwayland MACHINE=dm395b source -b \ build-dmp
    please input “y” when the EULA confirmation pops out.


  8. Edit conf/local.conf file and add the content below to the bottom:
    CORE_IMAGE_EXTRA_INSTALL += “chromium-ozone-wayland”
        IMAGE_INSTALL_append += “\
        openssh-sftp-server \
            ppp \
            rng-tools \
            glibc-gconv-utf-16 \
            expand-rootfs \


  9. Edit conf/bblayers.conf file and add the content below to the bottom:
    BBLAYERS += “${BSPDIR}/sources/meta-custom-dmp


  10. Run the command below.
    $ bitbake fsl-image-qt5-validation-imx



After finishing the steps above, the system will begin downloading and installing the source code, patching the file, and compiling.