Yocto Compilation For Rugged Board i.MX6UL
Objective:
This guide describes a method of compiling the yocto for the Rugged Board i.MX6UL.
Materials:
Hardware:
PC(Personal computer)/System
Software:
Ubuntu 20.04 64Bit
Procedure:
The following list shows what you need in order to use a Linux-based build host to use the Yocto Project to build images:
Build Host A build host with a minimum of 50 Gbytes of free disk space that is running a supported Linux distribution (i.e. recent releases of Fedora, openSUSE, CentOS, Debian, or Ubuntu).
Build Host Packages Appropriate packages installed on the build host.
HOST Machine setup:
UBUNTU 20.04 is preferred. Install the below per-requisite packages
Ubuntu and Debian:
Source Downloading:
Step-1: Create a directory to download the all layers.
Step-2: Download the PHYTEC BSP Management tool to setup the PHYTEC Yocto.
Step-3: Provide the execution permission for the above tool and run to initialize the Yocto setup
Step-4: While initializing the repo for Yocto source, we need to select the following option
Now the YOCTO SOURCE CODE is downloaded.
Note:
If you are not greeted by the option phyboard-segin-imx6ul-2 at the last stage. use the below command
Now you can select the available build
Configuring the Bitbake layers:
Step-1: Download the meta layer for RB-i.MX6UL
Step-2: Checkout the respective branch as per the downloaded release of the yocto source setup. In the above case, we have downloaded "BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1" release and hence "RB-PD21.2.1" branch has to be checked-out.
Step-3: Configure the meta-rbimx6ul in the bblayers configuration
Step-4: Change the machine name in the conf/local.conf
. Modify MACHINE ?= "phyboard- segin-imx6ul-2"
to MACHINE ?= "ruggedboard-imx6ul"
With this, meta-rbimx6ul layer is configured.
Building and generating the Images :
After you downloaded all the metadata with phyLinux init, you have to set up the shell environment variables.
This needs to be done every time you open a new shell for starting builds. We use the shell script provided by Poky in its default configuration.
Step-1: Come back to root of your project, in our case "yocto".
Step-2: Set-up the shell environment variables.
Step-3: Now you are ready to build your first image.
Here, rb-qt5demo-image - Graphical images consisting Qt and Gstremer plugins and other graphic related Stacks and packages rb-headless-image - smaller non-graphical image.
More info and Documents can be found at https://www.phytec.in/software/board-support- packages/yocto-buildsystem/bsp-seite/?bsp=BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1
Last updated