您的位置:首页 > 其它

How to port cupcake to TI zoom2 platform (1)

2009-10-09 15:33 211 查看
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

2

Hardware requirements

2

software requirements

2

software setup on linux pc

2

hardware setup

3

fig1: zoom2 connections

4

linux bring-up on zoom2

5

APPENDIX A

6

Booting introduction

6

sd card boot

6

preparing the sd card

6

formating the partitions

8


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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: