Personal tools

VisionSOM imx-meta-somlabs: Difference between revisions

From SomLabs Wiki

Jump to: navigation, search
Created page with "{{PageHeader|VisionSOM imx-meta-somlabs layer for NXP Yocto}} __toc__"
 
No edit summary
Line 1: Line 1:
{{PageHeader|VisionSOM imx-meta-somlabs layer for NXP Yocto}} __toc__
{{PageHeader|VisionSOM imx-meta-somlabs layer for NXP Yocto}} __toc__
This tutorial explains how to build the Yocto zeus system for the VisionSOM modules. The Yocto system uses the following kernel and u-boot repositories:
* kernel (5.4.24): https://github.com/SoMLabs/somlabs-linux-imx/tree/somlabs_imx_5.4.24_2.1.0
* u-boot (2019.04): https://github.com/SoMLabs/somlabs-uboot-imx/tree/somlabs-lf-5.4.y_v2019.04
== Introduction ==
Meta-somlabs is a layer providing the VisionSOM-6ULL module and VisionCB-6ULL-STD carrier board hardware support for Yocto-based NXP Linux system.
== System image ==
This layer should be used in order to build the fsl-image-validation-imx image. It includes the SoMLabs demo application using the GTK and GStreamer libraries.
== Building the system image ==
The general description of the building process is described in the iMX Yocto Project User's Guide document:
https://www.nxp.com/docs/en/user-guide/IMXLXYOCTOUG.pdf
The summary of required steps including the meta-somlabs layer is shown below:
<pre>
mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.3-2.0.0.xml
repo sync
cd sources
git clone -b zeus https://github.com/SoMLabs/imx-meta-somlabs.git meta-somlabs
</pre>
The following lines need to be added to the imx-yocto-bsp/imx-setup-release.sh file in order to add the meta-somlabs layer to build and enable the commercial license in build:
<pre>
echo "BBLAYERS += \"\${BSPDIR}/sources/meta-somlabs\"" >> $BUILD_DIR/conf/bblayers.conf
echo "LICENSE_FLAGS_WHITELIST = \"commercial\"" >> $BUILD_DIR/conf/local.conf
</pre>
System building may be configured for one of the available machine configurations:
* visioncb-6ull-std-emmc-btwifi - VisionCB-6ULL-STD board with eMMC and wireless modem VisionSOM-6ULL version
* visioncb-6ull-std-emmc - VisionCB-6ULL-STD board with eMMC VisionSOM-6ULL version
* visioncb-6ull-std-sd-btwifi - VisionCB-6ULL-STD board with SD-card and wireless modem VisionSOM-6ULL version
* visioncb-6ull-std-sd - VisionCB-6ULL-STD board with SD-card VisionSOM-6ULL version
* visionsom-8mm-cb-std - VisionCB-8M-STD board with SD-card and wireless modem VisionSOM-8MM version
System building may be started by the following commands:
<pre>
DISTRO=fsl-imx-wayland MACHINE=<SELECTED_MACHINE> source imx-setup-release.sh -b <BUILD_DIRECTORY>
bitbake fsl-image-validation-imx
</pre>
The system image is located in the fsl-image-validation-imx-<SELECTED_MACHINE>.sdcard.bz2 file in the tmp/deploy/images/<SELECTED_MACHINE> directory. It should be extracted and installed on a SD-card:
<pre>
bunzip2 -dkf fsl-image-validation-imx-<SELECTED_MACHINE>.sdcard.bz2
sudo dd if=fsl-image-validation-imx-<SELECTED_MACHINE>.sdcard of=/dev/sdX bs=1M
</pre>
The instruction for the eMMC memory image installation may be found on the following wiki pages:
* VisionSOM-6ULL: https://wiki.somlabs.com/index.php/Writing_VisionSOM-6ULL_system_image_to_eMMC_memory
* VisionSOM-8MM: https://wiki.somlabs.com/index.php/Writing_VisionSOM-8MM_system_image_to_eMMC_memory

Revision as of 11:57, 21 August 2020

VisionSOM imx-meta-somlabs layer for NXP Yocto


This tutorial explains how to build the Yocto zeus system for the VisionSOM modules. The Yocto system uses the following kernel and u-boot repositories:

Introduction

Meta-somlabs is a layer providing the VisionSOM-6ULL module and VisionCB-6ULL-STD carrier board hardware support for Yocto-based NXP Linux system.

System image

This layer should be used in order to build the fsl-image-validation-imx image. It includes the SoMLabs demo application using the GTK and GStreamer libraries.

Building the system image

The general description of the building process is described in the iMX Yocto Project User's Guide document:

https://www.nxp.com/docs/en/user-guide/IMXLXYOCTOUG.pdf

The summary of required steps including the meta-somlabs layer is shown below:

mkdir imx-yocto-bsp
cd imx-yocto-bsp
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-zeus -m imx-5.4.3-2.0.0.xml
repo sync
cd sources
git clone -b zeus https://github.com/SoMLabs/imx-meta-somlabs.git meta-somlabs

The following lines need to be added to the imx-yocto-bsp/imx-setup-release.sh file in order to add the meta-somlabs layer to build and enable the commercial license in build:

echo "BBLAYERS += \"\${BSPDIR}/sources/meta-somlabs\"" >> $BUILD_DIR/conf/bblayers.conf
echo "LICENSE_FLAGS_WHITELIST = \"commercial\"" >> $BUILD_DIR/conf/local.conf

System building may be configured for one of the available machine configurations:

  • visioncb-6ull-std-emmc-btwifi - VisionCB-6ULL-STD board with eMMC and wireless modem VisionSOM-6ULL version
  • visioncb-6ull-std-emmc - VisionCB-6ULL-STD board with eMMC VisionSOM-6ULL version
  • visioncb-6ull-std-sd-btwifi - VisionCB-6ULL-STD board with SD-card and wireless modem VisionSOM-6ULL version
  • visioncb-6ull-std-sd - VisionCB-6ULL-STD board with SD-card VisionSOM-6ULL version
  • visionsom-8mm-cb-std - VisionCB-8M-STD board with SD-card and wireless modem VisionSOM-8MM version

System building may be started by the following commands:

DISTRO=fsl-imx-wayland MACHINE=<SELECTED_MACHINE> source imx-setup-release.sh -b <BUILD_DIRECTORY>
bitbake fsl-image-validation-imx

The system image is located in the fsl-image-validation-imx-<SELECTED_MACHINE>.sdcard.bz2 file in the tmp/deploy/images/<SELECTED_MACHINE> directory. It should be extracted and installed on a SD-card:

bunzip2 -dkf fsl-image-validation-imx-<SELECTED_MACHINE>.sdcard.bz2 
sudo dd if=fsl-image-validation-imx-<SELECTED_MACHINE>.sdcard of=/dev/sdX bs=1M

The instruction for the eMMC memory image installation may be found on the following wiki pages: