Automatic emulation in Ubuntu/zh tw

From Openmoko

Revision as of 04:29, 24 October 2008 by Coolcat (Talk | contribs)

Jump to: navigation, search


安裝

我們必須知道,在linux上已經有一個好用的工具MokoMakefile。它包裝了一些指令使開發環境能夠輕易的設定與維護 若我們建構完整的MokoMakefile,需要大約12G的硬碟空間,1G的記憶體與耗費五個小時。build Qemu只需耗費890mb與十五分鐘的時間。

為了能夠正常運作,我們需要稍微調整ubuntu(這不會影響到其他的程式)。

  • 設定sources(System -> Administration -> Software Sources),加入:
    • Canonical-supported Open Source software (main)
    • Community-maintained Open Source software (universe)
  • 開啟終端機(Applications -> Accessories -> Terminal)。
  • 輸入下列指令,當詢問是否安裝dash(/bim/dash)時選擇no(必須輸入密碼):

sudo dpkg-reconfigure dash

  • 在Hardy Heron 8.04上安裝需要的程式(必須輸入密碼):
sudo apt-get install monotone git-core git-svn git-email \
git-cvs git-arch gitk python-dev ccache m4 sed bison make cvs gawk \
libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev \
libpcre3-dev texinfo texi2html libboost-date-time-dev libboost-filesystem-dev \
libboost-regex-dev libboost-test-dev libboost-dev zlib1g-dev build-essential \
dh-make debhelper devscripts gcc-3.4 lynx netpbm libsdl1.2-dev dosfstools \
help2man python-psyco lynx


  • 針對較早的版本 (git-svn git-email git-cvs git-arch gitk are replaced by cogito)

sudo apt-get install monotone git-core cogito python-dev ccache m4 sed bison \ make cvs gawk libc6-dev g++ subversion sharutils docbook openjade quilt \ libmpfr-dev libpcre3-dev texinfo texi2html libboost-date-time-dev \ libboost-filesystem-dev libboost-regex-dev libboost-test-dev libboost-dev \ zlib1g-dev build-essential dh-make debhelper devscripts gcc-3.4 netpbm \ libsdl1.2-dev dosfstools help2man python-psyco lynx


瞧!你的系統環境已經準備好,可以開始安裝Openmoko了。

現在,我們使用下載MokoMakefile並建立它的方法,把Openmoko裝在一個目錄中。

  • 建立目錄,並且切換到那個目錄下:
mkdir openmoko
cd openmoko
  • 取得 MokoMakefile:
wget http://www.rwhitby.net/files/openmoko/Makefile

若它無法下載的話,請試著使用下面的路徑:

wget http://svn.projects.openmoko.org/svnroot/mokomakefile/trunk/Makefile
  • Make the MokoMakefile and tell it, you want to install it for qemu:

make qemu

這樣可以下載最近釋出的必要檔案,並且使用它們。之後,你就可以開始使用它,並且開始使用它們。瞧,你現在已經成功的把Openmoko安裝到你的Ubuntu下了。

建立Openmoko的選單項目(選擇性使用)

你可以藉由下面的操作,建立啟動Openmoko時的選單項目:

  • 開啟終端機(Applications->Accessories->Terminal)
  • 切換到Openmoko的目錄:
cd ~/openmoko
  • 使用gedit 開啟 moko.sh 檔案:
gedit moko.sh
  • 將下面的文字寫入該檔:
#!/bin/bash
cd ~/openmoko
make run-qemu
  • 按下儲存,並關閉 gedit
  • then run the following commands:

chmod +x moko.sh alacarte

  • and add a menu item with these values:
    • Name: Openmoko
    • Command: ~/openmoko/moko.sh
Personal tools


安裝

我們必須知道,在linux上已經有一個好用的工具MokoMakefile。它包裝了一些指令使開發環境能夠輕易的設定與維護 若我們建構完整的MokoMakefile,需要大約12G的硬碟空間,1G的記憶體與耗費五個小時。build Qemu只需耗費890mb與十五分鐘的時間。

為了能夠正常運作,我們需要稍微調整ubuntu(這不會影響到其他的程式)。

  • 設定sources(System -> Administration -> Software Sources),加入:
    • Canonical-supported Open Source software (main)
    • Community-maintained Open Source software (universe)
  • 開啟終端機(Applications -> Accessories -> Terminal)。
  • 輸入下列指令,當詢問是否安裝dash(/bim/dash)時選擇no(必須輸入密碼):

sudo dpkg-reconfigure dash

  • 在Hardy Heron 8.04上安裝需要的程式(必須輸入密碼):
sudo apt-get install monotone git-core git-svn git-email \
git-cvs git-arch gitk python-dev ccache m4 sed bison make cvs gawk \
libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev \
libpcre3-dev texinfo texi2html libboost-date-time-dev libboost-filesystem-dev \
libboost-regex-dev libboost-test-dev libboost-dev zlib1g-dev build-essential \
dh-make debhelper devscripts gcc-3.4 lynx netpbm libsdl1.2-dev dosfstools \
help2man python-psyco lynx


  • 針對較早的版本 (git-svn git-email git-cvs git-arch gitk are replaced by cogito)

sudo apt-get install monotone git-core cogito python-dev ccache m4 sed bison \ make cvs gawk libc6-dev g++ subversion sharutils docbook openjade quilt \ libmpfr-dev libpcre3-dev texinfo texi2html libboost-date-time-dev \ libboost-filesystem-dev libboost-regex-dev libboost-test-dev libboost-dev \ zlib1g-dev build-essential dh-make debhelper devscripts gcc-3.4 netpbm \ libsdl1.2-dev dosfstools help2man python-psyco lynx


瞧!你的系統環境已經準備好,可以開始安裝Openmoko了。

現在,我們使用下載MokoMakefile並建立它的方法,把Openmoko裝在一個目錄中。

  • 建立目錄,並且切換到那個目錄下:
mkdir openmoko
cd openmoko
  • 取得 MokoMakefile:
wget http://www.rwhitby.net/files/openmoko/Makefile

若它無法下載的話,請試著使用下面的路徑:

wget http://svn.projects.openmoko.org/svnroot/mokomakefile/trunk/Makefile
  • Make the MokoMakefile and tell it, you want to install it for qemu:

make qemu

這樣可以下載最近釋出的必要檔案,並且使用它們。之後,你就可以開始使用它,並且開始使用它們。瞧,你現在已經成功的把Openmoko安裝到你的Ubuntu下了。

建立Openmoko的選單項目(選擇性使用)

你可以藉由下面的操作,建立啟動Openmoko時的選單項目:

  • 開啟終端機(Applications->Accessories->Terminal)
  • 切換到Openmoko的目錄:
cd ~/openmoko
  • 使用gedit 開啟 moko.sh 檔案:
gedit moko.sh
  • 將下面的文字寫入該檔:
#!/bin/bash
cd ~/openmoko
make run-qemu
  • 按下儲存,並關閉 gedit
  • then run the following commands:

chmod +x moko.sh alacarte

  • and add a menu item with these values:
    • Name: Openmoko
    • Command: ~/openmoko/moko.sh