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
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
1.
GIT installed on a Linux PC
2.
Windows XP
®
with SP2 or Late
r
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.
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.
相关文章推荐
- How to port cupcake to TI zoom2 platform (2)
- How to port cupcake to TI zoom2 platform (3)
- How to port cupcake to TI zoom2 platform (4)
- How to port cupcake to TI zoom2 platform (5)
- How to covert AHB BUS monitor VIP to AHB Master Port monitor
- How to build a Flex development platform based on Myeclipse8.6 & Flex4
- how to change the port of tomcat
- How to kill a process on a port on linux 怎么杀死 关掉一个端口
- How to port lighttpd to Android
- How to Reuse Old PCs for Solr Search Platform?
- How To Use RMAN CONVERT DATABASE on Source Host for Cross Platform Migration
- DOS cmd - how to ping a remote host with specified port
- how to find out the switch port by IP address
- How to use Serial Port in Windows
- Cocos2dx For Multi-Platform: Chapter 2 - How to Add a sprite
- How to support scroll bar in webkit of android platform
- How to enable Spanning Tree Portfast in Cisco Catalyst switch (IOS)
- How to configure MailEnable to send emails on Google Cloud Platform instance?
- How To create Netbeans Platform and add to netbeans IDE by netbean platform manager
- How to detect Windows 64 bit platform with .net?