`
cloudhe
  • 浏览: 108734 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Installing Maemo on Ubuntu manually

阅读更多

This article takes Maemo2.2 and Ubuntu6.10 for example. However, what we need to install another edition of Maemo platform is just to change the rootstrap gived below. As for Ubuntu, I think those above 6.06 will be allright.

1. All packages we need:

  • scratchbox-core-1.0.7-i386.tar.gz
  • scratchbox-devkit-debian-1.0.7-i386.tar.gz
  • scratchbox-libs-1.0.7-i386.tar.gz
  • scratchbox-toolchain-cs2005q3.2-glibc-arm-1.0.5-i386.tar.gz
  • scratchbox-toolchain-cs2005q3.2-glibc-i386-1.0.5-i386.tar.gz

Download them from http://www.scratchbox.org/download/files/sbox-releases/apophis/tarball/

  • Maemo_Dev_Platform_v2.2_i386-rootstrap.tgz

Download it from http://repository.maemo.org/stable/gregale/i386/

Note: File copy may brake files!?
If you copied these files from other computers, check them by double click before installation. Download them YOURSELF if any is broken.

2. Extract tar files (for each package) to the / directory by running:

Terminal 代码
  1. # tar zxf scratchbox-core-1.0.7-i386.tar.gz -C /    
  2. # tar zxf scratchbox-devkit-debian-1.0.7-i386.tar.gz -C /   
  3. # tar zxf scratchbox-libs-1.0.7-i386.tar.gz -C /   
  4. # tar zxf scratchbox-toolchain-cs2005q3.2-glibc-arm-1.0.5-i386.tar.gz -C /   
  5. # tar zxf scratchbox-toolchain-cs2005q3.2-glibc-i386-1.0.5-i386.tar.gz -C /  

Note: Use "zxvf" instead of "zxf" to see the process of installation if you want.

3. Run:

Terminal 代码
  1. # /scratchbox/run_me_first.sh  

Normally an error apears now. Follow the given tip, and copy the command("echo ..."). Then you can run it again without any errors:

Follow the questions next in order to create sbox user group and setup scratchbox (default answers will be all right).

Do you want to use sudo mode? [yes/no] (no): no
Give the name of the scratchbox group (sbox): sbox
The group 'sbox' does not seem to exist!
Would you like me to create the group 'sbox' for you? [yes/no] (yes): yes
Creating group "sbox"...
Stopping Scratchbox: umount, binfmt_misc.
Starting Scratchbox: binfmt_misc, mount.
Now you should add one or more users with /scratchbox/sbin/sbox_adduser

4. Add users to scratchbox with command: (For 'username', use your Linux user login name.)

Terminal 代码
  1. # /scratchbox/sbin/sbox_adduser <username></username>  

This adds the user to 'sbox' user group, creates the Scratchbox user directory under /scratcbox/users directory and mounts several directories (/dev, /proc, /tmp) under user/ directory.

For example:

Terminal 代码
  1. root@cloud# /scratchbox/sbin/sbox_adduser cloud
  2. Add user Huichun to group 'sbox'? [yes/no] (yes): yes
    Scratchbox user account for user cloud added
      

5. Reboot computer.

6. Check if my name has been added successfully:

Terminal 代码
  1. cloud@cloud ~$ groups   
  2. cloud ... sbox  

 7. Start sbox:

Terminal 代码
  1. # /scratchbox/sbin/sbox_ctl start  

(Error may apear again. Copy and run the "echo.." command given following the error. See step 3.)

8. User login. Run:

Terminal 代码
  1. cloud@cloud ~$ /scratchbox/login  

You may see:

You dont have active target in scratchbox chroot.
Please create one by running "sb-menu" before continuing

Welcome to Scratchbox, the cross-compilation toolkit!

Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.

sb-conf: No current target

[sbox-: ~] >

9. Run:

Terminal 代码
  1. [sbox-: ~] > sb-menu  

10. Configuration.
    1) Setup a target.
        You can input "SDK_PC" as its name like the tutorial.
        Select the second type (...i386). -> Done -> None
    2) Before choosing "Yes":
        (1) Make sure you have Maemo_Dev_Platform_v2.2_i386-rootstrap.tgz.
             
(in /home/cloud/ for example)   
        (2) Run: (Start another terminal, and swich to root user)
             # mv /home/cloud/Maemo_Dev_Platform_v2.2_i386-rootstrap.tgz /scratchbox/packages/
    
3) Choose "Yes", then copy the file name into the blank after the path. Push Enter.
    4) Choose "No" when to install files.
    5) Active taget. You will see "[sbox-SDK_PC: ~] >" now, if everything is correct.

Note: Use command # mv in 2), not # cp, which may brake the file!  


11. Run:

Terminal 代码
  1. [sbox-SDK_PC: ~] > vi .bash_profile  

Copy these in:

export LANGUAGE=en_GB
export PAGER=less

The settings are necessary to be able to use the man command inside scratchbox and for the localisation to work properly.

12. Make a new file named start-xephyr.sh in /home/cloud/ (home folder).

Copy these in:

#!/bin/sh -e
prefix=/scratchbox/users/${LOGNAME}/targets/SDK_PC/usr
export LD_LIBRARY_PATH=${prefix}/lib; export LD_LIBRARY_PATH
exec ${prefix}/bin/Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac

Note: Do not make the new file under root user! (Anyway Ubuntu does not allow root user to login in screen mode.)

13. Run this to make start-xephyr.sh executable:

Terminal 代码
  1. # chmod +x start-xephyr.sh  

14. Run this to start the backgroud, which is white..though not in the tutorial...

Terminal 代码
  1. $ ./start-xephyr.sh &  

15. Finally, run them to start the emulator:

Terminal 代码
  1. [sbox-SDK_PC: ~] > export DISPLAY=:2   
  2. [sbox-SDK_PC: ~] > af-sb-init.sh start   

To stop it, run:

Terminal 代码
  1. [sbox-SDK_PC: ~] > af-sb-init.sh stop  


 

See more at http://maemo.org/development/documentation/tutorials/Maemo_2.2_Tutorial.html
  • 描述: Emulator starts
  • 大小: 79.9 KB
  • 描述: Emulator menu
  • 大小: 80.3 KB
  • 描述: MaemoPad
  • 大小: 62.7 KB
分享到:
评论

相关推荐

    installing samba on ubuntu

    面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...

    anaconda安装 - Installing Anaconda on Ubuntu

    ### 安装Anaconda在Ubuntu上的详细步骤及关键知识点 #### 一、Anaconda简介 Anaconda是一款非常受欢迎的数据科学平台,它集成了Python或R语言环境中的许多库和工具,便于用户进行数据处理、科学计算、机器学习等...

    Installing STLinux on Ubuntu

    ### 安装STLinux在Ubuntu上的关键步骤与挑战 #### 概览 本文将深入探讨在Ubuntu上安装STLinux的全过程,重点解析由于包管理系统的差异而带来的挑战及其解决方案。对于那些希望在Ubuntu环境中利用STLinux强大功能的...

    OpenERP Installing Ubuntu9.04

    OpenERP Installing Ubuntu9.04

    Installing RAC on AIX

    本篇将基于提供的文档摘要,深入解析安装Oracle RAC on AIX的关键步骤与注意事项,为读者提供一份详尽的操作指南。 ### 安装准备阶段 #### 1. 下载并解压安装介质 首先,需要从Oracle官方网站的edelivery服务下载...

    Microsoft Windows 2000 Scripting Guide - Installing Software on a Remote Computer

    Microsoft Windows 2000 Scripting Guide - Installing Software on a Remote Computer

    \Installing RAC on AIX 001.pdf

    根据提供的文档信息,本文将详细解析安装 Oracle RAC (Real Application Clusters) 在 AIX 操作系统上的步骤、注意事项及关键技术点。 ### 安装前准备 #### 下载安装介质与补丁集 ... - 示例文件包括:`B24442-01_1...

    Installing MIUI on Meizu MX2

    在IT领域,将一款设备刷入不同的操作系统或定制ROM是一种常见的技术操作,它允许用户根据个人喜好和需求自定义手机的界面与功能。本篇内容将深入解析如何在魅族MX2上安装MIUI系统,这是一项对于Android发烧友而言极...

    Installing Your Driver on Windows Millennium

    Installing Your Driver on Windows Millennium INF File Guide

    Installing Ubuntu 14.04 & ROS & TurtleBot 06-29-2016

    Installing Ubuntu 14.04 & ROS & TurtleBot 06-29-2016 个人小结,关于Ubuntu和ROS的安装。

    Ubuntu 使用手册 14.04 最新版本(英文原版)

    Installing Ubuntu—Getting started 11 Finishing Installation 16 2 The Ubuntu Desktop 19 Understanding the Ubuntu desktop 19 Unity 19 The Launcher 21 The Dash 21 Workspaces 24 Managing windows 24 Unity...

    Beginning.Ubuntu.LTS.Server.Administration.From.Novice.to.Professional.2nd.Edition

    Installing and configuring Ubuntu to ensure secure installations Virtual Ubuntu and LDAP configuration Full network and web services management What you’ll learn Administer, install, and configure ...

    Installing Quantum ESPRESSO (serial) on Linux-UBUNTU [TUTORIAL] [720p].mp4

    quantum espresso 视频可以认真学习 进行入门,非常不错的材料 给大家进行分享,值得拥有

    Ubuntu Server Guide < 英文版>

    The Ubuntu Server Guide contains information on how to install and configure various server applications on your Ubuntu system to fit your ...installing Ubuntu, refer to the Ubuntu Installation Guide.

    MySQL V5.5帮助文档

    2.4.1. General Notes on Installing MySQL on Mac OS X 2.4.2. Installing MySQL on Mac OS X Using Native Packages 2.4.3. Installing the MySQL Startup Item 2.4.4. Installing and Using the MySQL Preference...

    Installing Activ Test on Your PC

    ### 安装Activ Test软件至个人电脑的知识点详解 #### 一、背景介绍 随着信息技术的发展,越来越多的专业技能认证考试采用计算机化的方式进行。其中,ECDL(欧洲计算机驾驶执照)作为一项广泛认可的计算机操作技能...

    U盘制作ubuntu16.04系统,下载,安装整理

    - 选择“Try Ubuntu without installing”(试用Ubuntu而不安装)或直接选择“Install Ubuntu 16.04 LTS”(安装Ubuntu 16.04 LTS)。 5. **安装Ubuntu 16.04** - 如果选择试用,可以体验系统后再决定是否安装。...

    Sams.Ubuntu.Unleashed.Aug.2006.part1

    Chapter 3 Installing Ubuntu Chapter 4 Post-Installation Configuration Chapter 5 First Steps with Ubuntu Chapter 6 The X Window System Chapter 7 Managing Software Chapter 8 On the Internet: ...

    Ubuntu-10.04 installing ns2 2.34

    在Ubuntu 10.04环境下安装NS2(网络模拟器2.34)是一个涉及多个步骤的过程,这个过程对于那些需要进行网络模拟和性能分析的IT专业人员来说至关重要。NS2是一个开源的网络模拟软件,它允许用户模拟各种网络环境,测试...

Global site tag (gtag.js) - Google Analytics