Thursday, July 16, 2009

HOWTO Install Android SDK 1.5.r2 on Fedora Core 9

The final file structure looks like that

/home/android/
|-- android-kernel
| `-- kernel
|-- android-sdk
| `-- android-sdk-linux_x86-1.5_r2

=========================================================

Download Android 1.5 SDK, Release 2
[ ]# mkdir -p /home/android/android-sdk
[ ]# cd /home/android/android-sdk
[ ]# wget http://developer.android.com/sdk/download.html?v=android-sdk-linux_x86-1.5_r2.zip
[ ]# unzip android-sdk-linux_x86-1.5_r2.zip

Linux Kernel for Android
[ ]# mkdir -p /home/android/android-kernel
[ ]# cd /home/android/android-kernel
[ ]# git clone git://android.kernel.org/kernel/common.git kernel
[ ]# cd kernel

[ ]# git branch goldfish origin/android-goldfish-2.6.27
[ ]# git checkout goldfish

[ ]# make ARCH=arm CROSS_COMPILE=arm-linux- goldfish_defconfig
[ ]# make ARCH=arm CROSS_COMPILE=arm-linux- menuconfig
[ ]# make ARCH=arm CROSS_COMPILE=arm-linux- zImage

Switched to branch "goldfish-2.6.29"
[ ]# git branch goldfish-2.6.29 origin/android-goldfish-2.6.29
[ ]# git checkout goldfish-2.6.29

To see a list of existing branches
[ ]# git branch
android-2.6.27
goldfish
* goldfish-2.6.29

Android Emulator

Create Android Virtual Device
[ ]# android-sdk/android-sdk-linux_x86-1.5_r2/tools/android create avd -n foo -t 3
Created AVD 'foo' based on Google APIs (Google Inc.)

Run the emulator
[ ]# android-sdk/android-sdk-linux_x86-1.5_r2/tools/emulator @foo -kernel android-kernel/kernel/arch/arm/boot/zImage

Delete the Android Virtual Device
[ ]# android-sdk/android-sdk-linux_x86-1.5_r2/tools/android delete avd -n foo









No comments: