Porting & Instalasi Android Pada Devkit8000

Porting & instalasi Android pada board Devkit8000 adalah sebuah tantangan yang menyenangkan. Berikut saya ‘share’ sedikit pengalaman saya ketika poritng & install Android pada Devkit8000.

Kebutuhan:

  • PC / Laptop
  • Sistem Operasi Linux Ubuntu 10.4 atau terbaru
  • Java 5 / Java 6
  • Kabel serial
  • Board Devkit8000

Instalasi paket pendukung yang diperlukan pada Ubuntu :

  • $ sudo add-apt-repositery “deb http://archive.canonical.com/ lucid partner”
  • $ sudo add-apt-repositery “deb-src http://archive.canonical.com/ ubuntu lucid partner”
  • $ sudo apt-get update
  • $ sudo apt-get install git-core gnupg sun-java-6-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev minicom gtkterm tftpd uboot-mkimage expect
  • $ sudo update-java-alternatives -s java-6-sun

Mempersiapkan ‘source’

Cara #1: Menggunakan gitorious.org

 

1. Install tools repo

  • $ mkdir ~/bin
  • $ PATH=~/bin:$PATH

2. Unduh script repo

3. Kloning repo

  • $ mkdir rowboat-android
  • $ cd rowboat-android
  • $ repo init -u git://gitorious.org/rowboat/manifest.git -m TI-Android-Gingerbread-2.3.4-DevKit-2.1.xml
  • $ repo sync

Cara #2: Menggunakan Repo Pre-package

Hasil dari cara #1 atau cara #2 adalah :

  • Android file system
  • Kernel Linux Android
  • direktori u-boot atau boot-loader
  • direktori x-loader
  • Toolchain

Setup Toolchain:

1. Pergi ke direktori Toolchain

  • $ cd ~/toolchain

2. Install toolchain

  • $ tar xjvf toolchain-arm-xxx-tar.bz2

3. Eksport ke path 

  • $ export PATH=~/path/to/toolchain/arm-android-eabi-xxx/bin:$PATH

Kompilasi Silang x-loader

1. Pergi ke direktori x-loader

  • $ cd ~/path/to/x-loader

2. Kompilasi silang 

  • $ make CROSS_COMPILE=arm-android-eabi- distclean
  • $ make CROSS_COMPILE=arm-android-eabi- devkit8000_config
  • $ make CROSS_COMPILE=arm-android-eabi-

3. Manffatkan tools ‘signGP’

  • $ ./signGP ./x-load.bin
  • $ mv x-load.bin.ift MLO

Kompilasi Silang ‘Boot loader’

  • Pergi ke direktori boot loader : $ cd ~/path/to/u-boot
    • $ make CROSS_COMPILE=arm-android-eabi- distclean
    • $ make CROSS_COMPILE=arm-android-eabi- devkit8000_config
    • $ make CROSS_COMPILE=arm-android-eabi-
  • Hasil dari langkah diatas adalah : ‘u-boot.bin’.

Kompilasi Silang kernel

  • Pergi ke direktori kernel : $ cd ~/path/to/kernel
  • $ make ARCH=arm CROSS_COMPILE=arm-android-eabi- distclean
  • $ make ARCH=arm CROSS_COMPILE=arm-android-eabi- devkit8000_defconfig
  • $ make ARCH=arm CROSS_COMPILE=arm-android-eabi- uImage

Menanam ke SDCard 

  • Buat direktori khusus utk menyimpan hasil kompilasi
    • $ mkdir Boot_Images
  • Salin file MLO, u-boot.bin, dan uImage ke direktori Boot_Images
    • $ cp ~/path/to/MLO  Boot_Images
    • $ cp ~/path/to/u-boot.bin  Boot_Images
    • $ cp ~/path/to/uImage  Boot_Images
  • Buat direktori ‘Filesystem’ & salin root filesystem
    • $ mkdir Filesystem
    • $ cp ~/path/to/rootfs.tar.bz2  Filesystem
  • Jalankan script ‘mkmmc-android.sh’
    • $ ./mkmmc-android.sh /dev/sdc

 

Advertisements

Tags: , , , , , , , , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: