What are all the patches need it for LTIB on ubuntu 12.04

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

What are all the patches need it for LTIB on ubuntu 12.04

Jump to solution
7,998 Views
andrebella
Contributor III

I downloaded L2.6.35_11.09.01_ER_source_bundle.tar.gz and I have not be able to build it yet, it has a lot of problems, I fixed a few but I'm still getting new errors, this is under Ubuntu 12.04

Processing: gen_init_cpio

===========================

Processing: u-boot-tools

==========================

Processing: mtd-utils

=======================

Build path taken because: directory build, no prebuilt rpm,

Cowardly refusing to clobber existing directory:

/opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils

Remove this by hand if you really want to rebuild this package from scratch

Died at ./ltib line 1380.

traceback:

main::build_host_rpms:1380

  main::host_checks:1435

   main:542

Started: Tue Oct  9 09:23:43 2012

Ended:   Tue Oct  9 09:23:43 2012

Elapsed: 0 seconds

These packages failed to build:

mtd-utils

Build Failed


Labels (1)
1 Solution
1,573 Views
LeonardoSandova
Specialist I

as johnw mentioned, Yocto will be the next BSP building system supported by Freescale. Yocto is pretty easy to use, check this document to start working

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

As you have found out andrebella , LTIB is tie to certain operating systems, so right now LTIB works nicely with Ubuntu 10.04. Greater versions needs some patches, as the one you pointed out. All these OS versions have given lots of different errors, most of the errors have been posted on the community, and many of them resolved. This is of course not good. That is why we are moving soon to Yocto.

BTW, The patch you tried (patch-ltib-ubuntu12.04.sh) worked (at least for 12.04 64bits desktop version) for the BSP L3.0.35_12.09.01 but I have not tested for the latest release, L3.0.35_1.1.0. I will soon post a patch for the this version on this thread.

View solution in original post

0 Kudos
10 Replies
1,573 Views
dougschwanke
Contributor IV

I have installed L3.0.35_4.0.0_130424_source and updated it with patch-ltib-ubuntu12.04.sh

I was able to get past the configuration screens, however, the build stops during u-boot.

ltib$ ./ltib

Processing platform: Freescale iMX6x Based Boards

===================================================

using config/platform/imx/.config

Processing: fake-provides

===========================

Processing: u-boot-v2009.08

=============================

Build path taken because: directory build, no prebuilt rpm,

scbuild/scdeploy already unpacked package

Processing: u-boot-v2009.08

=============================

Build path taken because: directory build, build key set, no prebuilt rpm,

rpmbuild --dbpath /host/Users/ds/ltib/freescale/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /host/Users/ds/ltib/freescale/ltib/rpm' --define '_prefix /usr' --define '_tmppath /host/Users/ds/ltib/freescale/ltib/tmp' --define '_rpmdir /host/Users/ds/ltib/freescale/ltib/rpm/RPMS'  --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bc --short-circuit  /host/Users/ds/ltib/freescale/ltib/tmp/u-boot-v2009.08.spec

Building target platforms: arm

Building for target arm

Executing(%build): /bin/sh -e /host/Users/ds/ltib/freescale/ltib/tmp/rpm-tmp.96708

+ umask 022

+ cd /host/Users/ds/ltib/freescale/ltib/rpm/BUILD

+ cd u-boot-2009.08

+ : mx6q_sabresd_config

+ eval echo

+ echo

+ PKG_U_BOOT_PATH_PRECONFIG=

+ SRC_DIR=/host/Users/ds/ltib/freescale/ltib/rpm/BUILD/u-boot-2009.08

+ BUILD_DIR=/host/Users/ds/ltib/freescale/ltib/rpm/BUILD/u-boot-2009.08

+ [ /host/Users/ds/ltib/freescale/ltib/rpm/BUILD/u-boot-2009.08 != /host/Users/ds/ltib/freescale/ltib/rpm/BUILD/u-boot-2009.08 ]

+ cd /host/Users/ds/ltib/freescale/ltib/rpm/BUILD/u-boot-2009.08

+ [ -n  ]

+ make HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ CROSS_COMPILE=arm-none-linux-gnueabi- O=/host/Users/ds/ltib/freescale/ltib/rpm/BUILD/u-boot-2009.08 mx6q_sabresd_config

make: *** No rule to make target `mx6q_sabresd_config'.  Stop.

error: Bad exit status from /host/Users/ds/ltib/freescale/ltib/tmp/rpm-tmp.96708 (%build)

RPM build errors:

    Bad exit status from /host/Users/ds/ltib/freescale/ltib/tmp/rpm-tmp.96708 (%build)

Build time for u-boot-v2009.08: 0 seconds

Failed building u-boot-v2009.08

f_buildrpms() returned an error, exiting

traceback:

main:572

Started: Wed Jun 12 11:32:35 2013

Ended:   Wed Jun 12 11:32:36 2013

Elapsed: 1 seconds

These packages failed to build:

u-boot-v2009.08

Build Failed

Exiting on error or interrupt

ltib$


Anyone know what I can do next to debug this issue?

1,573 Views
terry_lv
NXP Employee
NXP Employee

Remove /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils and then you can try the build again.

We hasn't tried Ltib on latest Ubuntu. The newest version we tried is Ubuntu 10.04.

But I think ltib should be able to run in Ubuntu 12.04.

Most time, the reason of build fail is version incompatible of host tools.

Then we can consider add installation of host tools in ltib to replace the use of build server's tools by modify config/platform/host/preconfig or update packages in ltib.


0 Kudos
1,573 Views
RodneyFulk
Contributor III

Search on here for the message entitled "Ubuntu 11.10 64 bit host Installation"

I just installed the LTIB package on 12.04.1 with these instructions without issue. I would not use it with 12.10 at this time.

I was able to compile just fine.

Using VMPlayer 9.0.

Not sure how to write it on an SD card yet but atleast got it to compile fine under 12.04.1.

Hoping to put both my Linux and Android development on the same VM.

Rodney

0 Kudos
1,573 Views
andrebella
Contributor III

John I'm going through the same, I post some of the fix on this forum, but also there is patch here patch-ltib-ubuntu12.04.sh , but there still more errors to it , it would not compile.

is only 6 months left before ubuntu 10.04 becomes obsolete,  and that would be the end of LTIB cause it can not work with out ubuntu 10.04 :smileysad:

0 Kudos
1,573 Views
johnw
Contributor III

I've seen this patch and it is incomplete for Ubuntu12.04 as far as I can tell.  I've run into problems with zlib at the beginning and beyond the wget problem there is one with elftosb that I was working on this morning before I got sidetracked.  I'm trying to create .spec files and patches to fix these issues and am modifying the patch as originally submitted.

IMO, LTIB is becoming garbage quite quickly with all of these very basic system incompatibilities that have to be managed from host to host revision.  A better solution would be to move completely to OpenEmbedded and Yocto in the way that the guys on the PPC side of Freescale have done.

0 Kudos
1,573 Views
andrebella
Contributor III

I'm stuck at mtd-utils, still.

I tried OpenEmbedded I though it was a bit complicated to use I think Yocto is in the same family with OpenEmbedded, I prefer buildroot better, but OpenEmbedded has 3 times more applications than buildroot.

But who's doing work with OpenEmbedded? would it work with the IMX53? if it does I will look into  :smileyhappy:

I'm trying to get gstreamer running with IMX53 I tried with buildroot but it would not read the camera sensor.

0 Kudos
1,573 Views
johnw
Contributor III

I think that for i.MX6, the basic delivered package from Freescale is going to LTIB. They are starting to play with Yocto. BTW – Yocto is related to and makes use of OE.

Agreed – Buildroot is much, much, much simpler and easier to use. But, none of the major processor vendors are using it. They are moving en-masse to Yocto. Because, as you found out, OE has a ton of applications already available. The big thing you have to get over with OE is the learning curve on how to use it. Once you do that, you’ll see that is very powerful.

0 Kudos
1,574 Views
LeonardoSandova
Specialist I

as johnw mentioned, Yocto will be the next BSP building system supported by Freescale. Yocto is pretty easy to use, check this document to start working

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

As you have found out andrebella , LTIB is tie to certain operating systems, so right now LTIB works nicely with Ubuntu 10.04. Greater versions needs some patches, as the one you pointed out. All these OS versions have given lots of different errors, most of the errors have been posted on the community, and many of them resolved. This is of course not good. That is why we are moving soon to Yocto.

BTW, The patch you tried (patch-ltib-ubuntu12.04.sh) worked (at least for 12.04 64bits desktop version) for the BSP L3.0.35_12.09.01 but I have not tested for the latest release, L3.0.35_1.1.0. I will soon post a patch for the this version on this thread.

0 Kudos
1,573 Views
terry_lv
NXP Employee
NXP Employee

Now ltib is tested ok on Ubuntu 9.04, Ubuntu 9.10, Ubuntu 10.04.

Ubuntu 11.04 is not supported yet.

0 Kudos
1,573 Views
johnw
Contributor III

Yep - and 10.04 is over two years old and the next Long Term Support version is 12.04.  Most people are now using that because Canonical/Ubuntu have prompted folks to upgrade.

I'm going through the process of putting LTIB on 12.04 and will post my notes here.

0 Kudos