Tuesday 24 April 2018

NXP's Community Yocto BSP for SCM-i.MX


=======================================

To get the BSP you need to have `repo` installed.

Install the `repo` utility: (only need to do this once):
--------------------------------------------------
$: mkdir ~/bin
$: curl http://commondatastorage.googleapis.com/git-repo-downloads/repo  > ~/bin/repo
$: chmod a+x ~/bin/repo
$: PATH=${PATH}:~/bin

Download the BSP Yocto Project Environment into your directory:
-------------------------------------------
$: mkdir fsl-arm-yocto-bsp
$: cd fsl-arm-yocto-bsp
$: repo init -u git://git.freescale.com/imx/fsl-arm-yocto-bsp.git -b scm-imx-3.14.52-1.1.1_ga
$: repo sync

Note this downloads the latest patches on top of the 3.14.52-1.1.1 GA release.

If the GA release was downloaded before just do repo sync to fetch latest updates.

To checkout the GA release without scm patches do the following:
$: cd sources/meta-fsl-bsp-release
$: git checkout scm-imx_3.14.52_1.1.1_ga

Setup for a particular graphical backend.
-----------------------------------------
The examples uses imx6sxscm-1gb-evb MACHINE but substitute with whatever you are using:

Setup for X11.
$: MACHINE=imx6sxscm-1gb-evb DISTRO=fsl-imx-x11 source ./fsl-setup-release.sh -b build-x11

Setup for Wayland.
$: MACHINE=imx6sxscm-1gb-evb DISTRO=fsl-imx-wayland source ./fsl-setup-release.sh -b build-wayland

Setup for Wayland and X11.
$: MACHINE=imx6sxscm-1gb-evb DISTRO=fsl-imx-xwayland source ./fsl-setup-release.sh -b build-xwayland

Setup for Frame Buffer.
$: MACHINE=imx6sxscm-1gb-evb DISTRO=fsl-imx-fb source ./fsl-setup-release.sh -b build-fb

Note if the poky community distro is used then build breaks will happen with some components using
our meta-fsl-bsp-release layer.

Note DirectFB is not supported in this release.

Build an image:
---------------
bitbake <image recipe>

Some image recipes:
fsl-image-gui - full image with demos and tests used for testing with graphics, no QT.
fsl-image-qt5 - fsl-image-gui with QT 5.