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/
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 代码
- # tar zxf scratchbox-core-1.0.7-i386.tar.gz -C /
- # tar zxf scratchbox-devkit-debian-1.0.7-i386.tar.gz -C /
- # tar zxf scratchbox-libs-1.0.7-i386.tar.gz -C /
- # tar zxf scratchbox-toolchain-cs2005q3.2-glibc-arm-1.0.5-i386.tar.gz -C /
- # 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 代码
- # /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 代码
- # /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 代码
- root@cloud# /scratchbox/sbin/sbox_adduser cloud
- 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 代码
- cloud@cloud ~$ groups
- cloud ... sbox
7. Start sbox:
Terminal 代码
- # /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 代码
- 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 代码
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 代码
- [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 代码
- # chmod +x start-xephyr.sh
14. Run this to start the backgroud, which is white..though not in the tutorial...
Terminal 代码
15. Finally, run them to start the emulator:
Terminal 代码
- [sbox-SDK_PC: ~] > export DISPLAY=:2
- [sbox-SDK_PC: ~] > af-sb-init.sh start
To stop it, run:
Terminal 代码
- [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
分享到:
相关推荐
面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...
Installing STLinux on Ubuntu
Installing RAC on AIX
Installing MIUI on Meizu MX2
OpenERP Installing Ubuntu9.04
\Installing RAC on AIX 001.pdf
Installing Activ Test on Your PC
Microsoft Windows 2000 Scripting Guide - Installing Software on a Remote Computer
Installing Your Driver on Windows Millennium INF File Guide
while running PHP 5.2 applications using fastcgi module. Under Ubuntu 12.04 this can be achieved by installing PHP 5.3 from the repositories and manually compiling and installing PHP 5.2 afterwards. ...
Installing Ubuntu 14.04 & ROS & TurtleBot 06-29-2016 个人小结,关于Ubuntu和ROS的安装。
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...
quantum espresso 视频可以认真学习 进行入门,非常不错的材料 给大家进行分享,值得拥有
Installing Oracle Database 11g on Linux
Installing Oracle 10G On Linux
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 ...
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.
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...
Requirements For Installing Oracle10gR2 On RHEL 5&OEL 5 (x86_64)
installing oracle9i on redhat linux.rar 分布讲述在redhat上安装oracle9i的全过程和注意事项!