Main Menu

Menu

Friday 25 November 2011

Install LTIB in Ubuntu 11.04 x64 for i.MX53 QSB

So, general guidelines for installing Linux Target Image Builder in Ubuntu 11.04 x64 for the Freescale i.MX53 Quick Start Board.
1. Go to :
http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX53QSB&fpsp=1&tab=Design_Tools_Tab
Under the Board Support Packages (BPS) download the latest "L2..._ER_source".
2. After downloading the package, un-tar it (decompress it).
3. Now you have to be sure that all the prerequisite apps and libraries are set-up in the host system (currently Ubuntu 11.04 x64).
You can find a lot of documentation for that but it will be better to follow the instructions in the "ltib_build_host_setup.pdf" from Freescale.
You can use the  linux command
>dpkg -l <name-of-package>
to check if the appropriate packages are already install or else the synaptic package manager that the Ubuntu provide.
4. After being sure that the host is ready go back in the un-compressed folder and run:
>./install
Execute this command as a simple user (no root).
Set the installation folder manually (you will be asked by the program).
We will name it <ltib_installation_folder> from now on.
5. After completion do not execute ./ltib in the installation folder.

But make the changes below first.

a)Go to <ltib_installation_folder>/ltib/bin
and replace the fields for "glibc-devel" and "zlib".
For the "glibc-devel" ,replace the existing with this:
    'glibc-devel'    => sub { -f '/usr/lib/libm.so'
                           || -f '/usr/lib64/libz.so'
                           || -f '/usr/lib/i386-linux-gnu/libm.so'
                           || -f '/usr/lib/x86_64-linux-gnu/libm.so'
                       },
and for the "zlib":
    zlib         => sub { my @f = (glob('/usr/lib/libz.so*'),
                                   glob('/usr/lib64/libz.so*'),
                                   glob('/lib/libz.so*'),
                                   glob('/lib/i386-linux-gnu/libz.so*'),
                                   glob('/usr/lib/x86_64-linux-gnu/libz.so*'),
                                   glob('/lib/x86_64-linux-gnu/libz.so*'));
                                   @f > 1 ? 1 : 0 },

b)Go to cd <ltib_installation_folder>/dist/lfs-5.1/mtd-utils
and execute :
cd <ltib_installation_folder>/dist/lfs-5.1/mtd-utils
mv mtd-utils.spec mtd-utils-201006.spec
ln -s mtd-utils-20060302.spec mtd-utils.spec
cd ..
cd ..
cd ..

and now you can execute ./ltib in the installation folder.
Which normally will open the LTIB configuration window.
And that was all !!!

No comments:

Post a Comment