Difference between revisions of "Getting started with AI on NXP i.MX8M Plus/Introduction/Quick getting started/Yocto minimal image"

From RidgeRun Developer Connection
Jump to: navigation, search
m
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<noinclude>
 +
{{Getting started with AI on NXP i.MX8M Plus/Head|previous=Introduction/Quick getting started|next=Introduction/Quick getting started/Flashing SD card|metakeywords=Yocto minimal image, XWayland distribution, Variscite}}
 +
</noinclude>
 +
 +
 +
<!-- If you want a custom title for the page, un-comment and edit this line:
 +
{{DISPLAYTITLE:Getting started with AI on NXP i.MX8M Plus - <descriptive page name>|noerror}}
 +
-->
 +
 +
 
== Downloading and downloading Gatesgarth ==
 
== Downloading and downloading Gatesgarth ==
  
 
Let's suppose we are working in '''$HOME''' as the root directory for this process.
 
Let's suppose we are working in '''$HOME''' as the root directory for this process.
  
So, move into that directory and create folder in which the download will be performed:
+
So, move into that directory and create a folder in which the download will be performed:
  
 
<syntaxhighlight lang='bash'>
 
<syntaxhighlight lang='bash'>
Line 23: Line 33:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
== Configuring the environment for image building from XWayland distribuition ==
+
== Configuring the environment for image building from XWayland distribution ==
  
Here we need to define distribuitions and the device by setting the following variables:
+
Here we need to define distributions and the device by setting the following variables:
  
 
*DISTRO
 
*DISTRO
 
*MACHINE
 
*MACHINE
  
In this case, we have a i.MX8M Plus from variscite, and the chosen distro is xwayland, so the parameters are:
+
In this case, we have i.MX8M Plus from variscite and the chosen distro is xwayland, so the parameters are:
  
 
<syntaxhighlight lang='bash'>
 
<syntaxhighlight lang='bash'>
Line 37: Line 47:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 +
Inside our development directory, we need to set a build directory:
  
 +
<syntaxhighlight lang='bash'>
 +
mkdir build_xwayland
 +
</syntaxhighlight>
  
 +
At first time configuring the environment we need to execute the bash script called '''var-setup-release.sh''', and specify the build folder:
  
 
<syntaxhighlight lang='bash'>
 
<syntaxhighlight lang='bash'>
 +
source var-setup-release.sh -b build_xwayland
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
At this point, some files will be created in $HOME/imx8-yocto-variscite/build_xwayland. Inside the build directory, a folder called conf contains two files:
 +
 +
*local.conf
 +
*bblayers.conf
 +
 +
Go to '''local.conf''' and at the end of this file add the following lines (This is optional, this will add some protocols recommended by Variscite):
 +
 +
<syntaxhighlight lang='bash'>
 +
IMAGE_INSTALL_append = " \
 +
    tcf-agent \
 +
    openssh-sftp-server \
 +
    "
 +
</syntaxhighlight>
 +
 +
Finally, we are ready to build the minimal image for testing the process explained:
 +
 +
<syntaxhighlight lang='bash'>
 +
bitbake core-image-minimal
 +
</syntaxhighlight>
 +
 +
{{Ambox
 +
|type=notice
 +
|small=left
 +
|issue='''Note:''' take into account that the process of building an image at the first time you could spend from 2 up to 6 hours or more, ensure your laptop is connected/charged and your internet connection is stable.
 +
|style=width:unset;
 +
}}
 +
 +
<syntaxhighlight lang='bash'>
 +
</syntaxhighlight>
 +
 +
<noinclude>
 +
{{Getting started with AI on NXP i.MX8M Plus/Foot|Introduction/Quick getting started|Introduction/Quick getting started/Flashing SD card}}
 +
</noinclude>

Latest revision as of 11:52, 21 March 2023




NXP Partner Program Registered Vertical.jpg NXP Partner Program Horizontal.jpg
Previous: Introduction/Quick getting started Index Next: Introduction/Quick getting started/Flashing SD card





Downloading and downloading Gatesgarth

Let's suppose we are working in $HOME as the root directory for this process.

So, move into that directory and create a folder in which the download will be performed:

cd $HOME
mkdir imx8-yocto-variscite
cd imx8-yocto-variscite

Initialize the repository using repo installed before:

repo init -u https://github.com/varigit/variscite-bsp-platform.git -b fsl-gatesgarth -m imx-5.10.9-1.0.0-var01.xml

Synchronize the local repo with the remote one:

repo sync

Configuring the environment for image building from XWayland distribution

Here we need to define distributions and the device by setting the following variables:

  • DISTRO
  • MACHINE

In this case, we have i.MX8M Plus from variscite and the chosen distro is xwayland, so the parameters are:

DISTRO=fsl-imx-xwayland
MACHINE=imx8mp-var-dart

Inside our development directory, we need to set a build directory:

mkdir build_xwayland

At first time configuring the environment we need to execute the bash script called var-setup-release.sh, and specify the build folder:

source var-setup-release.sh -b build_xwayland

At this point, some files will be created in $HOME/imx8-yocto-variscite/build_xwayland. Inside the build directory, a folder called conf contains two files:

  • local.conf
  • bblayers.conf

Go to local.conf and at the end of this file add the following lines (This is optional, this will add some protocols recommended by Variscite):

IMAGE_INSTALL_append = " \
    tcf-agent \
    openssh-sftp-server \
    "

Finally, we are ready to build the minimal image for testing the process explained:

bitbake core-image-minimal


Previous: Introduction/Quick getting started Index Next: Introduction/Quick getting started/Flashing SD card