How to build full source for MIPS(e.g:HMP10)

125 views
Skip to first unread message

Lim,GeunSik

unread,
Aug 12, 2009, 10:55:04 PM8/12/09
to android-porting
How to build full source for MIPS(e.g:HMP10)
===================================

This is quick how to build full source for mips architecture.

* Test Information:
- Fedora 11 Distribution (Host Linux)
- register at http://www.mipsandroid.org/account/register
- ref :http://www.kandroid.org/board/board.php?
board=androidsource&command=body&no=53 (by GeunSik, Lim)

f11$ wget http://android.git.kernel.org/repo >~/bin
f11$ chmod 755 ~/bin/repo

f11$ mkdir mipsandroid
f11$ cd mipsandroid
f11$ repo init -u git://public.mipsandroid.com/platform/manifest.git -
b mips-cupcake
f11$ repo sync

f11$ vi ./.repo/local_manifest.xml

<manifest>
<project name="platform/vendor/rmi/hmp10" path="vendor/rmi/hmp10"/>
<project name="platform/external/msntp" path="external/msntp"/>
</manifest>

f11$ cd mipsandroid
f11$ repo sync


f11$ chmod 755 jdk-1_5_0_20-linux-i586-rpm.bin
( http://java.sun.com/javase/downloads/index_jdk5.jsp ( J2SE
5.0 Download)
f11$ ./jdk-1_5_0_20-linux-i586-rpm.bin
f11$ cd ~/bin/mipsandroid
f11$ wget ftp://ftp.mips.com/pub/tools/software/android/mips-4.3.tar.gz
f11$ cd /opt
f11$ tar xvzf ~/bin/mipsandroid/mips-4.3.tar.gz
f11$ opt/mips-4.3/bin/mips-linux-gnu-gcc -v
Using built-in specs.
Target: mips-linux-gnu
Configured with: /scratch/clm/2008q3-src/src/gcc-4.3/configure --
build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=mips-linux-
gnu --enable-threads --disable-libmudflap --disable-libssp --disable-
libstdcxx-pch --with-arch=mips32r2 --with-float=hard --enable-mips-
nonpic --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld --
enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-
__cxa_atexit --with-pkgversion='Sourcery G++ Lite 4.3-51' --with-
bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --
prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/mips-linux-
gnu/libc --with-build-sysroot=/scratch/clm/2008q3-lite/install/mips-
linux-gnu/libc --with-gmp=/scratch/clm/2008q3-lite/obj/host-
libs-4.3-51-mips-linux-gnu-i686-pc-linux-gnu/usr --with-mpfr=/scratch/
clm/2008q3-lite/obj/host-libs-4.3-51-mips-linux-gnu-i686-pc-linux-gnu/
usr --disable-libgomp --enable-poison-system-directories --with-build-
time-tools=/scratch/clm/2008q3-lite/install/mips-linux-gnu/bin --with-
build-time-tools=/scratch/clm/2008q3-lite/install/mips-linux-gnu/bin
Thread model: posix
gcc version 4.3.2 (Sourcery G++ Lite 4.3-51)

f11$ sudo yum -y install eclipse-ecj clearsilver

f11$ sudo yum -y install gcc* compat-gcc* readline* libreadline*
openssh* flex bison gperf
libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl wget
valgrind python*
java* java-* java-1.6.0-openjdk-devel* glibc* zlib zlib-devel
libncurses* gcc* compat-gcc*
readline* libreadline* openssh* flex bison gperf libsdl-dev libesd0-
dev libwxgtk2.6-dev
build-essential zip curl wget valgrind python* java* java-* java-1.6.0-
openjdk-devel* glibc*
SDL* ncurses*

f11$ sudo ln -s /usr/bin/ecj /bin/ecj
f11$ cd ~/bin/mipsandroid

f11$ vi /etc/profile
export J2RE_HOME=/usr/java/jdk1.5.0_20/jre
export JAVA_HOME=/usr/java/jdk1.5.0_20/jre
export ANDROID_JAVA_HOME=$JAVA_HOME
export PATH=/usr/java/jdk1.5.0_19/jre/bin:/usr/java/jdk1.5.0_20/bin:
$PATH

f11$ source /etc/profile
f11$ build/envsetup.sh

f11$ export TARGET_PRODUCT=hmp10
f11$ export TARGET_ARCH_VERSION=mips32
f11$ export TARGET_ARCH=mips
f11$ make Supported target products are:

Vendor Platform <target product>
--------------- ----------------
RMI HMP10 hmp10


Enjoy ~~

GeunSik Lim (invain)

unread,
Aug 13, 2009, 2:39:40 AM8/13/09
to android-porting


and, One more...

f11$ cd ~/bin/
f11$ wget http://dl.google.com/android/android-sdk-linux_x86-1.5_r3.zip
f11$ cd ~/bin/android-sdk-linux_x86-1.5_r3/tools
f11$ mkdir myimage
f11$ cp ~/bin/mipsandroid/out/target/product/hmp10/*.img ./myimage
f11$ cp ~/bin/mipsandroid/out/target/product/hmp10/kernel ./myimage/
kernel-qemu
f11$ rm -rf ~/.android
f11$ ./android list avds
f11$ ./android list targets
f11$ ./android create avd --name sdk1.5_r3 --target 3
f11$ ./emulator @sdk1.5_r3 -kernel ./myimage/kernel-qemu -system ./
myimage/system.img -ramdisk ./myimage/ramdisk.img -init-data ./
myimage/userdata.img
f11$ top -d 1 -p `pidof emulator`
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+
COMMAND
20599 invain 20 0 175m 21m 5544 R 98.9 0.7 3:10.98 emulator

On 8월13일, 오전11시55분, "Lim,GeunSik" <lee...@gmail.com> wrote:
> How to build full source for MIPS(e.g:HMP10)
> ===================================
>
> This is quick how to build full source for mips architecture.
>
> * Test Information:
> - Fedora 11 Distribution (Host Linux)
> - register at http://www.mipsandroid.org/account/register
> - ref :http://www.kandroid.org/board/board.php?
> board=androidsource&command=body&no=53 (by GeunSik, Lim)
>
> f11$ wgethttp://android.git.kernel.org/repo>~/bin
> f11$ chmod 755 ~/bin/repo
>
> f11$ mkdir mipsandroid
> f11$ cd mipsandroid
> f11$ repo init -u git://public.mipsandroid.com/platform/manifest.git -
> b mips-cupcake
> f11$ repo sync
>
> f11$ vi ./.repo/local_manifest.xml
>
> <manifest>
> <project name="platform/vendor/rmi/hmp10" path="vendor/rmi/hmp10"/>
> <project name="platform/external/msntp" path="external/msntp"/>
> </manifest>
>
> f11$ cd mipsandroid
> f11$ repo sync
>
> f11$ chmod 755 jdk-1_5_0_20-linux-i586-rpm.bin
> (http://java.sun.com/javase/downloads/index_jdk5.jsp( J2SE
> 5.0 Download)
> f11$ ./jdk-1_5_0_20-linux-i586-rpm.bin
> f11$ cd ~/bin/mipsandroid
> f11$ wgetftp://ftp.mips.com/pub/tools/software/android/mips-4.3.tar.gz
> f11$ cd /opt
> f11$ tar xvzf ~/bin/mipsandroid/mips-4.3.tar.gz
> f11$ opt/mips-4.3/bin/mips-linux-gnu-gcc -v
> Using built-in specs.
> Target: mips-linux-gnu
> Configured with: /scratch/clm/2008q3-src/src/gcc-4.3/configure --
> build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=mips-linux-
> gnu --enable-threads --disable-libmudflap --disable-libssp --disable-
> libstdcxx-pch --with-arch=mips32r2 --with-float=hard --enable-mips-
> nonpic --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld --
> enable-languages=c,c++ --enable-shared --enable-symvers=gnu --enable-
> __cxa_atexit --with-pkgversion='Sourcery G++ Lite 4.3-51' --with-
> bugurl=https://support.codesourcery.com/GNUToolchain/--disable-nls --
Reply all
Reply to author
Forward
0 new messages