Chinaunix首页 | 论坛 | 博客
  • 博客访问: 317392
  • 博文数量: 62
  • 博客积分: 2087
  • 博客等级: 大尉
  • 技术积分: 780
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-20 21:08
文章分类

全部博文(62)

文章存档

2009年(7)

2008年(55)

我的朋友

分类: LINUX

2008-07-12 21:13:34

1.安装moblin image creator

$ git clone http://moblin.org/repos/tools/moblin-image-creator.git
$ cd moblin-image-creator
$ git pull
$ ./autogen.sh
$ sudo make install
$ sudo image-creator

依赖的软件包:
    • git-core//一种软件配置工具
    • automake//生成Makefile的工具
    • autotools-dev//used by the automake and libtool packages
    • build-essential//本软件包包含一个列表,表中列出了在编译 Debian 软件包时所必须的软件包
    • dh-make//Creates Debian source packages for PHP PEAR and PECL extensions
    • fakeroot//Gives a fake root environment
    • python//是一种面向对象的解释性的计算机程序设计语言,Python 具有脚本语言中最丰富和强大的类库,足以支持绝大多数日常应用。
    • debootstrap//Bootstrap the Debian system

错误1:
/usr/bin/git-clone: 374: curl: not found
“缺少curl这个工具,curl是一个利用URL语法在命令行方式下工作的文件传输工具
sudo apt-get install curl

错误2:./autogen.sh: 1: intltoolize: not found

apt-get install intltool


2.运行 image-creator

在Platform Project中选择CPU系列和相应操作系统,MIC(Moblin Image Creator)会通过apt-get从服务器上获取相应的Lib,tools等构造一个目标设备开发所需要的环境。
在Targets里生成具体的目标设备使用的一套默认文件系统。
通过Add Function Set添加其他软件包,如图


通过Terminal查看目标设备的文件系统,如图

创建Target Images,并启动目标设备。



3.安装目标设备显示依赖工具:xserver-xephyr
Xephyr is an X server that can be run inside another X server, much like Xnest. It is based on the kdrive X server, and as a result it supports newer extensions than Xnest, including render and composite.

Testing Applications from a Target File System
# apt-get install xserver-xephyr\
To run a virtual X session, you must enable access to your display, by running the following command from your workstation's terminal:
$ xhost +SI:localuser:root

From your target's terminal, run the following commands to configure and run Xephyr:
# export DISPLAY=:0
# /etc/init.d/dbus start
# xinit /etc/X11/xinit/xinitrc -- /usr/bin/Xephyr :2 -host-cursor -screen 1024x600x32 -dpi 96 -ac

可能会发生如下错误:
Could not init font path element /usr/share/fonts/X11/misc, removing from list!
Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list!
Could not init font path element /usr/share/fonts/X11/Type1, removing from list!
Could not init font path element /usr/share/fonts/X11/100dpi, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi, removing from list!
Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!

Fatal server error:
could not open default font 'fixed'
这是由于找不到X11字体所致,需要将/usr/share/fonts/X11的字体从Host拷贝到目标文件系统



If you have the full-mobile-stack fset installed, you can run a script that automatically installs, configures, and runs Xephyr:
# ume-xephyr-start



在MIC和xephyr的配合下,除了电源管理,无线通信,设备驱动程序,硬件加速,DSP媒体编解码等都可以
直接在开发主机上直接编写,编译,测试一次性完成,因为主机和目标设备都是基于X86指令集的,因此不
需要交叉编译和模拟,(^-^)。

阅读(1755) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~