Sunday, July 17, 2011

Steps for Building Android for OMAP4430

Lets try to build Android....


I have shown all commands to build from x-loader till Android File system below.However the below mentioned steps are exclusively for OMAP4430 platform, hence changes should be made for building the same for other targets as necessary.
The below text only shows the commands for building Android in Linux Platform only.

Please visit http://omappedia.org/wiki/Android_Getting_Started#Building_kernel for more details.

0) Download cross-compiler from Internet for your corresponding Target like ARM or any other and copy the directory in opt folder of Linux file system(in your PC) and export the path of the compiler.

1. X-Loader:
a)Downloading code:
git clone git://git.omapzoom.org/repo/x-loader.git
git checkout --tract -b omap4_dev origin/omap4_dev

b)Build Commands:
make distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- omap4430sdp_config
make CROSS_COMPILE=arm-none-linux-gnueabi- ift

c)output: x-load.bin

d)Signing:
./generate_MLO OMAP4430 ESx.x x-load.bin


2.U-Boot*
a)Downloading code:
git clone git://git.omapzoom.org/repo/u-boot.git
git checkout -b xx remotes/origin/omap4_dev

b)Build:
make distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- omap4430sdp_config
make CROSS_COMPILE=arm-none-linux-gnueabi-


3.Linux Kernel*
a)Downloading:
git clone git://git.omapzoom.org/kernel/omap.git
git checkout -b xx remotes/origin/p-android-omap-2.6.35

b)Build:
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
make android_4430_defconfig
make -j4 uImage

4.Android Filesystem
a)Downloading:
repo init -u git://git.omapzoom.org/platform/omapmanifest.git -b gingerbread
repo sync
mkdir manifest
cd manifest
git clone git://git.omapzoom.org/platform/omapmanifest.git
cd omapmanifest
git checkout -b gb remotes/origin/gingerbread
export MANIFEST=`pwd`
cd ../../
repo init -u $MANIFEST
repo sync

//Use the Maninfest and checkout a proper branch :

cd manifest/omapmanifest
git checkout -b gb remotes/origin/gingerbread
git pull
export MANIFEST=`pwd`
cd ../../
repo init -u $MANIFEST
repo sync

b)Build:
make clean
cp -Rfp device/ti/blaze/buildspec.mk.default buildspec.mk
make -j4

No comments:

Post a Comment