Please publish LTIB configuration that works

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

Please publish LTIB configuration that works

1,213 Views
TxPomeroy
Contributor I

I have spent way too many hours trying to find a Linux host and LTIB distro from Freescale that works together.  I have tried Ubuntu 11.04, 10.04, 9.04, 8.04 and Fedora 15.  I got the farthest wth Fedora 15 but can't get past the error I posted a couple of days ago (mtd-utils fails to build due to missing lzo/lzo1g.h file).

 

I have tried L2.6.35_1.11.01_ER_source_bundle.tar.gz (for iMX51) and L2.6.35_11.01.00_ER_source_bundle.tar.gz (for iMX53 on SABRE reference design tablet).  They all install just fine but LTIB never finishes the initial one-time build process.

 

Can someone please detail what Linux host and Freescale distro worked for them.

Labels (1)
Tags (2)
0 Kudos
4 Replies

741 Views
admin
Specialist II

hi,

 

these are the steps i followed for ubuntu 11.04. as i was getting a mtd-utils issue, i opted for the Curtis Ward solution of using the mtd-utils that comes on pkgs. please note this was tested on a virtual machine "playing" ubuntu 11.04, 32 bits version (ubuntu-11.04-desktop-i386.iso).

 

on ubuntu 11.04:

# update ubuntu
# download L2.6.35_11.01.00_ER_source_bundle.tar.gz

sudo tar -xvf L2.6.35_11.01.00_ER_source_bundle.tar.gz
sudo tar -xvf L2.6.35_11.01.00_ER_source.tar.gz

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 tcl dpkg

# select /home/user as the output folder
./install

cd /home/user/ltib
sudo chmod 777 /opt

# add entry "<your user name> ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm"
sudo /usr/sbin/visudo

# modify Ltibutils.pm line 563
# 'glibc-devel'    => sub { -f '/usr/lib/libm.so' || -f '/usr/lib64/libz.so' || -f '/usr/lib/i386-linux-gnu/libm.so'},
# add in line 584
# glob('/usr/lib/i386-linux-gnu/libz.so*'),
# glob('/lib/i386-linux-gnu/libz.so*'),
sudo gedit bin/Ltibutils.pm

# using old mtd-utils version...
# solution from Curtis Wald
cd dist/lfs-5.1/mtd-utils
mv mtd-utils.spec mtd-utils-201006.spec
ln -s mtd-utils-20060302.spec mtd-utils.spec
cd ../../..

./ltib --configure


erwin

0 Kudos

741 Views
mdc
Contributor V

In general I recommend Ubuntu, just because that's what we primarily test on. At this point in time I recommend Ubuntu 10.10, although 10.04 and 9.04 should be fine as well. I haven't been able to get 11.04 working yet. I typically also keep the packages on my system up to date via the update manager, but don't think this should really have an impact on ltib.

 

In the docs portion of our BSP releases you'll find a file called "ltib_build_host_setup.pdf". Follow the instructions contained in this file. It should list the latest packages you need for that BSP release. Below is the relevant portion of a script from this document from the 11.03 release.

 

As noted in the other thread, likely that you're problem with mtd-utils is caused because you don't have liblzo2-dev or it's Fedora equivalent installed.

 

#!/bin/bash

# Install packages needed by LTIB
sudo aptitude -y install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
sudo aptitude -y install libdbus-glib-1-dev liborbit2-dev intltool
sudo aptitude -y install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
sudo aptitude -y install uuid-dev liblzo2-dev
sudo aptitude -y install tcl dpkg

# Packages required for 64-bit Ubuntu
# Do "uname -a" and see if the word "x86_64" shows up.
if uname -a|grep -sq 'x86_64'; then
sudo aptitude -y install ia32-libs libc6-dev-i386 lib32z1
fi

0 Kudos

741 Views
EricNelson
Senior Contributor II

Hi Bob,

 

I put together some notes on my experiences with LTIB and an Ubuntu host in a handful of blog posts:

      http://boundarydevices.com/blogs/tag/ltib

 

These are each a bit dated:

      L2.6.31_10.04.00 - http://boundarydevices.com/blogs/ltib-quick-start

      L2.6.31_10.07.11 - http://boundarydevices.com/blogs/revisiting-ltib-on-i-mx5x-this-time-with-java

but the same roadblocks seem to apply on the 11.01 and 11.03 releases.

 

I also put together a VirtualBox image for a customer that I can make available to you. if you shoot me a note through our contact page (http://boundarydevices.com/contact_us.php).

 

Eric

0 Kudos

741 Views
TxPomeroy
Contributor I

typo L2.6.35_1.11.01_ER_source_bundle.tar.gz (for iMX51) should be

L2.6.35_10.11.01_ER_source_bundle.tar.gz (for iMX51)

Sorry for the omission.

0 Kudos