关于官方Android2.3.4源码包编译相关如下:
1、注意: 必须严格照这个目录结构放,否则android会找不到lichee里面的头文件.
|-- android2.3.4
|-- crane_sdk_docs
|-- lichee
| |-- buildroot
| |-- build.sh
| |-- linux-2.6.36
| `-- out
|-- tools
| |-- crane-win-v2
| |-- LogoGen
| |-- pack
| |-- pack_25
| |-- production
| `-- tools_win
2. build kernel code:
$cd lichee
$./build.sh -p sun4i_crane
编译顺利的话,您应该看到 lichee/out 里面有生成的内容.
3. build android code:
$cd android2.3.4
$source build/envsetup.sh
$lunch ;注意一下:
evb v1.1 电阻屏: lunch 选crane_evb-eng
evb v1.2 电阻屏: lunch 选crane_evb-eng
evb v1.2 电容屏: lunch 选crane_evb_v13_eng
$make -j8 ;在PC上编译可能需要2个小时或者更多,请不要用root编译
编译顺利的话,您应该看到如下信息:
......
Creating filesystem with parameters:
Size: 536870912
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 2048
Label:
Blocks: 131072
Block groups: 4
Reserved block group size: 31
Created filesystem with 536/32768 inodes and 30036/131072 blocks
Install system fs image: out/target/product/crane-aino/system.img
Installed file list: out/target/product/crane-aino/installed-files.txt
4. make images
$cd android2.3.4
$mkimg
*** WINDOWS ***
windows 电脑需要安装 livesuit, 在 tools/tools_win 里面.
1. 把tools 目录复制到windows电脑,例如: D:\winners 目录.
2. 映射build server(注意需先开samba共享)或者您本机的 /home/yourname 目录到windows电脑的Z盘
3. 运行 crane-win-v2/wboot/crane_pack.exe. 确定映射的路径是否正确.如果按照缺省的路径存放SDK应该不需要修改这两个路径.
*) 选build for, 注意一下:
evb v1.1 电阻屏: build for 选evb, lunch 选crane_evb-eng
evb v1.2 电阻屏: build for 选evb-v12r, lunch 选crane_evb-eng
evb v1.2 电容屏: build for 选evb-v13, lunch 选crane_evb_v13_eng
*) 可选修改其他参数如cpu主频,ddr主频...完成后点Save按钮(其他更多选项点Edit按钮直接修改sys_config1).
*) 点Build按钮打包.
4. 使用livesuit, 指定 img 烧录
*) evb 接上电源和usb线
*) 按upgrade(recover) + reset 进入升级模式
*) 如果windows提示安装驱动,请安装 livesuit里面的usbdriver
关于官方Android2.3.4源码包编译环境的搭建相关:
1、注意:此环境搭建针对android2.3.4开发,可安装32位虚拟机和对应的库文件
ubuntu32:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
libncurses5-dev zlib1g-dev valgrind
android4.0的开发环境务必安装64位ubuntu虚拟机及对应如下库文件,android4.0开发平台不会对android2.3.4开发影响
ubuntu64
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib
libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
安装VMware-workstation-full-7.1.4-385536.exe
安装ubuntu-10.04.2-desktop-i386.iso
2、配置交叉编译工具链
@ 把android2.3.4.tar.gz, lichee.tar.gz拷贝到虚拟机,解压,找到交叉编译工具软件(lichee\buildroot\dl\arm-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2),拷贝到其他目录
@ 运行sudo gedit /etc/profile
在打开的文件中(倒数第二行加入:export PATH=$PATH:/home/xxx/arm-2010.09/bin)
Xxx是指arm-2010.09/bin的路径,添加完后重启下虚拟机
3.安装JDK6.0 ,samba共享
@在线安装JDK6.0
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
$ sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind
@在线安装samba共享
sudo apt-get install samba
sudo apt-get install smbfs
sudo apt-get install system-config-samba
@直接安装jdk6.0 ,samba共享
进入下载好的安装包目录(编译环境安装软件\jdk6.0安装包),运行如下指令
sudo dpkg -i *.deb
@重启下虚拟机
4.编译andriod2.3.4代码 和 lichee代码
1、注意: 必须严格照这个目录结构放,否则android会找不到lichee里面的头文件.
|-- android2.3.4
|-- crane_sdk_docs
|-- lichee
| |-- buildroot
| |-- build.sh
| |-- linux-2.6.36
| `-- out
|-- tools
| |-- crane-win-v2
| |-- LogoGen
| |-- pack
| |-- pack_25
| |-- production
| `-- tools_win
2. build kernel code:
$cd lichee
$./build.sh -p sun4i_crane
编译顺利的话,您应该看到 lichee/out 里面有生成的内容.
3. build android code:
$cd android2.3.4
$source build/envsetup.sh
$lunch ;注意一下:
evb v1.1 电阻屏: lunch 选crane_evb-eng
evb v1.2 电阻屏: lunch 选crane_evb-eng
evb v1.2 电容屏: lunch 选crane_evb_v13_eng
$make -j8 ;在PC上编译可能需要2个小时或者更多,请不要用root编译
编译顺利的话,您应该看到如下信息:
......
Creating filesystem with parameters:
Size: 536870912
Block size: 4096
Blocks per group: 32768
Inodes per group: 8192
Inode size: 256
Journal blocks: 2048
Label:
Blocks: 131072
Block groups: 4
Reserved block group size: 31
Created filesystem with 536/32768 inodes and 30036/131072 blocks
Install system fs image: out/target/product/crane-aino/system.img
Installed file list: out/target/product/crane-aino/installed-files.txt
4. make images
$cd android2.3.4
$mkimg
*** WINDOWS ***
windows 电脑需要安装 livesuit, 在 tools/tools_win 里面.
1. 把tools 目录复制到windows电脑,例如: D:\winners 目录.
2. 映射build server(注意需先开samba共享)或者您本机的 /home/yourname 目录到windows电脑的Z盘
3. 运行 crane-win-v2/wboot/crane_pack.exe. 确定映射的路径是否正确.如果按照缺省的路径存放SDK应该不需要修改这两个路径.
*) 选build for, 注意一下:
evb v1.1 电阻屏: build for 选evb, lunch 选crane_evb-eng
evb v1.2 电阻屏: build for 选evb-v12r, lunch 选crane_evb-eng
evb v1.2 电容屏: build for 选evb-v13, lunch 选crane_evb_v13_eng
*) 可选修改其他参数如cpu主频,ddr主频...完成后点Save按钮(其他更多选项点Edit按钮直接修改sys_config1).
*) 点Build按钮打包.
4. 使用livesuit, 指定 img 烧录
*) evb 接上电源和usb线
*) 按upgrade(recover) + reset 进入升级模式
*) 如果windows提示安装驱动,请安装 livesuit里面的usbdriver
关于官方Android2.3.4源码包编译环境的搭建相关:
1、注意:此环境搭建针对android2.3.4开发,可安装32位虚拟机和对应的库文件
ubuntu32:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl
libncurses5-dev zlib1g-dev valgrind
android4.0的开发环境务必安装64位ubuntu虚拟机及对应如下库文件,android4.0开发平台不会对android2.3.4开发影响
ubuntu64
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib
libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
安装VMware-workstation-full-7.1.4-385536.exe
安装ubuntu-10.04.2-desktop-i386.iso
2、配置交叉编译工具链
@ 把android2.3.4.tar.gz, lichee.tar.gz拷贝到虚拟机,解压,找到交叉编译工具软件(lichee\buildroot\dl\arm-2010.09-50-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2),拷贝到其他目录
@ 运行sudo gedit /etc/profile
在打开的文件中(倒数第二行加入:export PATH=$PATH:/home/xxx/arm-2010.09/bin)
Xxx是指arm-2010.09/bin的路径,添加完后重启下虚拟机
3.安装JDK6.0 ,samba共享
@在线安装JDK6.0
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo add-apt-repository "deb-src http://archive.canonical.com/ubuntu lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk
$ sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind
@在线安装samba共享
sudo apt-get install samba
sudo apt-get install smbfs
sudo apt-get install system-config-samba
@直接安装jdk6.0 ,samba共享
进入下载好的安装包目录(编译环境安装软件\jdk6.0安装包),运行如下指令
sudo dpkg -i *.deb
@重启下虚拟机
4.编译andriod2.3.4代码 和 lichee代码