How to port cupcake to TI zoom2 platform (1)

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值