freescale iMX6S cross-build environment setup

main reference:

https://www.element14.com/community/community/designcenter/single-board-computers/sabrelite/blog/2014/04/17/using-ltib-to-build-programs-for-sabre-lite-imx6


  1. download LTIB source that target the SABRE Lite "L3.0.35_4.1.0_130816_source.tar.gz" from freescale official site

  2. unzip it open the folder you can see "install" script, un "./install" and accept EULA.

  3. download some additional package from main reference an unzip to "/opt/freescale/pkgs"

  4. cd "/opt/freescale/ltib" and run "./ltib", and you will find many errors one by one, and you have to solve all errors until ./ltib runs successfully.

    4.1 error: /usr/bin/cmake: not found

          solution: sudo apt-get install cmake

    4.2 error: couldn't find package zlib-devel

          solution: sudo apt-get install zlib1g-dev

    4.3 error: couldn't find package ncurses-devel

          solution: sudo apt-get install libncurses5-dev

    4.4 error: bin/bash: texi2dvi: command not found

              solution: sudo apt-get install texinfo

        4.5 error: You don't have a working Tex binary installed, but the texi2dvi script can't proceed without it.

              solution: sudo apt-get install texlive

        4.6 error: failded to stat /home/danny/.gvfs: Permission denied

              solution: Even though flagged as an error, these messages are harmless warnings that can be safely       ignored. Before the RPM tool starts to install a package, 

it checks if there is sufficient space for it in the file system. Unfortunately it is dumb and checks all mounted file systems for space, but the permissions of the ".gvfs" directory (the mount point for the Gnome Virtual File System) do not permit this.

        4.7 error: md5sum mismatch, re-naming /opt/freescale

             solution: apt-get install mtd-utils

        4.8 error: can't get: mtd-utils-1.5.0.tar.gz

download "mtd-utils-201006.tar.bz2" from https://community.freescale.com/thread/384010

change it into "mtd-utils-1.5.0.tar.gz" which is required in 2 steps:

decompress: tar jxcf mtd-utils-201006.tar.bz2

compress: tar zcvf mtd-utils-1.5.0.tar.gz mtd-utils/

      4.9 error: lzo/lzo1x.h: No such file or directory

solution: sudo apt-get install apt-file

sudo apt-file update

sudo apt-get install liblzo2-dev

      4.10 error: uuid/uuid.h: No such file or directory

              solution: sudo apt-get install uuid-dev

5. run ./ltib you can see a new screen presented.

6  ./ltib --preconfig config/platform/imx/imx6s, and confirm, then it will take about 1 hour to install the imx6s cross build environment

7 cd /opt/freescale/ltib, run "./ltib", you will enter ltib building environment, the command line begins with "LTIB>...", and you can cd to the code and build.


转载于:https://my.oschina.net/u/1771959/blog/671801

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值