Zoom2 (Beta) Hardware and SoftwareSetup
-----By Fendy_Dai
Abstract
This document helps setup hardware and software to bring up Android Cupcake on Zoom2 board.
Contents
Zoom2 Setup
Hardware Requirements
1. Zoom2 (Stage 2) + Power Supply
2. Debug Board
3. USB cable
4. SD card
5. Windows PC (for configuring and viewing the Debug Serial port) with spare USB port
6. Linux PC to download and build sources
Software Requirements
1. GIT installed on a Linux PC
2. Windows XP ® with SP2 or Late r
Software setup on Linux PC
1. Configure the linux PC
§ sudo apt-get update build-essential git-core gnu pg x-dev flex bison gperf
libsdl-dev libesd0-dev libwxgtk2.6-dev zip curl libncurses5-dev zlib1g-dev
sun-java6-jdk
§ sudo vim /etc/environment CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun
sudo vim /etc/jvm /usr/lib/jvm/java-6-sun
§ curl http://android.git.kernel.org/repo > /bin/repo
§ chmod a+x /bin/repo
2. Download the x-loader, u-boot, support-tools and kernel source from http://git.omapzoom.org/ using the below commands
§ mkdir omapmanifest
§ cd omapmanifest
§ git clone git://git.omapzoom.org/repo/ android/omapmanifest .git
§ mkdir android
§ cd android
§ sudo repo init – u git://git.omapzoom.org/repo/android/omapmanifest.git
§ sudo repo sync
§ sudo repo sync kernel(console 2)
§ sudo repo sync prebuilt(console 3)
1. Tool chain setup
§ You can download the tool-chain from http://www.codesourcery.com/gnu_toolchains/arm/releases/200 8 q3
§ Export toolchain, make sure you have the toolchain in your PATH.
§ S udo vim /etc/bash.bashrc
§ if [ -d /usr/local/arm/arm-2008q3 ] ;then
§ PATH=/usr/local/arm/arm-2008q3/bin: ” {$PATH} ”
§ fi
su root
source /etc/profile
echo $PATH
2. To build x-loader
§ Make sure you have the u-boot source also downloaded and both x-loader and u-boot are under zoom2 directory.
§ cd /home/wenjuan/android/bootloader /x-loader
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi- distclean
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi- omap3430zoom2_config
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi- ift
§ The x-load.bin should be signed and renamed as MLO using the above command
3. To build u-boot
§ cd /home/wenjuan/android/bootloader /u-boot
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi- distclean
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi- omap3430zoom2_config
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi-
4. To build kernel
§ Copy the zoom2/u-boot/tools/mkimage file to PATH or to kernel source directory
§ S udo vim /etc/bash.bashrc
§ PATH=/usr/local/arm/arm-2008q3/bin:/home/wenjuan/android/bootloader/u-boot/tools/: ” {$PATH} ”
§ cd /home/wenjuan/android/kernel
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi- distclean
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi- omap_zoom2_ android_ defconfig
§ make CROSS_COMPILE=/usr/local/arm/arm-2008q3/bin/arm-none-linux-gnueabi- uImage
§ The uImage will be created in arch/arm/boot.
5. cd android
export ANDROID_JAVA_HOME=$JAVA_HOME
make clean
cp vendor/ti/ zoom2 /buildspec.mk.default buildspec.mk
make
Prepare an SD card and copy the MLO, u-boot.bin and uImage to FAT32 partition. See Appendix A for instructions.