2013年9月30日 星期一

Android Porting 2.3.4

ref.
http://note.jhpeng.com/2013/01/sudo-apt-get-install-git-core-gnupg.html
http://e-xiao.blogspot.tw/2011/10/resolve-build-errors-for-android-234.html

//development board from Forlinx, build code on ubuntu 10.04 32 bits

///////////////////pre install sun java jdk
add-apt-repository ppa:sun-java-community-team/sun-java6
apt-get update
apt-get install sun-java6-jdk

//remove add-apt-repository list
gedit /etc/apt/sources.list


///////////////////////build google source pre-install
apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev lib64ncurses5-dev           x11proto-core-dev libx11-dev lib64readline5-dev lib64z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc

//////uboot1.1.6
1. need extract arm-linux-gcc-4.3.2.tgz  to /usr/local/arm/4.3.2
#tar zxvf arm-linux-gcc-4.3.2.Tgz -C /
2.  make config
# make forlinx_nand_ram256_config
# make

//////android2.3_kernel_v1.01
1. need extract arm-none-linux-gnueabi-arm-2008q3-72-for-linux.tar.bz2 to /usr/local/arm/arm-none-linux-gnueabi
#tar jxvf arm-none-linux-gnueabi-arm-2008q3-72-for-linux.tar.bz2 -C /
 
2. check config, default all done
make menuconfig

3. make bin
export PATH=/usr/local/arm/arm-none-linux-gnueabi/bin:$PATH
make

////////android2.3.4_32bit
1.make
#./build-android

2.make image
#./make-rootfs-nand2g

////////copy image
1. copy 3 images to sdcard
u-boot.bin
zImage ->from kernal
rootfs.yaffs2 ->from google source

2. restart board and done
switch dip and run

沒有留言:

張貼留言