imx53ltib及环境配置,ltib -c mfg烧写

来源:互联网 发布:政府大数据平台的建设 编辑:程序博客网 时间:2024/05/22 03:51

sudo visudo  (CTRL + X)

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

必须在L2.6.35_11.09.01_ER_source 的上层目录运行:./L2.6.35_11.09.01_ER_source/install

再按照提示,运行./ltib,压缩源码默认安装在/opt/freescale/pkgs,必须创建此目录;

重装ltib时,出错信息如下(在host_config.log 里面):warning: waiting for transaction lockon /tmp/rpm-lucid/rpmdb/__db.000

prm数据库出现损坏导致,可能导致多数rpm软件的升级、安装或者删除都会有问题。此错误,请以root身份输入以下命令:
rm -rf  /tmp/rpm-*
rpm --rebuilddb

若要重新安装ltib,先删除/opt/freescale/pkgs目录内所有内容;

2. Install the LTIB package not as root:
tar zxf <ltib_release>.tar.gz
./<ltib_release>/install
This command installs LTIB to your directory.
3. Build LTIB:
cd <LTIB directory>
./ltib -m config

uboot编译文件准备:./ltib -m prep -p u-boot

./ltib -c 的内核配置在system type\Freescale MXC Implementations项中,去掉imx50,51,53smk等于imx53loco不相关的板子编译配置

各模块的spec文件在ltib/dist/lfs-5.1/

解压后的源码在ltib/rpm/BUILD/下

内核编译的模块列表在ltib/config/userspace/packages.lkc,该目录下还有pkg_map,每个模块的入口

mkimage -A arm -Olinux -T kernel -C none -a 0x70008000 -e 0x70008000 –n "Linux-<kernel_version>"-d zImage uImage

>cd your_rootfs_dir

>tar -cjf rootfs.tar.bz2 *

mfgtool烧写系统

在目录mfgtool\Profiles\MX53 Linux Update\OS Firmware中,u-boot-mx53-loco.bin anduImage是工具自己使用的,

在该目录下一层OS Firmware\files中存放的才是烧写系统用的,具体的烧写过程:sd卡弹出,上电,连接usb线,按power开关打开mfgtool(scan device:freescale imx53 usb bulkio device),插入sd卡,烧写

烧写过程文件:OS Firmware\ucl.xml,上层目录有plaer.ini,修改为:UCL_INSTALL_SECTION=MX53LOCO-SD


Update to the latest packages
Open up System -> Administration -> Update Manager
Click on Settings
Open the Updates Tab
Set 'Release upgrade' to 'Never'. That makes the option to upgrade to Karmic go away.
Close the settings dialog box.
Click on 'Check' to check for upgraded packages


Install host packages needed by LTIB

#!/bin/bash
# Install packages needed by LTIB
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
# 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
fi
# 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

Configure tftp server
After installing atftpd, configure it by editing /etc/inetd.conf and /etc/default/atftpd.
In both files, change the default export path (it is either /usr/var/tftpboot or /var/lib/tftpboot) to /
Or change the default export path to whatever directory you want to be able to download from.

Then reboot your box.
Configure nfs server
To configure nfs server, add lines to /etc/exports like this (below example exports /home and everything under it.
/home *(rw,no_root_squash)
Then restart the nfs server:
sudo /etc/init.d/nfs-kernel-server restart


Using the Pre-Built Image

1 - Unpack the file "ubuntu_start_board.bin.tar.gz" located at /home/lucid/Desktop
(Ubuntu Vmware image) right clicking on file and selecting "Extract Here".
2 - Insert a 4GB or more SD card on PC.
3 - On a terminal window, use the following command to write the image to SD card:
$ sudo dd if=/home/lucid/Desktop/ubuntu_start_board.bin of=/dev/sdb
4 - Insert the SD card on i.MX53 Quick Start board. It will boot using VGA connector as
display output and Serial UART as debug terminal.