作者: Sam (甄峰) sam_code@hotmail.com
首先选择Ubuntu12.04 64bit为开发环境。
很多必要的软件已经安装,如:python ,GNU Make等。
1. 必要软件安装:
1.1: JDK:
Android5.1后,采用JDK为Open JDK。而非oracle jdk.
$sudo apt-get install openjdk-7-jdk
检测:
$java -version
Java version "1.70_121"
OpenJDK RunTime
Environment.....
1.2: 其它包:
sudo apt-get install git
sudo apt-get install gnupg
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl
sudo apt-get install libc6-dev
sudo apt-get install libncurses5-dev:i386
sudo apt-get install x11proto-core-dev
sudo apt-get install libx11-dev:i386
sudo apt-get install libreadline6-dev:i386
sudo apt-get install libgl1-mesa-glx:i386
此时,会报错:
Some packages could not be installed. This may mean that
you have requested an impossible situation or if you are using the
unstable that some required packages have not yet been created or
been moved out of Incoming.
The following information may help to resolve the
situation:
The following packages have unmet dependencies:
libgl1-mesa-glx:i386: Depends: libglapi-mesa:i386(=
8.0.4-0ubuntu0.7)
Recommends: libgl1-mesa-dri:i386
说明是要安装:libgl1-mesa-dir:i386
但当运行:
sudo apt-get install libgl1-mesa-dri:i386时,会发现,它试图Remove
ubuntu-desktop. 这是无论如何不能接受的。
然后观察它希望卸载的Package:libegl1-mesa-lts-trusty,
libgl1-mesa-dri-lts-trusty,
libwayland-egl1-mesa-lts-trusty....
他们有个共同点。 就是包名中包含lts-trusty. 这是Ubuntu14.04的代号。
可以看到libgl1-mesa-dri-Its-trusty已经存在。
则以为这安装 libgl1-mesa-glx:i386时缺乏libgl1-mesa-dri,其实是版本对应不上。
则Sam尝试安装libgl1-mesa-glx-lts-trusty:i386
sudo
apt-get install libgl1-mesa-glx-lts-trusty:i386
果然可以成功,且不需要Remove ubuntu-desktop 了。
sudo apt-get install libgl1-mesa-dev
sudo apt-get install g++-multilib
sudo apt-get install mingw32
sudo apt-get install tofrodos
sudo apt-get install python-markdown
sudo apt-get install libxml2-utils
sudo apt-get install xsltproc
sudo apt-get install zlib1g-dev:i386
sudo apt-get install lzop
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1
/usr/lib/i386-linux-gnu/libGL.so
2. 编译:
编译过程相对简单:
U-Boot编译:
$cd u-boot
$make rk322x_box_defconfig
$make
Kernel编译:
$cd kernel
$make rockchip_defconfig
$make rk3229-box.img
Android编译:
$source build/envsetup.sh
$source build.sh
$lunch rk322x_box-userdebug
$make
3. 烧入:
附1:
Ubuntu各版本的代号:
版本号 | 代号 | 发布时间 |
---|---|---|
16.10 | Yakkety Yak | 2016/10/13 |
16.04 | Xenial Xerus | 2016/04/21 |
15.10 | Wily Werewolf | 2015/10/24 |
15.04 | Vivid Vervet | 2015/04/22 |
14.10 | Utopic Unicorn | 2014/10/23 |
14.04 | LTS Trusty Tahr | 2014/04/18 |
13.10 | Saucy Salamander | 2013/10/17 |
13.04 | Raring Ringtail | 2013/04/25 |
12.10 | Quantal Quetzal | 2012/10/18 |
12.04 LTS | Precise Pangolin | 2012/04/26 |
11.10 | Oneiric Ocelot | 2011/10/13 |
11.04(Unity成为默认桌面环境) | Natty Narwhal | 2011/04/28 |
10.10 | Maverick Meerkat | 2010/10/10 |
10.04 LTS | Lucid Lynx | 2010/04/29 |
9.10 | Karmic Koala | 2009/10/29 |
9.04 | Jaunty Jackalope | 2009/04/23 |
8.10 | Intrepid Ibex | 2008/10/30 |
8.04 LTS | Hardy Heron | 2008/04/24 |
7.10 | Gutsy Gibbon | 2007/10/18 |
7.04 | Feisty Fawn | 2007/04/19 |
6.10 | Edgy Eft | 2006/10/26 |
6.06 LTS | Dapper Drake | 2006/06/01 |
5.10 | Breezy Badger | 2005/10/13 |
5.04 | Hoary Hedgehog | 2005/04/08 |
4.10(初始发布版本) | Warty Warthog | 2004/10/20 |
附录二:
一些软件包,是针对某个Ubuntu版本时,它会显示此版本Ubuntu的代号。