Friday, January 9, 2009

HOWTO compile Android Linux on Fedora Core 9

Android - An Open Handset Alliance Project

Compile Linux Kernel

[ ]# mkdir -p /home/android/kernel
[ ]# cd /home/android/kernel
[ ]# wget http://android.googlecode.com/files/linux-2.6.25-android-1.0_r1.tar.gz

[ ]# tar zxvf linux-2.6.25-android-1.0_r1.tar.gz
[ ]# cd kernel.git
[ ]# make goldfish_defconfig

[ ]# CROSS_COMPILE=arm-linux- make

Android SDK
Download from Andriod
[ ]# cd /home/android
[ ]# wget http://dl.google.com/android/android-sdk-linux_x86-1.0_r2.zip
[ ]# unzip android-sdk-linux_x86-1.0_r2.zip

Execute the Emulator
[ ]# cd /home/android
[ ]# ./android-sdk-linux_x86-1.0_r2/tools/emulator -kernel kernel/kernel.git/arch/arm/boot/zImage

Here we go....

Compile the Emulator

[ ]# mkdir -p /home/android/emulator
[ ]# cd /home/android/emulator
[ ]# wget http://android.googlecode.com/files/android-emulator-1.0_r2.tar.bz2

[ ]# tar jxvf android-emulator-1.0_r2.tar.bz2
[ ]# cd android-emulator-20081210

Reference:
1. Android - An Open Handset Alliance Project
2. Google Code

No comments: