ltib 出错处理

ltib真是个烂东西,编译过程会报一堆错,感觉freescale出这个东西真是败家阿。


LTIB
----------------------------------------------------------------
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://download.csdn.net/detail/dragon101788/4322656
   ./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://download.csdn.net/detail/dragon101788/4322662
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>

mtd-utils spec cannot find, 这是dist/lfs-5.1/mtd-utils/mtd-utils/* 文件链接有问题,所以找不到。

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>

12) phython buidling failed

Parser/tokenizer_pgen.o: could not read symbol.....

解决办法是:进入到python 编译目录 make clean 一下,真狗血阿。。。

13) Failed building dbus-glib

make[2]: dbus-binding-tool: Command not found

解决办法:

sudo apt-get install libdbug-glib-1-dev

14) Failed buiding gtk

/bin/sh: no: command not found

解决办法:

apt-get install libghc6-gtk-dev (这个为本地安装不知道以后移植后有没有问题)

Geditdemos/Makefile

改GDK_PIXBUF_CSOURCE = no

为GDK_PIXBUF_CSOURCE = /usr/bin/gdk-pixbuf-csource

make

makeinstall

gtk编译ok

15)  undefined reference to `__fdelt_chk'

原来是sys/select.h 中包含 <bits/select2.h> 头文件,把这个头文件去掉就可以了


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值