Install LTIB BSP on Ubuntu 14.04

The LTIB (Linux Target Image Builder) project is a simple tool that can be used to develop and deploy BSPs (Board Support Packages) for various target platforms. Using this tool a user will be able to develop a GNU/Linux image for their target platform.
This instruction helps to build and install LTIB for conga-QMX6 (based on Freescale ® i.MX6 ARM ® Cortex A9) on Ubuntu 14.04 Linux.

1) Get LTIB Linux BSP from Freescale site: https://www.freescale.com/webapp/Download?colCode=L3.0.35_4.1.0_ER_SOURCE_BSP&appType=license&location=null
You must be registered user for download this link.

2) After download is finished unpack it into any directory, f.e. into home dir.

3) Run ./install

4) Install Host Packages Needed by LTIB
The Ubuntu 14.04 requires additional packages for LTIB installation. Install these packages as follows:

5) Packages Required for 64-bit Ubuntu

If you use 64-bit Ubuntu, then install the lib32z-dev package

6) Create or Modify Fuse Rules

7) Edit Sudoers File

• Run ‘sudo visudo’ to edit the sudoers.tmp file.

• Add the following line to the end of the sudoers file:

• Press ctrl + O and Enter to save the file
• Press ctrl + X to exit.

8) Now we must patch some files. Note that, it must be done from ltib folder itself.

It will download ubuntu-ltib-patch.tgz

9) Patch the m4 package. Unpack m4-1.4.16.tar.gz in pkgs subdir (or in /opt/freescale/pkgs/ ) somewhere. In the file /lib/stdio.in.h find this strings:

and rewrite it with:

Save file and compress it to a new m4-1.4.16.tar.gz. Copy it back to pkgs dir. Check the new md5sum and change the md5sum in m4-1.4.16.tar.gz.md5

10) It’s time to run ./ltib

It will take a really long time to complete installation!

11) In case of ‘busybox’ error.
Go into ltib/dist/lfs/base_libs/base_libs.spec and find these lines:

Remove the last two (the lines beginning with “@ARGV” and “exit(0)” and you should be good to go.

Run ./ltib again.

12) In the configuration window:
Select platform choice [Freescale iMX reference boards]. Use the arrow key to select ‘Exit’ and hit Enter.

ltib-conf-01

Select Yes to save the configuration file.
ltib-conf-02

Under “Choose the platform type”, use the down arrow key to highlight selection option. Hit Enter to select the platform type.

ltib-conf-03

Select [imx6q] and hit Enter to return to the Selection screen.

ltib-conf-04

Choose the packages profile. Select the minimum profile (default configuration). This profile installs only the core packages and does not
support graphical interface. If you need to change the profile later, issue the command ./ltib -m selectype in .

ltib-conf-05

ltib-conf-06

Select Exit and save the configuration. This brings you to the main LTIB configuration screen.

ltib-conf-07

Scroll down with the arrow key to choose the board for u-boot. Hit Enter to select the board for u-boot

ltib-conf-08

Select [mx6q_sabresd] and hit Enter.

ltib-conf-09

Select ‘Exit’ and save the configuration.

ltib-conf-10

At this point the Ltib enviroment is built.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">