i.MX8 - Nitrogen8M - Yocto - Building Yocto

From RidgeRun Developer Connection
< IMX8‎ | Nitrogen8M‎ | Yocto
Revision as of 14:05, 3 November 2018 by Spalli (talk | contribs)
Jump to: navigation, search


NXP Partner Program Registered Vertical.jpg NXP Partner Program Horizontal.jpg
  Index  





In order to create your own image, a supported Software Development Kit will be required for your desired OS.

Yocto

To create a customized image with Yocto, first install its required packages with the following commands:

  • repo tool
mkdir ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
export PATH=~/bin:$PATH
  • Yocto dependencies
sudo apt-get install gawk wget git-core 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 autoconf libtool libglib2.0-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

NOTE: If you have some dependency errors, this could be the reason: Broken APT due to ARM64 packages

  • Download the Nitrogen8m source code
mkdir fsl-community-bsp
cd fsl-community-bsp
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master
repo sync
  • Set up the build configuration

For now, only Wayland distro is supported for iMX8

DISTRO=fslc-wayland MACHINE=nitrogen8m source setup-environment build
  • Start the build process
bitbake fsl-image-multimedia-full

Other images are supported, i.e core-image-minimal

For flashing the image, refer to iMX8 Installing an Image section.


Previous: Nitrogen8M/Software Support Index Next: Nitrogen8M/Building Android