Friday, May 21, 2010

Switch to andriod

Due to the need for another project I will explore Andriod.

There are sources I am checking out. The second one is a little bit outdated.

http://omappedia.org/wiki/Android_Getting_Started#Accessing_Source_Code
http://omappedia.org/wiki/Android_Video_Run_From_SD_Tutorial

I followed the steps installed all the required software.

===================
sudo apt-get install git-core flex bison gperf libesd0-dev
sudo apt-get install libwxgtk2.6-dev zlib1g-dev build-essential
sudo apt-get install libstdc++5 tofrodos libsdl-dev zip curl x-dev
sudo apt-get install libx11-dev libncurses5-dev sun-java5-jdk libc6-dev g++ gcc
===================

The second step is to install the cross compile. Since I used OpenEmbedded. I will keep the OE CC tool for now.

The Andriod uses repo, a tool similar to git. Unlike the above page, I move the repo tool to /usr/bin so I don't have to update my $PATH

===================
curl http://android.git.kernel.org/repo >~/repo
chmod a+x ~/repo
sudo mv repo /usr/bin
===================

Next get the source code. For different source code branches, you can check out: http://git.omapzoom.org/?p=platform/omapmanifest.git;a=summary

===================
mkdir andriod
cd andriod
repo init -u git://git.omapzoom.org/repo/android/platform/omapmanifest.git
repo sync
===================

After a long time ......
You can start build u-boot and x-loader

===================
cd ~/andriod/bootable/bootloader/uboot
make omap3430zoom2_config
make
===================

xloader
===================
cd ~/andriod/bootable/bootloader/x-loader
make omap3430zoom2_config
make
make ift
===================



How to clone kernel source:

===================
git clone git://git.omapzoom.org/kernel/omap.git /home/setup/android/kernel/
cd /home/setup/android/kernel/
git checkout --track origin/android-omap-2.6.32 -b android-omap-2.6.32
git pull
make omap_zoom3_defconfig
make uImage
===================

If you have an error, try the following branch.
git checkout --track origin/p-android-omap-2.6.32 -b p-android-omap-2.6.32

If you don't have mkimage, it's in ~/andriod/bootable/bootloader/u-boot/tools. You can add the path or copy it to /usr/bin

No comments:

Post a Comment