MPC8313E的ltib安装

=========================安装ubuntuvmware======================

1.       安装ubuntu10.04,安装前需要设置用户名,root是保留名字,这里填写zss

2.       安装Vmware-tool工具,复制tar文件到zss目录下,解压,安装 sudo ./vmware-install pl

3.       执行/usr/bin/vmware-user start 窗口分辨率及文件复制都可以了

=========================安装Ltib==========================

1.       复制Ltib文件到ubuntu虚拟机/zss/ltib

2.       挂载ISO文件 sudo mount –o loop xxxx /zss/MPC8313

3.       安装 ./install

4.       进入安装目录执行./ltib 提示缺少package

         Package                Minimum ver   Installed info

-------                -----------   ---------------

libstdc++              0             not installed

gcc-c++                2.96          not installed

zlib-devel             0             not installed

rpm                    0             not installed

rpm-build              0             not installed

ncurses-devel          0             not installed

m4                     0             not installed

bison                  0             not installed

patch                  0             not installed

 

     安装C++编译器sudo apt-get install build-essential

     安装Bison      sudo apt-get install bison

     安装zlib-devel   sudo apt-get install zlib1g-dev

        sudo aptitude -y install  ncurses-dev  貌似aptitude更好用

     安装rpmrpm-build稍微麻烦一些,需要卸载rpm4.7版本,安装4.4版本

单独下载文件rpm_4.4.2.3-2ubuntu1_i386依赖于librpm4.4_4.4.2.3-2ubuntu1_i386依赖于libbeecrypt6_4.1.2-7_i386

5. 执行sudo visudo,在末尾添加

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

6.       执行./ltib 出错后修改文件/opt/freescale/pkgs/mtd-utils-20060302-cf-byteswap_h-1.patch

注掉 lines 46, 47 and 48 :

+//#if !defined _BYTESWAP_H && !defined _NETINET_IN_H
+//# error "Never use <bits/byteswap.h> directly; include <byteswap.h> instead."
+//#endif

Sudo gedit /opt/freescale/pkgs/mtd-utils-20060302-cf-byteswap_h-1.patch

然后删除“/opt/freescale/ltib/usr/src/rpm/BUILD/mtd”这个目录,最后再运行./ltib

Rm –rf /opt/freescale/ltib/usr/src/rpm/BUILD/mtd

你可能感兴趣的:(MPC8313E的ltib安装)