Compiling L4.14.98-2.0.0 BSP on Ubuntu 18.04 LTS

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling L4.14.98-2.0.0 BSP on Ubuntu 18.04 LTS

Compiling L4.14.98-2.0.0 BSP on Ubuntu 18.04 LTS

   Recently, some customers encountered the problem that compilation failed when compiling l4.14.98-2.0.0 fsl-imx-waylan + fsl-image-qt5-validation-imx in Ubuntu 18.04 environment. In fact, compiling QT image is a very time-consuming process, especially in the process of compiling, errors need to be handled, which will be more time-consuming. The following compilation took four days to complete.

1. Environment

Linux Host : ubuntu 18.04 LTS

Virtual Machine: VMware workstatin Player 12

images: fsl-imx-waylan + fsl-image-qt5-validation-imx

Hardware: imx8mqevk

Linux BSP verison: L4.14.98-2.0.0

2. Steps

(1)Installation of Ubuntu 18.04

pastedImage_1.png

2.Update software

pastedImage_2.png

3. Installing software package for compiling BSP

# sudo apt-get install flex

# sudo apt-get install bison

# sudo apt-get install gperf

# sudo apt-get install build-essential

# sudo apt-get install zlib1g-dev

# sudo apt-get install lib32ncurses5-dev

# sudo apt-get install x11proto-core-dev

# sudo apt-get install libx11-dev

# sudo apt-get install lib32z1-dev

# sudo apt-get install libgl1-mesa-dev

# sudo apt-get install tofrodos

# sudo apt-get install python-markdown

# sudo apt-get install libxml2-utils

# sudo apt-get install xsltproc         

# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386

# sudo apt-get install gcc-multilib g++-multilib

# sudo apt-get install subversion

# sudo apt-get install openssh-server openssh-client

# sudo apt-get install uuid uuid-dev

# sudo apt-get install zlib1g-dev liblz-dev

# sudo apt-get install liblzo2-2 liblzo2-dev

# sudo apt-get install lzop

# sudo apt-get install git-core curl

# sudo apt-get install u-boot-tools

# sudo apt-get install mtd-utils

# sudo apt-get install android-tools-fsutils

# sudo apt-get install openjdk-8-jdk

# sudo apt-get install device-tree-compiler

# sudo apt-get install aptitude

# sudo aptitude install libcurl4-openssl-dev nss-updatedb

 

From i.MX_Yocto_Project_User's_Guide.pdf:

# sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \

build-essential chrpath socat libsdl1.2-dev

 

4. Downloading Yocto BSP according to steps in i.MX_Yocto_Project_User's_Guide.pdf

5Compiling L4.14.98-2.0.0 BSP

# cd ~/imx-yocto-bsp

# DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source fsl-setup-release.sh -b build-wayland

# bitbake fsl-image-qt5-validation-imx

In the process of compilation, there have been many "fetch errors", which are caused by disconnection or timeout of network connection.

We just need to run the bitmake command again in the build Wayland subdirectory to continue the compilation.

# bitbake fsl-image-qt5-validation-imx

         Fetching errors below were what I encountered:

pastedImage_4.png

pastedImage_5.png

pastedImage_7.png

         The following picture is to re-run “bitbake fsl-image-qt5-validation-imx” after fetch errors occurred.

pastedImage_8.png

         In order to improve the speed of compilation , I re-configured vmware player, assigning 6 CPU cores for Ubuntu.

pastedImage_9.png

         Compilation is a long and arduous process. It took 4 days to compile normally with error handling. Finally, the compilation was completed.

NXP TIC Team

Weidong Sun

2019-11-02

Labels (1)
Version history
Revision #:
1 of 1
Last update:
‎11-01-2019 08:28 PM
Updated by: