Centos6.6 64位安装LTIB i.MX6Q BSP开发环境

《CentOS 6.3 64-bit Host Building i.MX6Q-SDB Linux L3.0.35_12.09.01.01_GA_Source》

Introduction

The SABRE Board for Smart Devices Based on the i.MX 6 Series is an evalutaion board featuring the i.MX6 Quad Core Cortex-A9 processor. Freescale ported the Linux Operating System (as of this writing version 3.0.35) and the Board Support Package (BSP) containing
the Linux Kernel, build system called LTIB, GCC compiler tools, boot loader, u-boot, and root file system is available for download, install, and build.

LTIB is a perl script and is the acroynm for Linux Target Image Builder.

This document describes setting up a CentOS 6.3 64-bit host in a virtual machine for using the BSP and running the images on i.MX6Q-SDB evaluation board.

References


Description

Reference
CentOS 6.3 LiveCD installed in a virtual machine from virtual box.
http://centos.org

CentOS-6.3-x86_64-LiveCD.iso 9953ff1cc2ef31da89a0e1f993ee6335


The BSP provides, a build system called ltib, GNU tools, U-Boot, Linux Kernel, and root file system:

(由于Freescale官方不断更新,我下载的是  L3.0.35_4.1.0_130816_source.tar.gz)


Download archive fromhttp://freescale.com/sabresdb

L3.0.35_12.09.01.0_GA_source.tar.gz5ab4198278e92e03be74ca602227afad

Virtual Box - A Virtual Machine used for creating the CentOS host. Virtual Box installed on Windows 7 64-bit Pro, then create the VM. Allocated 20 GB Hard disk and 1 MB RAM. The steps for installations are found at the virtual box web site. http://www.virtualbox.org

Document Conventions

Bold lines are Linux commands and edits run on CentOS.

The ‘$‘ indicates running the command as a regular user

The ‘#‘ indicates running the command as root user.

CentOS Host Setup

For this example a virtual machine is used, however a dedicated PC running only CentOS linux could be used.

1. Add user login to sudo‘ers file   (给普通用户添加root权限)

Login as user root and run the visudo command

# visudo

Add the following line and save the file:

user     ALL=(ALL)     ALL

2. Update the system packages:

$ sudo yum udpate

3. Install package for "ltib" operations: (安装必备的软件)

$ sudo yum install make gcc gcc-c++ kernel-devel bison libuuid-devel ncurses-devel zlib-devel lzo-devel intltool libtool tcl rpm-build
perl-ExtUtils-MakeMaker ld-linux.so.2 zlib-1.2.3-27.el6.i686

4. Update sudo‘ers file for supporting ltib rpm

$ sudo visudo

Add the following line and save the file:

user     ALL=NOPASSWD: /bin/rpm,/opt/freescale/ltib/usr/bin/rpm

在最后添加 这一行,user替换成你的username。

Install BSP

The sources are in a tar gziped archive file which is downloaded from http://freescale.com/sabresdb,
selecting the Software & Tools tab then expanding Run-time Software in the middle of the page. A free login is required for download which can be registered for by selecting the Login at the top right of the freescale.com page.

Once downloaded, verify the md5 checksum (see references above for the value).

$ mkdir ~/imx6

$ tar -zxf L3.0.35_12.09.01.01_GA_source.tar.gz -C ~/imx6

$ cd ~/imx6/*source

$ ./install

Installation complete, your ltib installation has been placed in
y/ltib, to complete the installation:

cd /ltib
./ltib

Read and accept the licensing information.

Choose a directory to install too, for this example entered .. which is the parent directory.

Build the i.MX6Q SDB

$ cd ~/imx6/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/your name/L3.0.35_4.1.0_130816_source/ltib/host_config.log

需要等一会

如果出错:

出错一:

/bin/sh: texi2dvi: command not found
make[2]: *** [flex.pdf] Error 127
make[2]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37/doc'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/flex-2.5.37'
make: *** [install] Error 2

使用:

yum whatprovides *texi2dvi
texinfo-tex-4.13a-8.el6.x86_64 : Tools for formatting Texinfo documentation files using TeX
Repo        : base
Matched from:
Filename    : /usr/bin/texi2dvi
Filename    : /usr/bin/pdftexi2dvi

texlive-texmf-doc-2007-38.el6.noarch : TeX documentation
Repo        : base
Matched from:
Filename    : /usr/share/texmf/doc/texdraw/texi2dvi
sudo yum install texinfo-tex
$ sudo rm -rf /opt/freescale/
$ ./ltib 

出错二:

Can‘t get: m4-1.4.16.tar.gz at ./ltib line 802

下载地址:http://ftp.gnu.org/gnu/m4/

下载到:/opt/freescale/pkgs

wget:http://ftp.gnu.org/gnu/m4/

mkspooflinks-3.4.tar.gz

bison-2.6.tar.gz

flex-2.5.37.tar.gz

autoconf-2.68.tar.gz

..........................

用同样方法解决。

所有文件都在这里:pkgs files

After some time (depends on how fast your host computer is) the menuing system is shown which allows you to select build configurations.

The second screen selects the development platform which is imx6q for the SDB. For this example the Min profile is chosen which is the default. Use the arrow keys to move and the enter key to select. The space bar selects/deselects an entry.

Use the right arrow key to move to <Exit> and press the enter key. The save dialog box is presented, save. The next menu is the iMX6x Base Boards which leaving all as default except for the U-boot board selection which is mx6q_sabresd for the SDB. Save and
exit.

Images

When ltib completes, the images are found in <ltib>/rootfs/boot.

Bootloader = u-boot.bin

Linux Kernel = uImage

File system = </ltib>/rootfs

from:https://community.freescale.com/docs/DOC-93865

时间: 2024-08-29 14:30:10

Centos6.6 64位安装LTIB i.MX6Q BSP开发环境的相关文章

centos6.6 64位安装tomcat 8

安装说明 操作用户:root 系统环境:centos6.6 64位 安装方式:源码安装 软件:apache-tomcat-8.0.23.tar.gz 软件下载目录:/root/opt 下载地址:http://ftp.meisei-u.ac.jp/mirror/apache/dist/tomcat/tomcat-8/v8.0.23/bin/apache-tomcat-8.0.23.tar.gz 安装前提 系统必须已经安装配置了JDK6+,如果不会安装请参考<CentOS-6.3安装配置JDK-7>

CentOS6.0(64位)安装Apache+PHP+Mysql教程,安装Magento(解决DOM,Mcrypt,GD问题)完整教程

CentOS6.0(64位)安装Apache+PHP+Mysql教程,安装Magento(解决DOM,Mcrypt,GD问题)完整教程 0 Posted by :小黑 On : 2012 年 9 月 28 日 Views: 7,586 Category:Linux方面点滴分享, 全部分享, 技术分享 Tags:centos -bash: make: command not found, centos -bash: phpize: command not found, centos iptable

centos6.6 64位安装vncserver 并开启远程桌面

centos6.6 64位安装vncserver 并开启远程桌面 vnc是一款使用广泛的服务器管理软件,可以实现图形化管理,下面简单介绍一下如何在centos6.6 64位下安装vnc. 准备工作: centos 6.6 64位操作系统 1.检查是否安装了vnc和vncserver: rpm –qtigervnc tigervnc-server 2.检查自己的资料库和包是否是最新的,命令如下: yum check-update 如果有提示更新,则执行'yum  update'进行安装,安装过程中

Win7的64位系统如何搭建安卓Android开发环境

程序开发者往往搭建安卓Android开发环境,那么现在比较主流的Win7的64位操作系统如何搭建呢?其实很简单,不需要设置任何环境变量,只需要下载两个程序包,下载的时候注意选择相应的64位程序包即可. 步骤阅读 工具/原料 ADT JDK 方法/步骤 1 第一步,下载Android开发的程序现在简称ADT,下载完就可以使用,已经不需要再另外下载eclipse了,直接到安卓官方下载即可. 步骤阅读 2 进入下载页面后,点击下载SDK的蓝色按钮. 步骤阅读 3 复选框打勾,选择64位,点击下载按钮.

ubuntu 12.04(64位)下搭建android5.0开发环境

?? 本文介绍在WIN7操作系统通过在虚拟机VMWARE和Ubuntu下搭建了一个android5.0编译环境的操作过程,包括LINUX系统安装,JDK安装,samba服务和ssh服务安装.因为要下载补丁,需要网络支持,要能够上网.电脑要64位cpu,安装好win7操作系统. 第一步: 下载ubuntu地址:LINUX有3个版本,分别是server,desktop,alternateserver版本是没有图形界面服务器安装版本.alternate适合专业个性化定制安装版本,不推荐初学者用这个版本

centos6.7 64位安装及初始化环境配置

1, 下载centos 64版本http://mirrors.sohu.com/ 2, 最简化安装 3, 有dhcp服务器的使用dhclient 自动获取ip地址 route查看网关和子网掩码 没有dhcp功能的进入网卡配置手动设置静态ip vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth1 HWADDR=00:0C:29:0C:30:A7 TYPE=Ethernet UUID=31aa0c5d-14fb-4346-9d68-fb2c

centos6.3(64位) 安装apr

安装apr来提高tomcat 的可伸缩性和性能 ? 1 cd /usr/local/ 1  下载apr 和 apr-util最新版 ? 1 2 3 wget  http://apache.fayea.com/apache-mirror//apr/apr-1.5.0.tar.gz wget  http://apache.fayea.com/apache-mirror//apr/apr-util-1.5.3.tar.gz 2  解压文件 ? 1 2 3 tar -zxvf apr-1.5.0.tar

CentOS6.5 64位安装openvpn

1.        安装"EPEL"源 # wget  http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm # rpm-Uvh epel-release-6-8.noarch.rpm 2.        安装openvpn # yuminstall openvpn easy-rsa 3.        easy-rsa配置 # mkdir-p /etc/openvpn/easy-rsa/keys

启用CentOS6.5 64位安装时自带的MySQL数据库服务器

本人在虚拟机上又安装了一台linux机器,作为MySQL数据库服务器用,在安装时选择了系统自带的MySQL服务器端,以下是启用步骤. 首先开启mysqld服务 #service mysqld start 进入/usr/bin目录#cd /usr/bin 设定mysql数据库root用户的密码#mysqladmin -u root password '123456' 进入mysql数据库管理控制台#./mysql -u root -pEnter password:Welcome to the My