<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.radxa.com/mw/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MX-WANG</id>
		<title>Radxa Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.radxa.com/mw/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MX-WANG"/>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Special:Contributions/MX-WANG"/>
		<updated>2026-06-13T11:30:18Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.3</generator>

	<entry>
		<id>https://wiki.radxa.com/Rock/Android_Build/zh_cn</id>
		<title>Rock/Android Build/zh cn</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock/Android_Build/zh_cn"/>
				<updated>2014-09-27T04:55:55Z</updated>
		
		<summary type="html">&lt;p&gt;MX-WANG: /* 获取源码 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock/Android_Build}}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== 开始之前 ===&lt;br /&gt;
&lt;br /&gt;
    给radxa rock编译AOSP(Android Open Source Project)整个安卓系统源码是一项大工程，会很耗费时间和硬盘空间。你可以参考安卓官方的详细[http://source.android.com/source/building.html 系统要求页面]。推荐的编译主机是Ubuntu 12.04 64位。在我们的测试编译机器上一次完整编译总共花费了35分钟和30G的硬盘空间。配置Intel 4770处理器(第四代i7，四核八线程，3.4Ghz)，16G内存和256G固态硬盘(友情提示: 固态硬盘可以极大提高编译速度).&lt;br /&gt;
&lt;br /&gt;
=== 初始化编译环境 ===&lt;br /&gt;
    参考了安卓官方的环境搭建[http://source.android.com/source/initializing.html 教程]，下面是我们测试过的在全新的系统上可用的步骤。&lt;br /&gt;
* 安装JDK&lt;br /&gt;
    sudo add-apt-repository ppa:webupd8team/java&lt;br /&gt;
    sudo apt-get update&lt;br /&gt;
    sudo apt-get install oracle-java6-installer&lt;br /&gt;
* 安装所需要的包&lt;br /&gt;
    sudo apt-get install git gnupg flex bison gperf build-essential \&lt;br /&gt;
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \&lt;br /&gt;
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \&lt;br /&gt;
    g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\&lt;br /&gt;
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386&lt;br /&gt;
&lt;br /&gt;
注意: 在Ubuntu 13.10上，已经没有ia32-libs这个包，不需要安装这个包。&lt;br /&gt;
&lt;br /&gt;
* 安装ARM交叉编译器和编译内核相关依赖&lt;br /&gt;
    sudo apt-get install gcc-arm-linux-gnueabihf&lt;br /&gt;
    sudo apt-get install lzop libncurses5-dev&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    export CROSS_COMPILE=arm-linux-gnueabihf-&lt;br /&gt;
&lt;br /&gt;
* 安装其他所需要的运行库&lt;br /&gt;
    sudo apt-get install libssl1.0.0 libssl-dev&lt;br /&gt;
&lt;br /&gt;
=== 获取源码 ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (日本服务器)&lt;br /&gt;
&lt;br /&gt;
For android 4.2.2 Jelly Bean&lt;br /&gt;
    git clone -b radxa/radxa-dev git://git.jp.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git&lt;br /&gt;
&lt;br /&gt;
For android 4.4.2 KitKat&lt;br /&gt;
    git clone -b radxa/rock2014 git://git.jp.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk.git&lt;br /&gt;
    or 从百度云下载 http://pan.baidu.com/s/1hqorKva (China)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
注： 国内客户建议从百度云下载，速度较快;   rock,rock_pro,rock_lite可以用同一份代码(android 4.4版本), 编译时使用不同的配置即可&lt;br /&gt;
&lt;br /&gt;
=== 编译内核 ===&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    cd kernel&lt;br /&gt;
    make rk3188_radxa_rock_defconfig     #Use this config If you build the '''android 4.2 JB image for radxa rock'''&lt;br /&gt;
    make rk3188_radxa_rock_kitkat_defconfig     #Use this config If you build the '''android 4.4 KK image for radxa rock'''&lt;br /&gt;
    make rk3188_box_radxa_rock_pro_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''&lt;br /&gt;
    make rk3188_box_radxa_rock_lite_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''&lt;br /&gt;
    make kernel.img     #kernel.img is the normal kernel image with rockchip crc&lt;br /&gt;
    cd ..&lt;br /&gt;
&lt;br /&gt;
=== 编译安卓源码 ===&lt;br /&gt;
    source build/envsetup.sh&lt;br /&gt;
    lunch rk31sdk-eng     #Launch this config if you build '''android 4.2 JB for radxa rock'''&lt;br /&gt;
    lunch radxa_rock-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock'''&lt;br /&gt;
    lunch radxa_rock_pro-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''&lt;br /&gt;
    lunch radxa_rock_lite-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''&lt;br /&gt;
    make -j8&lt;br /&gt;
&lt;br /&gt;
=== 生成镜像 ===&lt;br /&gt;
    ./mkimage.sh ota&lt;br /&gt;
你会在rockdev/Image文件夹下得到boot.img recovery.img system.img分区镜像文件, 和 rockdev文件夹下的[[rock/update.img | update.img]]整个固件。&lt;br /&gt;
&lt;br /&gt;
=== 写入镜像(刷机) ===&lt;br /&gt;
参考[[rock/flash the image]]如何刷入你刚刚编出来的镜像。&lt;br /&gt;
&lt;br /&gt;
[[Category: Distributions]]&lt;br /&gt;
[[Category:Tutorial]]&lt;br /&gt;
[[Category:Android]]&lt;/div&gt;</summary>
		<author><name>MX-WANG</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock/Android_Build/zh_cn</id>
		<title>Rock/Android Build/zh cn</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock/Android_Build/zh_cn"/>
				<updated>2014-09-27T04:52:13Z</updated>
		
		<summary type="html">&lt;p&gt;MX-WANG: /* 编译安卓源码 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock/Android_Build}}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== 开始之前 ===&lt;br /&gt;
&lt;br /&gt;
    给radxa rock编译AOSP(Android Open Source Project)整个安卓系统源码是一项大工程，会很耗费时间和硬盘空间。你可以参考安卓官方的详细[http://source.android.com/source/building.html 系统要求页面]。推荐的编译主机是Ubuntu 12.04 64位。在我们的测试编译机器上一次完整编译总共花费了35分钟和30G的硬盘空间。配置Intel 4770处理器(第四代i7，四核八线程，3.4Ghz)，16G内存和256G固态硬盘(友情提示: 固态硬盘可以极大提高编译速度).&lt;br /&gt;
&lt;br /&gt;
=== 初始化编译环境 ===&lt;br /&gt;
    参考了安卓官方的环境搭建[http://source.android.com/source/initializing.html 教程]，下面是我们测试过的在全新的系统上可用的步骤。&lt;br /&gt;
* 安装JDK&lt;br /&gt;
    sudo add-apt-repository ppa:webupd8team/java&lt;br /&gt;
    sudo apt-get update&lt;br /&gt;
    sudo apt-get install oracle-java6-installer&lt;br /&gt;
* 安装所需要的包&lt;br /&gt;
    sudo apt-get install git gnupg flex bison gperf build-essential \&lt;br /&gt;
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \&lt;br /&gt;
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \&lt;br /&gt;
    g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\&lt;br /&gt;
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386&lt;br /&gt;
&lt;br /&gt;
注意: 在Ubuntu 13.10上，已经没有ia32-libs这个包，不需要安装这个包。&lt;br /&gt;
&lt;br /&gt;
* 安装ARM交叉编译器和编译内核相关依赖&lt;br /&gt;
    sudo apt-get install gcc-arm-linux-gnueabihf&lt;br /&gt;
    sudo apt-get install lzop libncurses5-dev&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    export CROSS_COMPILE=arm-linux-gnueabihf-&lt;br /&gt;
&lt;br /&gt;
* 安装其他所需要的运行库&lt;br /&gt;
    sudo apt-get install libssl1.0.0 libssl-dev&lt;br /&gt;
&lt;br /&gt;
=== 获取源码 ===&lt;br /&gt;
&lt;br /&gt;
    wget http://dl.radxa.com/rock/source/radxa_rock_android.tar.gz  #(也可以从: [http://pan.baidu.com/s/108kB8 百度云]下载)&lt;br /&gt;
    tar zxf radxa_rock_android.tar.gz&lt;br /&gt;
    cd radxa_rock_android&lt;br /&gt;
    git checkout .&lt;br /&gt;
&lt;br /&gt;
或者如果你能访问git服务器，可以以下命令获取代码:&lt;br /&gt;
    git clone -b radxa-dev git@git.linux-rockchip.org:radxa/radxa_rock_android.git&lt;br /&gt;
    cd radxa_rock_android&lt;br /&gt;
&lt;br /&gt;
注意: 如果有人知道怎么把这个大的代码仓库推送到github，让我们知道(写邮件到support@radxa.com)。我们因为大文件问题，不能推到github，尝试了各种方式均未成功。&lt;br /&gt;
&lt;br /&gt;
=== 编译内核 ===&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    cd kernel&lt;br /&gt;
    make rk3188_radxa_rock_defconfig     #Use this config If you build the '''android 4.2 JB image for radxa rock'''&lt;br /&gt;
    make rk3188_radxa_rock_kitkat_defconfig     #Use this config If you build the '''android 4.4 KK image for radxa rock'''&lt;br /&gt;
    make rk3188_box_radxa_rock_pro_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''&lt;br /&gt;
    make rk3188_box_radxa_rock_lite_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''&lt;br /&gt;
    make kernel.img     #kernel.img is the normal kernel image with rockchip crc&lt;br /&gt;
    cd ..&lt;br /&gt;
&lt;br /&gt;
=== 编译安卓源码 ===&lt;br /&gt;
    source build/envsetup.sh&lt;br /&gt;
    lunch rk31sdk-eng     #Launch this config if you build '''android 4.2 JB for radxa rock'''&lt;br /&gt;
    lunch radxa_rock-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock'''&lt;br /&gt;
    lunch radxa_rock_pro-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''&lt;br /&gt;
    lunch radxa_rock_lite-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''&lt;br /&gt;
    make -j8&lt;br /&gt;
&lt;br /&gt;
=== 生成镜像 ===&lt;br /&gt;
    ./mkimage.sh ota&lt;br /&gt;
你会在rockdev/Image文件夹下得到boot.img recovery.img system.img分区镜像文件, 和 rockdev文件夹下的[[rock/update.img | update.img]]整个固件。&lt;br /&gt;
&lt;br /&gt;
=== 写入镜像(刷机) ===&lt;br /&gt;
参考[[rock/flash the image]]如何刷入你刚刚编出来的镜像。&lt;br /&gt;
&lt;br /&gt;
[[Category: Distributions]]&lt;br /&gt;
[[Category:Tutorial]]&lt;br /&gt;
[[Category:Android]]&lt;/div&gt;</summary>
		<author><name>MX-WANG</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock/Android_Build/zh_cn</id>
		<title>Rock/Android Build/zh cn</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock/Android_Build/zh_cn"/>
				<updated>2014-09-27T04:51:14Z</updated>
		
		<summary type="html">&lt;p&gt;MX-WANG: /* 编译内核 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock/Android_Build}}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== 开始之前 ===&lt;br /&gt;
&lt;br /&gt;
    给radxa rock编译AOSP(Android Open Source Project)整个安卓系统源码是一项大工程，会很耗费时间和硬盘空间。你可以参考安卓官方的详细[http://source.android.com/source/building.html 系统要求页面]。推荐的编译主机是Ubuntu 12.04 64位。在我们的测试编译机器上一次完整编译总共花费了35分钟和30G的硬盘空间。配置Intel 4770处理器(第四代i7，四核八线程，3.4Ghz)，16G内存和256G固态硬盘(友情提示: 固态硬盘可以极大提高编译速度).&lt;br /&gt;
&lt;br /&gt;
=== 初始化编译环境 ===&lt;br /&gt;
    参考了安卓官方的环境搭建[http://source.android.com/source/initializing.html 教程]，下面是我们测试过的在全新的系统上可用的步骤。&lt;br /&gt;
* 安装JDK&lt;br /&gt;
    sudo add-apt-repository ppa:webupd8team/java&lt;br /&gt;
    sudo apt-get update&lt;br /&gt;
    sudo apt-get install oracle-java6-installer&lt;br /&gt;
* 安装所需要的包&lt;br /&gt;
    sudo apt-get install git gnupg flex bison gperf build-essential \&lt;br /&gt;
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \&lt;br /&gt;
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \&lt;br /&gt;
    g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\&lt;br /&gt;
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386&lt;br /&gt;
&lt;br /&gt;
注意: 在Ubuntu 13.10上，已经没有ia32-libs这个包，不需要安装这个包。&lt;br /&gt;
&lt;br /&gt;
* 安装ARM交叉编译器和编译内核相关依赖&lt;br /&gt;
    sudo apt-get install gcc-arm-linux-gnueabihf&lt;br /&gt;
    sudo apt-get install lzop libncurses5-dev&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    export CROSS_COMPILE=arm-linux-gnueabihf-&lt;br /&gt;
&lt;br /&gt;
* 安装其他所需要的运行库&lt;br /&gt;
    sudo apt-get install libssl1.0.0 libssl-dev&lt;br /&gt;
&lt;br /&gt;
=== 获取源码 ===&lt;br /&gt;
&lt;br /&gt;
    wget http://dl.radxa.com/rock/source/radxa_rock_android.tar.gz  #(也可以从: [http://pan.baidu.com/s/108kB8 百度云]下载)&lt;br /&gt;
    tar zxf radxa_rock_android.tar.gz&lt;br /&gt;
    cd radxa_rock_android&lt;br /&gt;
    git checkout .&lt;br /&gt;
&lt;br /&gt;
或者如果你能访问git服务器，可以以下命令获取代码:&lt;br /&gt;
    git clone -b radxa-dev git@git.linux-rockchip.org:radxa/radxa_rock_android.git&lt;br /&gt;
    cd radxa_rock_android&lt;br /&gt;
&lt;br /&gt;
注意: 如果有人知道怎么把这个大的代码仓库推送到github，让我们知道(写邮件到support@radxa.com)。我们因为大文件问题，不能推到github，尝试了各种方式均未成功。&lt;br /&gt;
&lt;br /&gt;
=== 编译内核 ===&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    cd kernel&lt;br /&gt;
    make rk3188_radxa_rock_defconfig     #Use this config If you build the '''android 4.2 JB image for radxa rock'''&lt;br /&gt;
    make rk3188_radxa_rock_kitkat_defconfig     #Use this config If you build the '''android 4.4 KK image for radxa rock'''&lt;br /&gt;
    make rk3188_box_radxa_rock_pro_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''&lt;br /&gt;
    make rk3188_box_radxa_rock_lite_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''&lt;br /&gt;
    make kernel.img     #kernel.img is the normal kernel image with rockchip crc&lt;br /&gt;
    cd ..&lt;br /&gt;
&lt;br /&gt;
=== 编译安卓源码 ===&lt;br /&gt;
    source build/envsetup.sh&lt;br /&gt;
    lunch rk31sdk-eng&lt;br /&gt;
    make -j8&lt;br /&gt;
&lt;br /&gt;
=== 生成镜像 ===&lt;br /&gt;
    ./mkimage.sh ota&lt;br /&gt;
你会在rockdev/Image文件夹下得到boot.img recovery.img system.img分区镜像文件, 和 rockdev文件夹下的[[rock/update.img | update.img]]整个固件。&lt;br /&gt;
&lt;br /&gt;
=== 写入镜像(刷机) ===&lt;br /&gt;
参考[[rock/flash the image]]如何刷入你刚刚编出来的镜像。&lt;br /&gt;
&lt;br /&gt;
[[Category: Distributions]]&lt;br /&gt;
[[Category:Tutorial]]&lt;br /&gt;
[[Category:Android]]&lt;/div&gt;</summary>
		<author><name>MX-WANG</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock/Android_Build</id>
		<title>Rock/Android Build</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock/Android_Build"/>
				<updated>2014-09-27T04:49:40Z</updated>
		
		<summary type="html">&lt;p&gt;MX-WANG: /* Build android source code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock/Android_Build}}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== Before start ===&lt;br /&gt;
&lt;br /&gt;
Building AOSP(Android Open Source Project) for radxa rock is a huge task, it takes a lot of time and disk space.  You can read the detail requirement of the machine on [http://source.android.com/source/building.html AOSP requirement page]. The recommend building OS is Ubuntu 12.04 64bit. It takes about 35 minutes and 30G disk space on a intel 4770 processor(i7, quad core, 3.4Ghz) machine with 16G ram and SSD.&lt;br /&gt;
&lt;br /&gt;
=== Initializing a Build Environment ===&lt;br /&gt;
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.&lt;br /&gt;
Install JDK&lt;br /&gt;
    sudo add-apt-repository ppa:webupd8team/java&lt;br /&gt;
    sudo apt-get update&lt;br /&gt;
    sudo apt-get install oracle-java6-installer&lt;br /&gt;
Install required packages - ubuntu 12.04&lt;br /&gt;
    sudo apt-get install git gnupg flex bison gperf build-essential \&lt;br /&gt;
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \&lt;br /&gt;
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \&lt;br /&gt;
    g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\&lt;br /&gt;
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386&lt;br /&gt;
&lt;br /&gt;
Install required packages - ubuntu 13.10 and 14.04&lt;br /&gt;
    sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\&lt;br /&gt;
    libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\&lt;br /&gt;
    libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\&lt;br /&gt;
    xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\&lt;br /&gt;
    lib32readline-gplv2-dev gcc-multilib libswitch-perl&lt;br /&gt;
&lt;br /&gt;
Install ARM toolchain and building kernel related pacakges &lt;br /&gt;
    sudo apt-get install gcc-arm-linux-gnueabihf&lt;br /&gt;
    sudo apt-get install lzop libncurses5-dev&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    export CROSS_COMPILE=arm-linux-gnueabihf-&lt;br /&gt;
Install libraries for other tools&lt;br /&gt;
    sudo apt-get install libssl1.0.0 libssl-dev&lt;br /&gt;
&lt;br /&gt;
=== Get the source code ===&lt;br /&gt;
&lt;br /&gt;
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (git.jp.linux-rockchip.org is located at Japan)&lt;br /&gt;
&lt;br /&gt;
For android 4.2.2 Jelly Bean&lt;br /&gt;
    git clone -b radxa/radxa-dev git://git.jp.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git&lt;br /&gt;
&lt;br /&gt;
For android 4.4.2 KitKat&lt;br /&gt;
    git clone -b radxa/rock2014 git://git.jp.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk.git&lt;br /&gt;
    or 从百度云下载 http://pan.baidu.com/s/1hqorKva (China)&lt;br /&gt;
&lt;br /&gt;
=== Build the kernel ===&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    cd kernel&lt;br /&gt;
    make rk3188_radxa_rock_defconfig     #Use this config If you build the '''android 4.2 JB image for radxa rock'''&lt;br /&gt;
    make rk3188_radxa_rock_kitkat_defconfig     #Use this config If you build the '''android 4.4 KK image for radxa rock'''&lt;br /&gt;
    make rk3188_box_radxa_rock_pro_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''&lt;br /&gt;
    make rk3188_box_radxa_rock_lite_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''&lt;br /&gt;
    make kernel.img     #kernel.img is the normal kernel image with rockchip crc&lt;br /&gt;
    cd ..&lt;br /&gt;
&lt;br /&gt;
=== Build android source code ===&lt;br /&gt;
    source build/envsetup.sh&lt;br /&gt;
    lunch rk31sdk-eng     #Launch this config if you build '''android 4.2 JB for radxa rock'''&lt;br /&gt;
    lunch radxa_rock-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock'''&lt;br /&gt;
    lunch radxa_rock_pro-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''&lt;br /&gt;
    lunch radxa_rock_lite-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''&lt;br /&gt;
    make -j8&lt;br /&gt;
&lt;br /&gt;
=== Generate the image ===&lt;br /&gt;
    ./mkimage.sh ota&lt;br /&gt;
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev&lt;br /&gt;
&lt;br /&gt;
=== Flash the image ===&lt;br /&gt;
Next, follow the [[rock/flash the image]] to flash the image you just build.&lt;br /&gt;
&lt;br /&gt;
== External reference ==&lt;br /&gt;
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/&lt;br /&gt;
&lt;br /&gt;
[[Category: Distributions]]&lt;br /&gt;
[[Category:Tutorial]]&lt;br /&gt;
[[Category:Android]]&lt;/div&gt;</summary>
		<author><name>MX-WANG</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock/Android_Build</id>
		<title>Rock/Android Build</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock/Android_Build"/>
				<updated>2014-09-27T04:48:48Z</updated>
		
		<summary type="html">&lt;p&gt;MX-WANG: /* Build the kernel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock/Android_Build}}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== Before start ===&lt;br /&gt;
&lt;br /&gt;
Building AOSP(Android Open Source Project) for radxa rock is a huge task, it takes a lot of time and disk space.  You can read the detail requirement of the machine on [http://source.android.com/source/building.html AOSP requirement page]. The recommend building OS is Ubuntu 12.04 64bit. It takes about 35 minutes and 30G disk space on a intel 4770 processor(i7, quad core, 3.4Ghz) machine with 16G ram and SSD.&lt;br /&gt;
&lt;br /&gt;
=== Initializing a Build Environment ===&lt;br /&gt;
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.&lt;br /&gt;
Install JDK&lt;br /&gt;
    sudo add-apt-repository ppa:webupd8team/java&lt;br /&gt;
    sudo apt-get update&lt;br /&gt;
    sudo apt-get install oracle-java6-installer&lt;br /&gt;
Install required packages - ubuntu 12.04&lt;br /&gt;
    sudo apt-get install git gnupg flex bison gperf build-essential \&lt;br /&gt;
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \&lt;br /&gt;
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \&lt;br /&gt;
    g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\&lt;br /&gt;
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386&lt;br /&gt;
&lt;br /&gt;
Install required packages - ubuntu 13.10 and 14.04&lt;br /&gt;
    sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\&lt;br /&gt;
    libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\&lt;br /&gt;
    libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\&lt;br /&gt;
    xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\&lt;br /&gt;
    lib32readline-gplv2-dev gcc-multilib libswitch-perl&lt;br /&gt;
&lt;br /&gt;
Install ARM toolchain and building kernel related pacakges &lt;br /&gt;
    sudo apt-get install gcc-arm-linux-gnueabihf&lt;br /&gt;
    sudo apt-get install lzop libncurses5-dev&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    export CROSS_COMPILE=arm-linux-gnueabihf-&lt;br /&gt;
Install libraries for other tools&lt;br /&gt;
    sudo apt-get install libssl1.0.0 libssl-dev&lt;br /&gt;
&lt;br /&gt;
=== Get the source code ===&lt;br /&gt;
&lt;br /&gt;
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (git.jp.linux-rockchip.org is located at Japan)&lt;br /&gt;
&lt;br /&gt;
For android 4.2.2 Jelly Bean&lt;br /&gt;
    git clone -b radxa/radxa-dev git://git.jp.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git&lt;br /&gt;
&lt;br /&gt;
For android 4.4.2 KitKat&lt;br /&gt;
    git clone -b radxa/rock2014 git://git.jp.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk.git&lt;br /&gt;
    or 从百度云下载 http://pan.baidu.com/s/1hqorKva (China)&lt;br /&gt;
&lt;br /&gt;
=== Build the kernel ===&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    cd kernel&lt;br /&gt;
    make rk3188_radxa_rock_defconfig     #Use this config If you build the '''android 4.2 JB image for radxa rock'''&lt;br /&gt;
    make rk3188_radxa_rock_kitkat_defconfig     #Use this config If you build the '''android 4.4 KK image for radxa rock'''&lt;br /&gt;
    make rk3188_box_radxa_rock_pro_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''&lt;br /&gt;
    make rk3188_box_radxa_rock_lite_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''&lt;br /&gt;
    make kernel.img     #kernel.img is the normal kernel image with rockchip crc&lt;br /&gt;
    cd ..&lt;br /&gt;
&lt;br /&gt;
=== Build android source code ===&lt;br /&gt;
    source build/envsetup.sh&lt;br /&gt;
    lunch rk31sdk-eng     #Launch this config if you build '''android 4.2 JB for radxa rock'''&lt;br /&gt;
    lunch radxa_rock-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock'''&lt;br /&gt;
    lunch radxa_rock_pro-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''&lt;br /&gt;
    make -j8&lt;br /&gt;
&lt;br /&gt;
=== Generate the image ===&lt;br /&gt;
    ./mkimage.sh ota&lt;br /&gt;
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev&lt;br /&gt;
&lt;br /&gt;
=== Flash the image ===&lt;br /&gt;
Next, follow the [[rock/flash the image]] to flash the image you just build.&lt;br /&gt;
&lt;br /&gt;
== External reference ==&lt;br /&gt;
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/&lt;br /&gt;
&lt;br /&gt;
[[Category: Distributions]]&lt;br /&gt;
[[Category:Tutorial]]&lt;br /&gt;
[[Category:Android]]&lt;/div&gt;</summary>
		<author><name>MX-WANG</name></author>	</entry>

	<entry>
		<id>https://wiki.radxa.com/Rock/Android_Build</id>
		<title>Rock/Android Build</title>
		<link rel="alternate" type="text/html" href="https://wiki.radxa.com/Rock/Android_Build"/>
				<updated>2014-09-27T04:47:28Z</updated>
		
		<summary type="html">&lt;p&gt;MX-WANG: /* Get the source code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
{{Languages|rock/Android_Build}}&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
=== Before start ===&lt;br /&gt;
&lt;br /&gt;
Building AOSP(Android Open Source Project) for radxa rock is a huge task, it takes a lot of time and disk space.  You can read the detail requirement of the machine on [http://source.android.com/source/building.html AOSP requirement page]. The recommend building OS is Ubuntu 12.04 64bit. It takes about 35 minutes and 30G disk space on a intel 4770 processor(i7, quad core, 3.4Ghz) machine with 16G ram and SSD.&lt;br /&gt;
&lt;br /&gt;
=== Initializing a Build Environment ===&lt;br /&gt;
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.&lt;br /&gt;
Install JDK&lt;br /&gt;
    sudo add-apt-repository ppa:webupd8team/java&lt;br /&gt;
    sudo apt-get update&lt;br /&gt;
    sudo apt-get install oracle-java6-installer&lt;br /&gt;
Install required packages - ubuntu 12.04&lt;br /&gt;
    sudo apt-get install git gnupg flex bison gperf build-essential \&lt;br /&gt;
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \&lt;br /&gt;
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \&lt;br /&gt;
    g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\&lt;br /&gt;
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386&lt;br /&gt;
&lt;br /&gt;
Install required packages - ubuntu 13.10 and 14.04&lt;br /&gt;
    sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\&lt;br /&gt;
    libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\&lt;br /&gt;
    libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\&lt;br /&gt;
    xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\&lt;br /&gt;
    lib32readline-gplv2-dev gcc-multilib libswitch-perl&lt;br /&gt;
&lt;br /&gt;
Install ARM toolchain and building kernel related pacakges &lt;br /&gt;
    sudo apt-get install gcc-arm-linux-gnueabihf&lt;br /&gt;
    sudo apt-get install lzop libncurses5-dev&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    export CROSS_COMPILE=arm-linux-gnueabihf-&lt;br /&gt;
Install libraries for other tools&lt;br /&gt;
    sudo apt-get install libssl1.0.0 libssl-dev&lt;br /&gt;
&lt;br /&gt;
=== Get the source code ===&lt;br /&gt;
&lt;br /&gt;
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (git.jp.linux-rockchip.org is located at Japan)&lt;br /&gt;
&lt;br /&gt;
For android 4.2.2 Jelly Bean&lt;br /&gt;
    git clone -b radxa/radxa-dev git://git.jp.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git&lt;br /&gt;
&lt;br /&gt;
For android 4.4.2 KitKat&lt;br /&gt;
    git clone -b radxa/rock2014 git://git.jp.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk.git&lt;br /&gt;
    or 从百度云下载 http://pan.baidu.com/s/1hqorKva (China)&lt;br /&gt;
&lt;br /&gt;
=== Build the kernel ===&lt;br /&gt;
    export ARCH=arm&lt;br /&gt;
    cd kernel&lt;br /&gt;
    make rk3188_radxa_rock_defconfig     #Use this config If you build the '''android 4.2 JB image for radxa rock'''&lt;br /&gt;
    make rk3188_radxa_rock_kitkat_defconfig     #Use this config If you build the '''android 4.4 KK image for radxa rock'''&lt;br /&gt;
    make rk3188_box_radxa_rock_pro_hdmi_defconfig     #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''&lt;br /&gt;
    make kernel.img     #kernel.img is the normal kernel image with rockchip crc&lt;br /&gt;
    cd ..&lt;br /&gt;
&lt;br /&gt;
=== Build android source code ===&lt;br /&gt;
    source build/envsetup.sh&lt;br /&gt;
    lunch rk31sdk-eng     #Launch this config if you build '''android 4.2 JB for radxa rock'''&lt;br /&gt;
    lunch radxa_rock-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock'''&lt;br /&gt;
    lunch radxa_rock_pro-eng    #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''&lt;br /&gt;
    make -j8&lt;br /&gt;
&lt;br /&gt;
=== Generate the image ===&lt;br /&gt;
    ./mkimage.sh ota&lt;br /&gt;
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev&lt;br /&gt;
&lt;br /&gt;
=== Flash the image ===&lt;br /&gt;
Next, follow the [[rock/flash the image]] to flash the image you just build.&lt;br /&gt;
&lt;br /&gt;
== External reference ==&lt;br /&gt;
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/&lt;br /&gt;
&lt;br /&gt;
[[Category: Distributions]]&lt;br /&gt;
[[Category:Tutorial]]&lt;br /&gt;
[[Category:Android]]&lt;/div&gt;</summary>
		<author><name>MX-WANG</name></author>	</entry>

	</feed>