tlib编译

本来想用mfgtool烧录内核的,结果一直停在jumping to OS image 。然后论坛的人说需要编译自己的固件,然后我又去编译ltib。然后我就蛋疼了。。。

ubuntu版本是13.10,拷贝资源包里的ltib解压,运行 ./ltib -m config,一会就死掉了,查看日志,什么找不到rpm-4.0.4.tar.gz,上网找了许久,也没见有人说出个所以然来,最后还是在论坛里面看到说可能需要一些库,然后照着官方的文档安装好库,终于ltib开始正常编译了,心酸啦。。。


1、在命令行窗口输入命令: sudo /usr/sbin/visudo
在User privilege specification
root ALL=(ALL) ALL 后面加入(强调一下 ubuntu 是 usrname)
ubuntu ALL = NOPASSWD: /usr/bin/rpm, /opt/freescale/ltib/usr/bin/rpm

ltib编译不能是root权限


2、#!/bin/bash
# Install packages needed by LTIB首先要先安装aptitude sudo apt-get install aptitude
sudo aptitude -y install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
sudo aptitude -y install libdbus-glib-1 -dev liborbit2-dev intltool
sudo aptitude -y install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
sudo aptitude -y install uuid-dev liblzo2-dev
sudo aptitude -y install tcl dpkg
sudo aptitude -y install asciidoc texlive-latex-base dblatex xutils-dev
sudo apt-get install texinfo
# Packages required for 64-bit Ubuntu
# Do "uname -a" and see if the word "x86_64" shows up.
if uname -a|grep -sq 'x86_64'; then
sudo aptitude -y install ia32-libs libc6-dev-i386 lib32z1
# The following recommended for Linux development.
# They are not required by LTIB.
sudo aptitude -y install gparted emacs22-nox openssh-server
sudo aptitude -y install nfs-common nfs-kernel-server lintian
sudo aptitude -y install git-core git-doc git-email git-gui gitk
sudo aptitude -y install diffstat indent tofrodos fakeroot doxygen uboot-mkimage
sudo aptitude -y install sendmail mailutils meld atftpd sharutils
sudo aptitude -y install manpages-dev manpages-posix manpages-posix-dev linux-doc
sudo aptitude -y install vnc4server xvnc4viewer

安装ltib需要的库,红色部分是必须的,下面是linux的


3、安装并编译
1移走之前所有安装在/opt/freescale/pkgs下的包
2) 安装 LTIB package,例如在/home/ubuntu/Desktop/imx6下(这是
L3.0.35_4.1.0_130816_source.tar.gz放置的目录
tar zxvf L3.0.35_4.1.0_130816_source.tar.gz ----------解压
进到目录 L3.0.35_4.1.0_130816_source 下执行. /install 命令 ------------安装
然后会出现如下:
You are about to install the LTIB (GNU/Linux Target Image Builder)
Before installing LTIB, you must read and accept the EULA
(End User License Agreement) which will be presented next.
Do you want to continue ? Y|n
Y
Hit enter to continue:
FREESCALE SEMICONDUCTOR SOFTWARE LICENSE AGREEMENT
………………..
………………..
………………..
I have read and accept the EULA (yes|no):
yes
The LTIB files are extracted from a tar file which includes the
prefix ltib. After installation you will find LTIB in:
/home/ubuntu/Desktop/imx6/L3.0.35_4.1.0_130816_source/ltib
Where do you want to install LTIB ? (/home/ubuntu/Desktop/imx6/L3.0.35_4.1.0_130816_source)
/home/ubuntu/Desktop/ltib ------------------输入你要安装的LTIB 位置,然后回车
………………..
………………..
………………..
Copying packages to /home/ubuntu/Desktop/ltib/ltib/pkgs
Installation complete, your ltib installation has been placed in
/home/ubuntu/Desktop/ltib/ltib, to complete the installation:
cd /home/ubuntu/Desktop/ltib/ltib
./ltib
接着输入命令cd /home/ubuntu/Desktop/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/ubuntu/Desktop/ltib/ltib/host_config.log



没有错误的话,会出现选择窗口, Freescale i.MX reference boards 退出并保存。
然后出现 i.MX 平台的选择:


成功编译以后, kernel image U-Boot images 就在rootfs/boot/下面了。





评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值