Personal tools

Difference between revisions of "Recipe for building Yocto Linux for EBOX-IMX8MMINI"

From ICOP tech wiki

Jump to: navigation, search
Line 9: Line 9:
 
https://www.nxp.com/docs/en/user-guide/IMXLXYOCTOUG.pdf
 
https://www.nxp.com/docs/en/user-guide/IMXLXYOCTOUG.pdf
  
==== '''Suggest O/S''': Ubuntu 18.04 or later. ====
+
<br />
 +
 
 +
==== <big>'''Suggest O/S''':Ubuntu 18.04 or later.</big> ====
 
For Ubuntu 16.04 user, please add the content to the local.conf to avoid the error during building the SDL.
 
For Ubuntu 16.04 user, please add the content to the local.conf to avoid the error during building the SDL.
 
<pre>
 
<pre>
Line 16: Line 18:
 
</pre>
 
</pre>
  
<br />
+
==== <big>'''Storage:''' Please make sure the capacity of your storage has 120GB or bigger space</big> ====
 
 
==== '''Storage:''' Please make sure the capacity of your storage has 120GB or bigger space. ====
 
  
  
Line 28: Line 28:
 
</pre>
 
</pre>
 
   
 
   
 
+
i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup are:<pre>
 
 
i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup are:
 
<pre>
 
 
$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html \ docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils \ libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
 
$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html \ docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils \ libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc
 
</pre>
 
</pre>
  
  
Step 2. Insalling the repo utility:
+
'''Step 2.''' Insalling the repo utility:
  
 
Create the bin folder in the home directory:
 
Create the bin folder in the home directory:
Line 45: Line 42:
 
</pre>
 
</pre>
  
Step 3. Add the following line to the .bashrc file to make sure the ~/bin folder is in the PATH.
+
'''Step 3.''' Add the following line to the .bashrc file to make sure the ~/bin folder is in the PATH.
 
<pre>
 
<pre>
 
export PATH=~/bin:$PATH
 
export PATH=~/bin:$PATH
 
</pre>
 
</pre>
  
Step 4. Ensure the git is properly set up by commands below:
+
'''Step 4.''' Ensure the git is properly set up by commands below:
 
<pre>
 
<pre>
 
$ git config --global user.name "Your Name"  
 
$ git config --global user.name "Your Name"  
Line 57: Line 54:
 
</pre>
 
</pre>
  
Step 5. Download the i.MX Yocto Project Community BSP recipe layers:
+
'''Step 5.''' Download the i.MX Yocto Project Community BSP recipe layers:
 
<pre>
 
<pre>
 
$ mkdir imx-yocto-bsp  
 
$ mkdir imx-yocto-bsp  
Line 65: Line 62:
 
</pre>
 
</pre>
  
Step 6. Unzip the Recipe for building Yocto Linux for EBOX-IMX8MM to the file ‘imx-yocto-bsp”
+
'''Step 6.''' Unzip the Recipe for building Yocto Linux for EBOX-IMX8MM to the file ‘imx-yocto-bsp”
  
  
Step 7. Create the setup environment by command below (You could change the file name as you want)
+
'''Step 7.''' Create the setup environment by command below (You could change the file name as you want)
 
<pre>
 
<pre>
 
$ source setup-environment build-filename
 
$ source setup-environment build-filename
 
</pre>
 
</pre>
  
Step 8. Run the command below.
+
'''Step 8.''' Run the command below.
 
<pre>
 
<pre>
 
$ bitbake fsl-image-qt5-validation-imx”
 
$ bitbake fsl-image-qt5-validation-imx”

Revision as of 11:50, 5 October 2020

Recipe for building Yocto Linux for EBOX-IMX8MM

Recipe for building Yocto Linux for EBOX-IMX8MM:

Ftp://sbc:sbc@ftp.icop.com.tw/iMX8/OS/Yocto/Recipe/EBOX-IMX8MM%20Yocto%20Recipe.zip


Check the compiling method on the open document form NXP:

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


Suggest O/S:Ubuntu 18.04 or later.

For Ubuntu 16.04 user, please add the content to the local.conf to avoid the error during building the SDL.

#PACKAGECONFIG_append_pn-qemu-native = " sdl"
#PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"

Storage: Please make sure the capacity of your storage has 120GB or bigger space

Step 1. Install Host packages:

Essential Yocto Project host packages:

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat libsdl1.2-dev

i.MX layers host packages for a Ubuntu 12.04 or 14.04 host setup are:

$ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html \ docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils \ libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc


Step 2. Insalling the repo utility:

Create the bin folder in the home directory:

$ mkdir ~/bin (this step may not be needed if the bin folder already exists)
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo 
$ chmod a+x ~/bin/repo

Step 3. Add the following line to the .bashrc file to make sure the ~/bin folder is in the PATH.

export PATH=~/bin:$PATH

Step 4. Ensure the git is properly set up by commands below:

$ git config --global user.name "Your Name" 
$ git config --global user.email "Your Email" 
$ git config –list

Step 5. Download the i.MX Yocto Project Community BSP recipe layers:

$ mkdir imx-yocto-bsp 
$ cd imx-yocto-bsp 
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo - m imx-4.14.98-2.0.0_ga.xml
$ repo sync

Step 6. Unzip the Recipe for building Yocto Linux for EBOX-IMX8MM to the file ‘imx-yocto-bsp”


Step 7. Create the setup environment by command below (You could change the file name as you want)

$ source setup-environment build-filename

Step 8. Run the command below.

$ bitbake fsl-image-qt5-validation-imx”

The system will start to download and install source code, patch file, and compilation.