很久没有写博客了,关键是最近比较烦。在做博创杯的比赛,由于参考资料不多,而且全是英文的(万恶的英文啊),整的一开始方向错了。
浪费了很多时间,所以很长时间没有成果。不过现在还好,原来我们是只无头的苍蝇,现在总算有头了,嘿嘿。
说说最近的收获吧。不得不提,收获很多。
初做嵌入式,我们总会遇到第一步,搭建交叉编译环境。无非就是现在一个交叉编译器,arm-linux-gcc-。。。。。等等之类的,然后在主机
上添加环境变量,之后测试一下编译一下测试程序,好使了,便一切OK。
可是在一个较大的工程中呢,我们总会想到很多的问题。比如第一个兼容性,第二个软件的升级。
由于linux开源世界太多软件版本不断升级,相互兼容极差,不同的软件由不同的志愿者维护,互相根本没有考虑到兼容性,这导致在嵌入式
linux上开发的工程师的噩梦。在这种情况下,少数高人干起整合这些乱七八糟开源软件的事情,目标当然是尽量提供一个方便使用的软件包,避
免那些琐碎繁杂的配置安装工作。这样便产生了两个比较突出的开发包。LTIB(Linux Target Image Builder)和ELDK(Embedded Linux Development Kit)
我们先来说一下关于LTIB
1、LTIB的介绍
2、LTIB的安装方法
3、LTIB的使用方法
一、LTIB的介绍
关于LTIB的介绍我想还是大家查看官网上的介绍比较好,首先感谢飞斯尔卡公司
http://savannah.nongnu.org/projects/ltib/
his project is not part of the GNU Project.
The LTIB (Linux Target Image Builder) project is a simple tool that can be used to develop and deploy BSPs (Board Support Packages) for various target platforms. Using this tool a user will be able to develop a GNU/Linux image for their target platform. The following features are supported:
Main features
- Open source (GPL)
- Runs on most popular Linux host distributions (x86 and some PPC)
- Command line interface, with curses configuration screens (using LKC)
- Support for multiple target architectures (PPC, ARM, Coldfire)
- Target platforms selectable from a menu (CVS version)
- More than 200 userspace packages selectable
- Common root filesystem package set across architectures
- Supports building of bootloaders and kernel images
- All package building is done as non-root user
- Configuration/selection of individual packages from a menu
- Auto package dependency resolution
- Auto file conflict resolution by package order build scaling
- Auto re-install/de-install of packages by changes in dependency tree
- Toolchain selectable at configuration time
- Configuration of the Linux kernel using it's native config language
- Kernel selection can easilty be changed from choicelist during configuration
- Configuration of target system from host (IP address, services etc)
- Supports preconfigs which allow developers to store different system configurations (e.g. toolchain selection, kernel selection, package selection etc).
- Supports profiles this allows just the userspace package set to be re-configured. This is excellent for autobuilding or exchanging the non platform specific configuration between targets.
- All packages are built as rpms and managed using rpm
- Target image files managed using a private rpm database per LTIB instance on the host
- Supports single package developer mode using prep/scbuild/scdeploy analogs
- Provides a means of source capture (patches) and auto update of spec files
- Shell mode available to run all commands in ltib's spec environment
- Incremental deployment (over NFS) supported
- RAMDISK and JFFS2 Flash image creation supported
- Read-only root filesystem supported.
- LTIB is meta-data only, all sources are pulled using http and locally cached in a common area per-host.
- Remote source pulls support proxys
- Support for glibc and uclibc
- All meta-data formats are open source (rpm, Linux Kernel Config)
- Modular BSP architecture (easy to add new BSPs)
- Support batch mode and --continue for auto-builders
- Support --dry to preview ltib's actions
- Provides --dltest to check for availability of sources/patches
- Provides listpkgs mode to show all available packages, whether selected and their individual licenses.
- Provides a release mode, this encapsulates an LTIB project into an iso images that will not require network access.
Registration Date: Fri Aug 12 11:21:10 2005
License: GNU General Public License v2 or later
Development Status: 4 - Beta
部署的BSP(板级支持包)。使用这个工具的用户将能够开发出了他们的目标平台的GNU / Linux的镜像。支持以下功能:。。。。。。。。
2.ltib工具的安装
ltib工具的安装方法有两种
引用**************************************************************************************
1:
约定.0
约定.1
约定.2