Compile L3.0.35_4.1.0 on Ubuntu 14.04 64bit OS

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Compile L3.0.35_4.1.0 on Ubuntu 14.04 64bit OS

Compile L3.0.35_4.1.0 on Ubuntu 14.04 64bit OS

This is the procedure and patch to set up Ubuntu 14.04 64bit Linux Host PC and building i.MX6x L3.0.35_4.1.0. It has been tested to build GNOME profile and with FSL Standard MM Codec for i.MX6Q SDP with LVDS display.

Add suggestion about compiling "gstreamer-plugins-good" when selecting "Min profile" rootfs.  Please refer to the Note session.

A) Basic Requirement:

  • Set up the Linux Host PC using ubuntu-14.04-desktop-amd64.iso
  • Make sure the previous LTIB installation and the /opt/freescale have been removed

B) Installed the needed packages to the Linux Host PC


     Needed packages:

$ sudo apt-get install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev

$ sudo apt-get install libdbus-glib-1-dev liborbit2-dev intltool

$ sudo apt-get install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool

$ sudo apt-get install uuid-dev liblzo2-dev

$ sudo apt-get install tcl dpkg

$ sudo apt-get install asciidoc texlive-latex-base dblatex xutils-dev

$ sudo apt-get install texlive texinfo

$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0

$ sudo apt-get install libc6-dev-i386

$ sudo apt-get install u-boot-tools

$ sudo apt-get install scrollkeeper

$ sudo ln -s /usr/lib/x86_64-linux-gnu/librt.so   /usr/lib/librt.so

     Useful tools:

$ sudo apt-get install gparted

$ sudo apt-get install nfs-common nfs-kernel-server

$ sudo apt-get install git-core git-doc git-email git-gui gitk

$ sudo apt-get install meld atftpd

     Note: this operation "$ sudo ln -s /usr/lib/x86_64-linux-gnu/librt.so /usr/lib/librt.so" is used to fix rpm-fs build issue; which is taking reference from: LTIB - Strange problem building IMX6 Linux BSP from fresh on Ubuntu 13.10

C) Unpack and install the LTIB source package and assume done on the home directory:

$ cd ~

$ tar -zxvf L3.0.35_4.1.0_130816_source. tar.gz

$ ./L3.0.35_4.1.0_130816_source/install

D) Apply the patch to make L3.0.35_4.1.0 could be installed and compiled on Ubuntu 14.04 64bit OS


$ cd ~/ltib

$ git apply 0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS


What the patch is doing:


a) The patch modifies the following files:

    • bin/Ltibutils.pm
    • dist/lfs-5.1/base_libs/base_libs.spec
    • dist/lfs-5.1/m4/m4.spec
    • dist/lfs-5.1/ncurses/ncurses.spec
    • dist/lfs-5.1/openssl/openssl.spec
    • dist/lfs-5.1/xorg-server/xorg-server.spec


b) Add the following files to the pkgs directory:

    • pkgs/m4-1.4.16-1383761043.patch
    • pkgs/m4-1.4.16-1383761043.patch.md5
    • pkgs/openssl-1.0.1c-1398677566.patch
    • pkgs/openssl-1.0.1c-1398677566.patch.md5
    • pkgs/xorg-server-1.6.1-1398785267.patch
    • pkgs/xorg-server-1.6.1-1398785267.patch.md5

E) Then, it is ready to proceed the rest of the LTIB env setup process:


$ cd ~/ltib

$ ./ltib -m config

$ ./ltib


F) about the patch:

  • LTIB script warning when running with Perl v5.18.2
    • associated change:
      • bin/Ltibutils.pm
    • description:

It prints out the following warning when doing package unpack, the patch is used to remove the warning.

defined(@array) is deprecated at bin/Ltibutils.pm line 259

        (Maybe you should just omit the defined()?)



  • xorg-server configuration fail:
    • associated change:
      • dist/lfs-5.1/xorg-server/xorg-server.spec
      • pkgs/xorg-server-1.6.1-1398785267.patch
      • pkgs/xorg-server-1.6.1-1398785267.patch.md5
    • description: When doing configuration, it stops at saying tslib not found.  It could be fixed by adding -dl when doing tslib test in configuration stage.


NOTE:

A) During the LTIB setup and compilation, these warnings were pop up.  Just ignore them and it seems okay.


panel01.jpg


panel2.jpg



B) the dist/lfs-5.1/gst-plugins-good.spec is used to configurate/compile/install the "gstreamer-plugins-good" package.  It set up the environment variables pointing to libcairo but disable it when doing configuration. Thus, libcairo is actually not being used.


          Clipboard011.jpg

In Gnome profile, cario has been selected by default.  Thus, it does not experience the problem when compiling "gstreamer-plugins-good".


However, in Min profile, if you select gstreamer-plugins-good to compile and install to your rootfs but without selecting cario as well, you will experience the error described in this thread: Re: gst-fsl-plugins build failed


Thus, you could follow the solution provide in the Re: gst-fsl-plugins build failed or simply select cairo in your package list.


          Clipboard0111.jpg

Attachments
Comments

sure.

fine for me.

Thanks,

Yixing

My ubuntu version is 14.04, thus the patch above should be correct for installing linux target image builder.

lsb_release -a

No LSB modules are available.

Distributor ID: Ubuntu

Description: Ubuntu 14.04.1 LTS

Release: 14.04

Codename: trusty

unziping and running git apply, mention the patch is not valid. I can't install ltib and thus not able to download linaro BSP onto my imx6. Please kindly assist.

git apply 0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:106: trailing whitespace.

%patch1 -p1

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:144: trailing whitespace.

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:164: trailing whitespace.

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:166: trailing whitespace.

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:169: trailing whitespace.

error: patch failed: dist/lfs-5.1/base_libs/base_libs.spec:296

error: dist/lfs-5.1/base_libs/base_libs.spec: patch does not apply

alvin@ubuntu:~/ltib/ltib$ git apply 0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:106: trailing whitespace.

%patch1 -p1

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:144: trailing whitespace.

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:164: trailing whitespace.

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:166: trailing whitespace.

0001_make_L3.0.35_4.1.0_compile_on_Ubuntu_14.04_64bit_OS.patch:169: trailing whitespace.

error: patch failed: dist/lfs-5.1/base_libs/base_libs.spec:296

error: dist/lfs-5.1/base_libs/base_libs.spec: patch does not apply

Have commented on this discussion: Re: patch not working in my ubuntu(14.04), LTiB not able to install

Please make sure the patch is just apply one time to a newly created LTIB build environment based on L3.0.35_4.1.0.

Thank u very much.

Hi Heifatisaac Ng ,I met the same problem, but I am unauthorized to view the contents of the link you provided, could you tell me how to be "authorized" ? Thank in advance!

thanks.

i met the problem same as mu qiao ,could you tell me how to be "authorized" ? Thank in advance!

It seems that the link quoted on reply dated 2014/08/10 is no longer exist.  Nevertheless, it was just emphasized the patch is just needed to apply ONCE.

Also, L3.0.35_4.1.0 is a legacy BSP release, it is suggested to use latest Yocto BSP for new development.  The latest one is L3.14.52_1.1.0-GA and could be found in: SABRE Board Reference Design|NXP

pastedImage_3.png

Thank you for your prompt reply!

On Mon, 28 Mar 2016 23:43:08 -0700, isaac.ng wrote

Heifatisaac Ng

[https://community.freescale.com/people/isaac.ng?

et=watches.email.document_comment] commented on the document "Compile

L3.0.35_4.1.0 on Ubuntu 14.04 64bit OS"

To view all comments on this document, visit:

https://community.freescale.com/docs/DOC-

100725?et=watches.email.document_comment#comment-34895

>

Hi, 

I am new to Linux environment and I am facing the issue ring installation of LTIB.

I got error as Can't get: gcc-4.4.4-glibc-2.11.1-multilib-1.0-1.i386.rpm at ./ltib line 2560. Died at ./ltib line 2560. 

Please guide me where things went wrong.

Also I am started working on old project which is based on LTIB. But I am new to both LTIB and yocto.

Shall I start using yocto or continue LTIB ??

First of all, if you are working on i.MX6 and i.MX7, would suggest to use latest Yocto BSP.

Details on Yocto Projects could be found in: https://www.yoctoproject.org/ 

In the i.MX Yocto BSP release, there is also a Yocto Project User's Guide; which will be helpful to setup the build environment specific to i.MX.

Go back to the LTIB environment setup, please advise if you have got the L3.0.35_4.1.0 BSP release.  The toolchain is kept in the BSP package.  Although it is not advise to use LTIB for new project. Nevertheless, you could still find it in: Embedded Linux for i.MX Applications Processors|NXP  and you need to expand the "Board Support Package" sub-session

                    pastedImage_2.png

and scroll down to find the L3.0.35_4.1.0 BSP release:

            pastedImage_4.png

The setup is specific to Ubuntu 14.04 64bit OS and which was the first 14.04 release.  Thus, you need to have an exact match on that.  It should be able to find ubuntu-14.04-desktop-amd64.iso in Ubuntu 14.04.2 LTS (Trusty Tahr) 

Once all the needed packages are ready, it could go thru the steps from A - D accordingly.

No ratings
Version history
Last update:
‎05-02-2014 11:39 PM
Updated by: