Difference between revisions of "IMX8/iMX8MEVK/Yocto/Building Yocto"

From RidgeRun Developer Connection
< IMX8‎ | iMX8MEVK‎ | Yocto
Jump to: navigation, search
Line 3: Line 3:
 
In order to create your own image, a supported Software Development Kit will be required for your desired OS.  
 
In order to create your own image, a supported Software Development Kit will be required for your desired OS.  
  
¿Yocto=
+
=Yocto=
  
 
==Morty==
 
==Morty==

Revision as of 12:13, 1 November 2018


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

Morty

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
  • Download the iMx8MQ Evaluation Kit source code
mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-morty -m imx-4.9.51-8mq_ga.xml
repo sync
  • Set up the build configuration

For now, only Wayland distro is supported for iMX8

DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source fsl-setup-release.sh -b 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.

Rocko

Yocto project setup and build

Download and sync repos

#Installed the essential required packages in the host machine
#See the link for more info: https://www.yoctoproject.org/docs/current/ref-manual/ref-manual.html#ref-manual-system-requirements

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

#Set up repo tool

mkdir /home/jafet/work/devdirs/yocto/bin (this step may not be needed if the bin folder already exists)
curl https://storage.googleapis.com/git-repo-downloads/repo > /home/jafet/work/devdirs/yocto/bin/repo
chmod a+x /home/jafet/work/devdirs/yocto/bin/repo
export PATH=/home/jafet/work/devdirs/yocto/bin:$PATH

#Set up i.MX Yocto Project BSP release

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.88-2.1.0-8mm_alpha.xml
repo sync

Configure and build

#Set up build directory (Only Wayland distros are supported for i.MX 8 or i.MX 8M for now)


#Option 1
#Build Wayland image on i.MX8 MQuad EVK

DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source fsl-setup-release.sh -b build-wayland
bitbake fsl-image-qt5-validation-imx
#To build without Qt 5, use bitbake fsl-image-validation-imx

#Option2

DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source fsl-setup-release.sh -b build-wayland
bitbake fsl-image-multimedia-full

Flash image to SD card

sudo dd if=fsl-image-qt5-validation-imx-imx8mqevk.sdcard of=/dev/sd<partition-node> bs=1M conv=fsync 

#Example

sudo dd if=fsl-image-qt5-validation-imx-imx8mqevk.sdcard of=/dev/sdd bs=1M conv=fsync


[[IMX8/<Replace with "previous" page>|Previous: <Replace with "previous" page>]] Index [[IMX8/<Replace with "next" page>|Next: <Replace with "next" page>]]