Difference between revisions of "UCM-iMX8M-Mini: Yocto Linux: Building UCM-iMX8M-Mini Yocto images"
imported>Igor.vaisbein |
imported>Kirill.kapranov (→Building previous versions of UCM-iMX8M-Mini Yocto) |
||
Line 13: | Line 13: | ||
</pre> | </pre> | ||
Next step is getting the Compulab BSP meta-layer. | Next step is getting the Compulab BSP meta-layer. | ||
− | <pre>git clone -b | + | <pre>git clone -b master https://github.com/compulab-yokneam/meta-bsp-imx8mm.git sources/meta-bsp-imx8mm/ |
− | |||
</pre> | </pre> | ||
The Compulab meta-layer consists of {{filename|meta-compulab}} directory, that provides support for UCM-iMX8M-Mini and other Compulab i.MX based machines and contains recipes for U-boot and Linux kernel. | The Compulab meta-layer consists of {{filename|meta-compulab}} directory, that provides support for UCM-iMX8M-Mini and other Compulab i.MX based machines and contains recipes for U-boot and Linux kernel. | ||
Line 23: | Line 22: | ||
==Create Build Environment== | ==Create Build Environment== | ||
:* Issue '''Compulab''' Setup Script: | :* Issue '''Compulab''' Setup Script: | ||
− | :<pre>source sources | + | :<pre>MACHINE=ucm-imx8m-mini DISTRO=fsl-imx-xwayland source sources/meta-bsp-imx8mm/tools/setup-imx8mm-env -b build-xwayland |
</pre> | </pre> | ||
+ | You will be asked regarding options of the image you are configuring. | ||
== Building the images == | == Building the images == | ||
Line 46: | Line 46: | ||
=Building previous versions of UCM-iMX8M-Mini Yocto= | =Building previous versions of UCM-iMX8M-Mini Yocto= | ||
+ | * [[Building_UCM-iMX8M-Mini_Yocto_Linux_images_r1.2|Building UCM-iMX8M-Mini Yocto r1.2]] | ||
* [[Building_UCM-iMX8M-Mini_Yocto_Linux_images_r1.1|Building UCM-iMX8M-Mini Yocto r1.1]] | * [[Building_UCM-iMX8M-Mini_Yocto_Linux_images_r1.1|Building UCM-iMX8M-Mini Yocto r1.1]] | ||
+ | |||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Yocto]] | [[Category:Yocto]] | ||
[[Category:UCM-iMX8M-Mini]] | [[Category:UCM-iMX8M-Mini]] |
Revision as of 16:31, 17 November 2019
Contents
Overview
The Yocto Project is an open-source collaboration focused on embedded Linux development.
The purpose of this article is to show how to get Yocto Image with support for the UCM-iMX8M-Mini System-on-Module.
Yocto Environment Setup
Yocto host requirements are listed on the Yocto official site
In order to get NXP Yocto BSP building environment please issue the following commands. More detailed instructions can be found at the NXP readme file
repo init -u git://source.codeaurora.org/external/imx/imx-manifest.git -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml repo sync
Next step is getting the Compulab BSP meta-layer.
git clone -b master https://github.com/compulab-yokneam/meta-bsp-imx8mm.git sources/meta-bsp-imx8mm/
The Compulab meta-layer consists of meta-compulab directory, that provides support for UCM-iMX8M-Mini and other Compulab i.MX based machines and contains recipes for U-boot and Linux kernel.
Image Building
This section provides information about building UCM-iMX8M-Mini images.
Create Build Environment
- Issue Compulab Setup Script:
MACHINE=ucm-imx8m-mini DISTRO=fsl-imx-xwayland source sources/meta-bsp-imx8mm/tools/setup-imx8mm-env -b build-xwayland
You will be asked regarding options of the image you are configuring.
Building the images
The Yocto Project build uses the bitbake command.
- To build a Compulab image with GUI use the command below:
bitbake -k compulab-ucm-imx8m-mini
- To build a minimal Linux image use the command below:
bitbake -k core-image-full-cmdline
- To re-build only the Linux kernel use the command below:
source setup-environment build-xwayland bitbake -c cleansstate linux-imx bitbake -k linux-imx
- To re-build only the u-boot bootloader and boot image use the command below:
source setup-environment build-xwayland bitbake -c cleansstate imx-boot u-boot-imx bitbake -k imx-boot u-boot-imx