Thursday, 29 March 2012

LTIB for UBUNTU 11.10 & error faced

1.) LTIB - How to setup LTib and compile packages in Ubuntu 11.1
----------------------------------------------------------------

Intially update and upgrade your host


I.) What is LTIB
------------------
The LTIB (Linux Target Image Builder) project is a tool that can be used to develop and deploy BSPs (Board Support Packages) for a number of embedded target platforms including PowerPC, ARM, Coldfire.

II.) LTIB used:
---------------
Freescale provided L2.6.35_11.05.01_ER_source_bundle.tar.gz bundle. It can be donwloaded freely from the below path:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX53SABRETAB&fpsp=1&tab=Design_Tools_Tab

III.) Ltib build host setup:
---------------------------
1. Untar the package L2.6.35_11.05.01_ER_source_bundle.tar.gz.
2. Goto L2.6.35_11.05.01_ER_docs dir.
3. Downlaod and install required packages in host to support ltib build setup as mentioned in ltib_build_host_setup.pdf doc.
4. Make sure all the required packages are available on host system.
Or else you can download a script file and run it from here
   http://www.mediafire.com/?qccsozgn2bi1j4s
   ./reqPackages.sh or sh reqPackages.sh

IV.) Installing ltib :
---------------------------
1. Go to "Linux 1105 patchs" folder extracted from L2.6.35_11.05.01_ER_source_bundle.tar.gz.
2. To Apply patches reside in "Linux 1105 patchs" folder (go through Readme file in the same folder)
3. Go to L2.6.35_11.05.01_ER_source folder.
4. Run 'install' script.
$ ./install
5. Follow the procedure given by 'install' script and give the appropriate path to build LTIB.
6. Goto ltib build path, as given during the 'install' script.
7. Run ./ltib (when you are running this command for 1st time it prompts for platform etc..)
To reconfigure ltib use ./ltib -m config 
   Please refer to Section VII if faced any difficulties
Select your required platform, boot loader, kernel and target file systems when prompted.
8. Done!! Enjoy with your own ltib generated images!

V.) Boot loader binaries:
---------------------------
On successfule installation,
1. u-boot bin can be found at, <ltib-build-path>/rootfs/boot/u-boot.bin

VI.) Linux kernel source:
---------------------------
On successfull installation,
1. Kernel source can be found at, <ltib-build-path>/rpm/BUILD/linux-2.6.35.3
2. uImage/zImage can be found at, <ltib-build-path>/rpm/BUILD/linux-2.6.35.3/arch/arm/boot/

VII.) Issues faced :
---------------------
Following are the issues faced by which Ltib failed to build
if you are facing any of these errors please download this tar file from here
http://www.mediafire.com/?754x06o7gr6m466
please go through the Readme file inside the folder


1.) following packages are not installed
   Package        Minimum ver    Installed info
   -------                -----------             ---------------
   glibc-devel            0              not installed
   zlib                        0              not installed
   --->> build failed

 Resolve this by running : ./glibzlib.sh <give your ltib path>


2.) rpmdb: --force-debian: unknown option
   ......
   ----->>> build failed
  
  Resolve this by running : ./rpmdb.sh <give your ltib path>


3.)  These packages failed to build:
      mtd-utils
      Build failed

  Resolve this by running : ./mtd-utils.sh <give your ltib path>


4.) These packages failed to build:
      lkc
      Build failed

  Resolve this by running : ./lkc.sh <give your ltib path>


5.) These packages failed to build:
      sparse
      Build failed

  Resolve this by running : ./sparse.sh <give your ltib path>


 6.) These packages failed to build:
      mux_server
      Build failed

  Resolve this by running : ./mux_server.sh <give your ltib path>



7.)  These packages failed to build:
      e2fsprogs
      Build failed

  Resolve this by running : ./e2fsprogs.sh <give your ltib path>

8.)  These packages failed to build:
      fontconfig
      Build failed

  Resolve this by running : ./fontconfig.sh <give your ltib path>


9.)  These packages failed to build:
      libxcb
      Build failed

  Resolve this by running : ./libxcb.sh <give your ltib path>

10.)  These packages failed to build:
      imx-lib
      Build failed

   Resolve this by running : ./imx-lib <give your ltib path>


11.) These Packages Failed to builD:
       elftosb
       Build Failed.

    Resolve this by running : ./elftosb <give your ltib path>


23 comments:

  1. Thanks, I'm going to give this a try now.

    Did you use 32 or 64bit Ubuntu? I don't know if it even matters but I want to be sure to use the same installation as you have.

    ReplyDelete
  2. I Tried it on 32-bit but it works well for 64bit too.

    ReplyDelete
  3. So far I've been applying your patches and it has worked but I've got the following failure:

    These packages failed to build:
    python

    Build Failed

    Exiting on error or interrupt


    Did you encounter this one?

    ReplyDelete
  4. No,I didn't selected Python package.

    ReplyDelete
  5. I am having wget package failing.
    Any ideas, thanks?

    Ad.
    -----------------

    gcc -O2 -Wall -Wno-implicit -o wget cmpt.o connect.o convert.o cookies.o ftp.o ftp-basic.o ftp-ls.o ftp-opie.o hash.o headers.o host.o html-parse.o html-url.o http.o init.o log.o main.o gen-md5.o netrc.o progress.o rbuf.o recur.o res.o retr.o safe-ctype.o snprintf.o gen_sslfunc.o url.o utils.o version.o -lssl -lcrypto -ldl
    gen_sslfunc.o: In function `init_ssl':
    gen_sslfunc.c:(.text+0x351): undefined reference to `SSLv2_client_method'
    collect2: ld returned 1 exit status
    make[1]: *** [wget] Error 1
    make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/wget-1.9.1/src'
    make: *** [src] Error 2
    error: Bad exit status from /home/me/imx53/11.09.01/ltib/tmp/rpm-tmp.33663 (%build)


    RPM build errors:
    Bad exit status from /home/me/imx53/11.09.01/ltib/tmp/rpm-tmp.33663 (%build)
    Build time for wget: 21 seconds

    Failed building wget
    Died at ./ltib line 1380.
    traceback:
    main::build_host_rpms:1380
    main::host_checks:1435
    main:542


    Started: Mon May 21 00:16:07 2012
    Ended: Mon May 21 00:16:28 2012
    Elapsed: 21 seconds

    These packages failed to build:
    wget

    Build Failed

    ReplyDelete
    Replies
    1. Hi Ad,
      I Included wget, but no error for me.

      Delete
    2. wget is also affecting my system: an AMD-64, Windows 7, VirtualBox 4.1.18 (32-bit mode), Ubuntu 12.04, and LTIB L2.6.35_10.12.01.

      Delete
  6. @The D: The python package issue can be solved by going to ltib/rpm/BUILD/Python-?.?.? and then executing "make clean".

    Unfortunately the issue with libxcb won't be solved with apt-get install xsltproc alone. I get another error then which i can't solve - anyone has got passed that?

    Can't locate object method "path" via package "Autom4te::Request" at //opt/freescale/ltib/usr/bin/autom4te line 81.
    autoheader: //opt/freescale/ltib/usr/bin/autom4te failed with exit status: 1
    make[1]: *** [config.h.in] Error 1

    Regards

    ReplyDelete
  7. Thanks a lot.
    It works fine for me

    Ubuntu 11.10 32bit x86

    ReplyDelete
  8. could you please share "L2.6.35_11.05.01_ER_source_bundle.tar.gz bundle" ?
    I am not able to ifnd it on the link you provided.

    ReplyDelete
    Replies
    1. actually I am trying to build ltib for imx6 on ubuntu 10.04/12.04 but I can't seem to find the download for ltib. could you please help ?

      Delete
    2. This comment has been removed by the author.

      Delete
    3. Hey sudan,

      ltib is located in the given Download by freescale. Take a look here:
      http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX6SABREBRD&fpsp=1&tab=Design_Tools_Tab

      Go to "Operating System Software-Board Support Packages" and take "L3.0.35_1.1.0_DEMO_IMAGE"
      There are all needed files.

      Delete
  9. Hi VJ..
    I get this error while running "./ltib"
    ---------------------------------------------------
    channayya@channayya-system:~/LTIB/ltib$ ./ltib

    Installing host support packages.

    This only needs to be done once per host, but may take up to
    an hour to complete ...

    If an error occurs, a log file with the full output may be found in:
    /home/channayya/LTIB/ltib/host_config.log

    Exiting on error or interrupt
    Please see >> /home/channayya/LTIB/ltib/host_config.log for details
    ---------------------------------------------------------------------
    and when i see /home/channayya/LTIB/ltib/host_config.log i see this..

    channayya@channayya-system:~/LTIB/ltib$ cat host_config.log
    rpmdb: --force-debian: unknown option
    Died at ./ltib line 2340.
    traceback:
    main::setup_rpmdb:2340
    main::check_rpm_setup:2403
    main::host_checks:1423
    main:542


    Started: Fri Dec 14 15:07:17 2012
    Ended: Fri Dec 14 15:07:21 2012
    Elapsed: 4 seconds


    Build Failed

    ------------------------------------------------------------

    any thoughts ??? Thanks :)



    ReplyDelete
    Replies
    1. Hi Winston,

      Download the package and run the 2nd step it may fix your issue.

      Regards,
      VJ

      Delete
    2. Hi Winston,
      I am also getting same error.
      rpmdb: --force-debian: unknown option
      Died at ./ltib line 2340.
      traceback:
      main::setup_rpmdb:2340
      main::check_rpm_setup:2403
      main::host_checks:1423
      main:542

      Did you got the solution to overcome this error. Kindly share the information how to overcome this issue.
      Thanks in advance.

      Regards
      rajesh g

      Delete
  10. Hi VJ,
    The mtd-utils spec file is present in the directory
    dist/lfs-5.1/mtd-utils/mtd-utils.spec

    However when I run ltib -m config
    I still get errors in the log as
    can't find spec file for mtd-utils
    traceback:
    main::build_rpm:744
    main::f_buildrpms:980
    main::build_host_rpms:1380
    main::host_checks:1435
    main:542

    ReplyDelete
  11. I have UBUNTU 11.10 running on a VM ware VM

    ReplyDelete
  12. Hi VJ,
    Thank you yar, it works in my system:)

    ReplyDelete
  13. Hi VJ,
    While running ./ltib -m config i m getting the following error,
    Installing host support packages.

    This only needs to be done once per host, but may take up to
    an hour to complete ...

    If an error occurs, a log file with the full output may be found in:
    /home/vishva/Desktop/L3.0.35_4.0.0_130424_source/n/ltib/host_config.log

    Exiting on error or interrupt
    Please see >> /home/vishva/Desktop/L3.0.35_4.0.0_130424_source/n/ltib/host_config.log for details
    vishva@ubuntu:~/Desktop/L3.0.35_4.0.0_130424_source/n/ltib$ cat host_config.log

    Processing platform: Host support packages
    ============================================
    using /home/vishva/Desktop/L3.0.35_4.0.0_130424_source/n/ltib/config/platform/host/ltib.preconfig

    Processing: fake-provides
    ===========================

    Processing: mkspooflinks
    ==========================

    Processing: distcc
    ====================

    Processing: ccache
    ====================

    Processing: m4
    ================

    Processing: bison
    ===================

    Processing: flex
    ==================
    Build path taken because: directory build, no prebuilt rpm,

    Cowardly refusing to clobber existing directory:
    /opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37
    Remove this by hand if you really want to rebuild this package from scratch

    Died at ./ltib line 1392.
    traceback:
    main::build_host_rpms:1392
    main::host_checks:1447
    main:554

    These packages failed to build:
    flex

    Build Failed

    Any thoughts y?? i tried to remove flex directory as mentioned in log file, still the same problem...

    ReplyDelete
  14. Hi VJ,
    While running ./ltib -m config i m getting the following error,

    collect2: ld returned 1 exit status
    make: *** [sign] Error 1
    error: Bad exit status from /home/rtpl/ltib/ltib-e500mc-20110415/tmp/rpm-tmp.21623 (%build)


    RPM build errors:
    Bad exit status from /home/rtpl/ltib/ltib-e500mc-20110415/tmp/rpm-tmp.21623 (%build)
    Build time for cst: 0 seconds

    Failed building cst
    Died at ./ltib line 1380.
    traceback:
    main::build_host_rpms:1380
    main::host_checks:1435
    main:542


    Started: Tue Jul 2 14:09:01 2013
    Ended: Tue Jul 2 14:09:01 2013
    Elapsed: 0 seconds

    These packages failed to build:
    cst

    Build Failed


    ReplyDelete
  15. Hi VJ,
    I met build issue as below,
    =====================
    util.c:(.text+0xa6c): undefined reference to `waddch'
    util.c:(.text+0xa8b): undefined reference to `wnoutrefresh'
    collect2: ld returned 1 exit status
    make: *** [mconf] Error 1
    error: Bad exit status from /home/user00/HM_LTIB/ltib/ltib/tmp/rpm-tmp.16910 (%build)


    RPM build errors:
    Bad exit status from /home/user00/HM_LTIB/ltib/ltib/tmp/rpm-tmp.16910 (%build)
    Build time for lkc: 2 seconds

    Failed building lkc
    Died at ./ltib line 1380.
    traceback:
    main::build_host_rpms:1380
    main::host_checks:1435
    main:542
    ==============================
    ubuntu : 11.10
    SDK version : L2.6.31_09.12.01_SDK_source.tar.gz

    And i already copy rpmdb.sh file to my path(\home\user00\HM_LTIB\ltib\ltib\)
    please help me to resolve this issue.
    Thanks

    ReplyDelete
  16. Hello,
    I am trying to build LTIB for the BSP "MPC8360EA-MDS-PB" board in a PC with the distribution ubuntu 8.10. I solved all the above issues while installing LTIB, but still LTIB building is failed without errors and log is as follows..

    rnd@rnd2:~/Desktop/8360/ltib-mpc8360epb-20081112$
    rnd@rnd2:~/Desktop/8360/ltib-mpc8360epb-20081112$ tail -f host_config.log
    main:542

    Started: Mon Apr 24 12:28:24 2017
    Ended: Mon Apr 24 12:28:25 2017
    Elapsed: 1 seconds

    Build Failed
    I also tried in Ubuntu 14.04, 16.04 and OpenSuse 10.3 but still facing same issue.

    I already installed LTIB successfully for the BSP "MPC8323E-RDB" board in another PC with same distribution ubuntu 8.10. But, now I am facing LTIB build failure.

    Please help me in solving this issue as soon as possible.

    Thanks and Regards,
    Siva Prakash Reddy N

    ReplyDelete

Views