https://wiki.radxa.com/mw/api.php?action=feedcontributions&user=Naobsd&feedformat=atomRadxa Wiki - User contributions [en]2024-03-29T13:29:15ZUser contributionsMediaWiki 1.23.3https://wiki.radxa.com/Rock/Android_BuildRock/Android Build2016-01-30T02:52:07Z<p>Naobsd: </p>
<hr />
<div>{{rock_header}}<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== Before start ===<br />
<br />
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.<br />
<br />
=== Initializing a Build Environment ===<br />
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.<br />
Install JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
'''Note if the sdk is android5.x you should install java 7 as below'''<br />
sudo apt-get install openjdk-7-jdk<br />
<br />
Install required packages - ubuntu 12.04<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
Install required packages - ubuntu 13.10 and 14.04<br />
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\<br />
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\<br />
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\<br />
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\<br />
lib32readline-gplv2-dev gcc-multilib libswitch-perl<br />
<br />
Install ARM toolchain and building kernel related pacakges <br />
sudo apt-get install lzop libncurses5-dev<br />
Install libraries for other tools<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== Get the source code ===<br />
<br />
Git clone from the [http://linux-rockchip.org/ linux-rockchip mirror servers]. (git.us.linux-rockchip.org is located at U.S.A.)<br />
<br />
For android 4.2.2 Jelly Bean (rock)<br />
git clone -b radxa/radxa-dev [http://git.us.linux-rockchip.org/cgit/rk3188_r-box_android4.2.2_sdk http://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk]<br />
<br />
For android 4.2.2 Jelly Bean (rock pro)<br />
git clone -b radxa/radxa-dev-rock_pro [http://git.us.linux-rockchip.org/cgit/rk3188_r-box_android4.2.2_sdk/ http://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk]<br />
<br />
For android 4.4.2 KitKat (rock pro & rock lite)<br />
Download here [http://dl.radxa.com/rock_pro/source/radxa_rock_android4-4_141219.tar.gz radxa_rock_android4-4_141219.tar.gz]<br />
or download from Baidu Yun http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
Note: After unzip the file please run git checkout . to get the code<br />
<br />
=== Build the kernel ===<br />
<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
'''note''': if you want to build android '''sdcard image for rock pro''', you need to run make menuconfig and go to Device Drivers ---> MMC/SD/SDIO card support, and disable RK29 SDMMC0 controller support(sdmmc), for rock lite the sdmmc0 driver is already disabled in defconfig.<br />
<br />
=== Build android source code ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== Generate the image ===<br />
./mkimage.sh ota<br />
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev<br />
<br />
generate the image for '''sdcard'''(optional)<br />
<br />
cd rockdev && ./mksdimge.sh<br />
<br />
android_xx-xx-x_sdcard.img is the generated image for sd card. <br />
<br />
'''Note: How to write the image on sdcard, you can refer to http://radxa.com/Rock/SD_images , You can't use SD_Firmware_Tool._v1.43.zip''' <br />
<br />
=== Flash the image ===<br />
Next, follow the [[rock/flash the image | flash to NAND flash]] to flash the image to NADN flash you just build. Or follow [[Rock/SD_images| flash to sd card]] to write the image on sd card.<br />
<br />
== External reference ==<br />
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Android_Build/zh_cnRock/Android Build/zh cn2016-01-30T02:51:32Z<p>Naobsd: </p>
<hr />
<div><br />
<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== 开始之前 ===<br />
<br />
给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固态硬盘(友情提示: 固态硬盘可以极大提高编译速度).<br />
<br />
=== 初始化编译环境 ===<br />
参考了安卓官方的环境搭建[http://source.android.com/source/initializing.html 教程],下面是我们测试过的在全新的系统上可用的步骤。<br />
* 安装JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
* 安装所需要的包<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
注意: 在Ubuntu 13.10上,已经没有ia32-libs这个包,不需要安装这个包。<br />
<br />
* 安装ARM交叉编译器和编译内核相关依赖<br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
<br />
* 安装其他所需要的运行库<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== 获取源码 ===<br />
<br />
<br />
Git clone from the [http://linux-rockchip.org/ linux-rockchip mirror servers]. (日本服务器)<br />
<br />
For android 4.2.2 Jelly Bean<br />
git clone -b radxa/radxa-dev [http://git.us.linux-rockchip.org/cgit/rk3188_r-box_android4.2.2_sdk/ http://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk]<br />
<br />
For android 4.4.2 KitKat<br />
git clone -b radxa/rock2014 [http://git.us.linux-rockchip.org/cgit/rk3188_rk3066_r-box_android4.4.2_sdk/ http://git.us.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk]<br />
or 从百度云下载 http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
<br />
注: 国内客户建议从百度云下载,速度较快; rock,rock_pro,rock_lite可以用同一份代码(android 4.4版本), 编译时使用不同的配置即可<br />
<br />
=== 编译内核 ===<br />
export ARCH=arm<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
=== 编译安卓源码 ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== 生成镜像 ===<br />
./mkimage.sh ota<br />
你会在rockdev/Image文件夹下得到boot.img recovery.img system.img分区镜像文件, 和 rockdev文件夹下的[[rock/update.img | update.img]]整个固件。<br />
<br />
=== 写入镜像(刷机) ===<br />
参考[[rock/flash the image]]如何刷入你刚刚编出来的镜像。<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/downloadRock/download2016-01-30T02:48:33Z<p>Naobsd: </p>
<hr />
<div>{{rock_header}}<br />
<div class="clearfix"></div><br />
<br />
__NOTOC__<br />
{{DISPLAYTITLE: Rock Download<span style="display: none"></span>}}<br />
<div class="col-md-12"><br />
<h3 class="brand-name text-center" style="margin-top:0px;"><span class="label label-default">Downloads</span></h3><br />
<hr class="tagline-divider" /><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Tools</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Description</th><br />
<th>Linux</th><br />
<th>Windows</th><br />
<th>Note</th><br />
</tr><br />
<tr><br />
<td><small>Firmware upgrade tool – Format and install firmware to NAND flash</small></td><br />
<td>[http://dl.radxa.com/rock/tools/linux/Linux_Upgrade_Tool_v1.21.zip Linux_Upgrade_Tool_v1.21.zip] (1.9M)</td><br />
<td>[http://dl.radxa.com/rock/tools/windows/RK_BatchTool_V1.7.zip RK_BatchTool_V1.7.zip (567K)]</td><br />
<td>[[rock/flash the image|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Partition upgrade tool – Install images to NAND flash by partitions</small></td><br />
<td>[http://dl.radxa.com/rock/tools/linux/rkflashkit_0.1.1_all.deb rkflashkit_0.1.1_all.deb (143K)]</td><br />
<td>[http://dl.radxa.com/rock/tools/windows/RKDevelopTool_v1.37.zip RKDevelopTool_v1.37.zip (534K)]</td><br />
<td>[[rock/flash the image|Readme]]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Images</span></h4><br />
[[rock/prebuilt_images|Prebuilt Images]]<br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Source code</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Name</th><br />
<th>Download</th><br />
<th>How to</th><br />
</tr><br />
<tr><br />
<td><small>Android Jelly Bean 4.2.2 source code</small></td><br />
<td>Git clone '''radxa/rock-dev''' branch of '''rk3188_r-box_android4.2.2_sdk''' repo from the [http://linux-rockchip.org/ linux-rockchip git mirrors]</td><br />
<td>[[Rock/Android Build|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Android Kitkat 4.4.2 source code</small></td><br />
<td>Git clone '''radxa/rock2014''' branch of '''rk3188_rk3066_r-box_android4.4.2_sdk''' repo from the [http://linux-rockchip.org/ linux-rockchip git mirrors]</td><br />
<td>[[Rock/Android Build|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Linux kernel 3.0.36</small></td><br />
<td>git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git</td><br />
<td>[[Rock/Booting Linux|Readme]]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Hardware</span></h4><br />
<div class="table-responsive"><br />
[[Rock/hardware_docs |Hardware Documents]]<br />
</div><br />
</div></div>Naobsdhttps://wiki.radxa.com/Rock/Android_Build/zh_cnRock/Android Build/zh cn2016-01-30T02:47:34Z<p>Naobsd: </p>
<hr />
<div><br />
<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== 开始之前 ===<br />
<br />
给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固态硬盘(友情提示: 固态硬盘可以极大提高编译速度).<br />
<br />
=== 初始化编译环境 ===<br />
参考了安卓官方的环境搭建[http://source.android.com/source/initializing.html 教程],下面是我们测试过的在全新的系统上可用的步骤。<br />
* 安装JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
* 安装所需要的包<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
注意: 在Ubuntu 13.10上,已经没有ia32-libs这个包,不需要安装这个包。<br />
<br />
* 安装ARM交叉编译器和编译内核相关依赖<br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
<br />
* 安装其他所需要的运行库<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== 获取源码 ===<br />
<br />
<br />
Git clone from the [http://linux-rockchip.org/ linux-rockchip mirror servers]. (日本服务器)<br />
<br />
For android 4.2.2 Jelly Bean<br />
git clone -b radxa/radxa-dev http://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk<br />
<br />
For android 4.4.2 KitKat<br />
git clone -b radxa/rock2014 http://git.us.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk<br />
or 从百度云下载 http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
<br />
注: 国内客户建议从百度云下载,速度较快; rock,rock_pro,rock_lite可以用同一份代码(android 4.4版本), 编译时使用不同的配置即可<br />
<br />
=== 编译内核 ===<br />
export ARCH=arm<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
=== 编译安卓源码 ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== 生成镜像 ===<br />
./mkimage.sh ota<br />
你会在rockdev/Image文件夹下得到boot.img recovery.img system.img分区镜像文件, 和 rockdev文件夹下的[[rock/update.img | update.img]]整个固件。<br />
<br />
=== 写入镜像(刷机) ===<br />
参考[[rock/flash the image]]如何刷入你刚刚编出来的镜像。<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Android_BuildRock/Android Build2016-01-30T02:44:43Z<p>Naobsd: </p>
<hr />
<div>{{rock_header}}<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== Before start ===<br />
<br />
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.<br />
<br />
=== Initializing a Build Environment ===<br />
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.<br />
Install JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
'''Note if the sdk is android5.x you should install java 7 as below'''<br />
sudo apt-get install openjdk-7-jdk<br />
<br />
Install required packages - ubuntu 12.04<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
Install required packages - ubuntu 13.10 and 14.04<br />
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\<br />
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\<br />
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\<br />
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\<br />
lib32readline-gplv2-dev gcc-multilib libswitch-perl<br />
<br />
Install ARM toolchain and building kernel related pacakges <br />
sudo apt-get install lzop libncurses5-dev<br />
Install libraries for other tools<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== Get the source code ===<br />
<br />
Git clone from the [http://linux-rockchip.org/ linux-rockchip mirror servers]. (git.us.linux-rockchip.org is located at U.S.A.)<br />
<br />
For android 4.2.2 Jelly Bean (rock)<br />
git clone -b radxa/radxa-dev http://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk<br />
<br />
For android 4.2.2 Jelly Bean (rock pro)<br />
git clone -b radxa/radxa-dev-rock_pro http://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk<br />
<br />
For android 4.4.2 KitKat (rock pro & rock lite)<br />
Download here [http://dl.radxa.com/rock_pro/source/radxa_rock_android4-4_141219.tar.gz radxa_rock_android4-4_141219.tar.gz]<br />
or download from Baidu Yun http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
Note: After unzip the file please run git checkout . to get the code<br />
<br />
=== Build the kernel ===<br />
<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
'''note''': if you want to build android '''sdcard image for rock pro''', you need to run make menuconfig and go to Device Drivers ---> MMC/SD/SDIO card support, and disable RK29 SDMMC0 controller support(sdmmc), for rock lite the sdmmc0 driver is already disabled in defconfig.<br />
<br />
=== Build android source code ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== Generate the image ===<br />
./mkimage.sh ota<br />
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev<br />
<br />
generate the image for '''sdcard'''(optional)<br />
<br />
cd rockdev && ./mksdimge.sh<br />
<br />
android_xx-xx-x_sdcard.img is the generated image for sd card. <br />
<br />
'''Note: How to write the image on sdcard, you can refer to http://radxa.com/Rock/SD_images , You can't use SD_Firmware_Tool._v1.43.zip''' <br />
<br />
=== Flash the image ===<br />
Next, follow the [[rock/flash the image | flash to NAND flash]] to flash the image to NADN flash you just build. Or follow [[Rock/SD_images| flash to sd card]] to write the image on sd card.<br />
<br />
== External reference ==<br />
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Android_BuildRock/Android Build2015-08-06T01:28:05Z<p>Naobsd: </p>
<hr />
<div>{{rock_header}}<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== Before start ===<br />
<br />
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.<br />
<br />
=== Initializing a Build Environment ===<br />
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.<br />
Install JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
Install required packages - ubuntu 12.04<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
Install required packages - ubuntu 13.10 and 14.04<br />
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\<br />
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\<br />
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\<br />
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\<br />
lib32readline-gplv2-dev gcc-multilib libswitch-perl<br />
<br />
Install ARM toolchain and building kernel related pacakges <br />
sudo apt-get install lzop libncurses5-dev<br />
Install libraries for other tools<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== Get the source code ===<br />
<br />
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (git.us.linux-rockchip.org is located at U.S.A.)<br />
<br />
For android 4.2.2 Jelly Bean (rock)<br />
git clone -b radxa/radxa-dev git://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git<br />
<br />
For android 4.2.2 Jelly Bean (rock pro)<br />
git clone -b radxa/radxa-dev-rock_pro git://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git<br />
<br />
For android 4.4.2 KitKat (rock pro & rock lite)<br />
Download here [http://dl.radxa.com/rock_pro/source/radxa_rock_android4-4_141219.tar.gz radxa_rock_android4-4_141219.tar.gz]<br />
or download from Baidu Yun http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
Note: After unzip the file please run git checkout . to get the code<br />
<br />
=== Build the kernel ===<br />
<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
'''note''': if you want to build android '''sdcard image for rock pro''', you need to run make menuconfig and go to Device Drivers ---> MMC/SD/SDIO card support, and disable RK29 SDMMC0 controller support(sdmmc), for rock lite the sdmmc0 driver is already disabled in defconfig.<br />
<br />
=== Build android source code ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== Generate the image ===<br />
./mkimage.sh ota<br />
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev<br />
<br />
generate the image for '''sdcard'''(optional)<br />
<br />
cd rockdev && ./mksdimge.sh<br />
<br />
android_xx-xx-x_sdcard.img is the generated image for sd card. <br />
<br />
'''Note: How to write the image on sdcard, you can refer to http://radxa.com/Rock/SD_images , You can't use SD_Firmware_Tool._v1.43.zip''' <br />
<br />
=== Flash the image ===<br />
Next, follow the [[rock/flash the image | flash to NAND flash]] to flash the image to NADN flash you just build. Or follow [[Rock/SD_images| flash to sd card]] to write the image on sd card.<br />
<br />
== External reference ==<br />
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/prebuilt_imagesRock/prebuilt images2015-04-07T02:33:53Z<p>Naobsd: </p>
<hr />
<div>{{Rock_header}}<br />
{{Languages|rock/prebuilt_images}}<br />
<br />
<br />
<div class="col-md-6"><br />
This page collects the ready to install/flash image which works on the radxa rock.<br />
<br />
{| class="wikitable" border="1"<br />
|-<br />
! [[Rock/flash the image | how to install NAND image]]<br />
! [[Rock/SD images | how to install SD card image]]<br />
|}<br />
<br />
'''check [[Rock/hardware revision | hardware revision]], firmware is different!'''<br />
</div><br />
__TOC__<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>Nand</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140909_nand.zip kitkat_r2_140909_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140911_sdcard.zip kitkat_r2_140911_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td>[http://dl.radxa.com/rock/images/debian/radxa_rock_debian_wheezy_141029_nand.zip debian_wheezy_141029_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 13.09 server</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_13.09_server_140315_nand.zip ubuntu_13.09_server_140315_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 13.09 desktop</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_13.09_desktop_140318_nand.zip ubuntu_13.09_desktop_140318_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_server_140820_nand.zip ubuntu_14.04_server_140820_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_desktop_fhd_140823_nand.zip ubuntu_14.04_desktop_fhd_140823_nand.zip]</td><br />
<td></td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock Lite</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock_lite/images/android/radxa_rock_lite_android_kitkat_140911_sdcard.zip android_kitkat_140911_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Dual boot</td><br />
<td>[http://dl.radxa.com/rock_lite/images/dual_boot/radxa_rock_ite_android_ubuntu_dual_boot_141107_sdcard.zip android_ubuntu_dual_boot_141107_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip ubuntu_14.04_server_141030_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_desktop_fhd_141105_sdcard.zip ubuntu_14.04_desktop_fhd_141105_sdcard.zip]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock Pro</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>Nand</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_20150403_nand.zip android_kitkat_hdmi_20150403_nand.zip] [http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_lvds_141009_nand.zip android_kitkat_lvds_141009_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_141031_sdcard.zip android_kitkat_hdmi_141031_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td>[http://dl.radxa.com/rock_pro/images/debian/nand/radxa_rock_pro_debian_wheezy_150128_nand.zip debian_wheezy_150128_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Dual boot</td><br />
<td>[http://dl.radxa.com/rock_pro/images/dual_boot/radxa_rock_pro_dual_boot_20141022_nand.zip dual_boot_20141022_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_server_140819_nand.zip ubuntu_14.04_server_140819_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip ubuntu_14.04_server_141030_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_desktop_fhd_140823_nand.zip ubuntu_14.04_desktop_fhd_140823_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_ubuntu_14.04_desktop_140826_sdcard.zip ubuntu_14.04_desktop_140826_sdcard.zip] [http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_lite_ubuntu_14.04_desktop_fhd_141124_sdcard.zip ubuntu_14.04_desktop_fhd_141124_sdcard.zip]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock2 Square</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>EMMC</th><br />
<br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock2/images/android/rock2_square_android_kitkat_hdmi_150324_emmc.zip rock2_square_android_kitkat_hdmi_150324_emmc.zip ] <br />
</tr><br />
<br />
</table><br />
</div><br />
</div></div>Naobsdhttps://wiki.radxa.com/Rock/prebuilt_imagesRock/prebuilt images2015-04-07T02:33:07Z<p>Naobsd: </p>
<hr />
<div>{{Rock_header}}<br />
{{Languages|rock/prebuilt_images}}<br />
<br />
<br />
<div class="col-md-6"><br />
This page collects the ready to install/flash image which works on the radxa rock.<br />
<br />
{| class="wikitable" border="1"<br />
|-<br />
! [[Rock/flash the image | how to install NAND image]]<br />
! [[Rock/SD images | how to install SD card image]]<br />
|}<br />
<br />
'''check [[Rock/hardware revision | hardware revision]], firmware is different!'''<br />
</div><br />
__TOC__<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>Nand</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140909_nand.zip kitkat_r2_140909_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140911_sdcard.zip kitkat_r2_140911_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td>[http://dl.radxa.com/rock/images/debian/radxa_rock_debian_wheezy_141029_nand.zip debian_wheezy_141029_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 13.09 server</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_13.09_server_140315_nand.zip ubuntu_13.09_server_140315_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 13.09 desktop</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_13.09_desktop_140318_nand.zip ubuntu_13.09_desktop_140318_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_server_140820_nand.zip ubuntu_14.04_server_140820_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_desktop_fhd_140823_nand.zip ubuntu_14.04_desktop_fhd_140823_nand.zip]</td><br />
<td></td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock Lite</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock_lite/images/android/radxa_rock_lite_android_kitkat_140911_sdcard.zip android_kitkat_140911_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Dual boot</td><br />
<td>[http://dl.radxa.com/rock_lite/images/dual_boot/radxa_rock_ite_android_ubuntu_dual_boot_141107_sdcard.zip radxa_rock_ite_android_ubuntu_dual_boot_141107_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip ubuntu_14.04_server_141030_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_desktop_fhd_141105_sdcard.zip ubuntu_14.04_desktop_fhd_141105_sdcard.zip]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock Pro</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>Nand</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_20150403_nand.zip android_kitkat_hdmi_20150403_nand.zip] [http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_lvds_141009_nand.zip android_kitkat_lvds_141009_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_141031_sdcard.zip android_kitkat_hdmi_141031_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td>[http://dl.radxa.com/rock_pro/images/debian/nand/radxa_rock_pro_debian_wheezy_150128_nand.zip debian_wheezy_150128_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Dual boot</td><br />
<td>[http://dl.radxa.com/rock_pro/images/dual_boot/radxa_rock_pro_dual_boot_20141022_nand.zip dual_boot_20141022_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_server_140819_nand.zip ubuntu_14.04_server_140819_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip ubuntu_14.04_server_141030_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_desktop_fhd_140823_nand.zip ubuntu_14.04_desktop_fhd_140823_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_ubuntu_14.04_desktop_140826_sdcard.zip ubuntu_14.04_desktop_140826_sdcard.zip] [http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_lite_ubuntu_14.04_desktop_fhd_141124_sdcard.zip ubuntu_14.04_desktop_fhd_141124_sdcard.zip]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock2 Square</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>EMMC</th><br />
<br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock2/images/android/rock2_square_android_kitkat_hdmi_150324_emmc.zip rock2_square_android_kitkat_hdmi_150324_emmc.zip ] <br />
</tr><br />
<br />
</table><br />
</div><br />
</div></div>Naobsdhttps://wiki.radxa.com/Rock/prebuilt_imagesRock/prebuilt images2015-04-07T02:32:00Z<p>Naobsd: </p>
<hr />
<div>{{Rock_header}}<br />
{{Languages|rock/prebuilt_images}}<br />
<br />
<br />
<div class="col-md-6"><br />
This page collects the ready to install/flash image which works on the radxa rock.<br />
<br />
{| class="wikitable" border="1"<br />
|-<br />
! [[Rock/flash the image | how to install NAND image]]<br />
! [[Rock/SD images | how to install SD card image]]<br />
|}<br />
<br />
'''check [[Rock/hardware revision | hardware revision]], firmware is different!'''<br />
</div><br />
__TOC__<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>Nand</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140909_nand.zip kitkat_r2_140909_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140911_sdcard.zip kitkat_r2_140911_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td>[http://dl.radxa.com/rock/images/debian/radxa_rock_debian_wheezy_141029_nand.zip debian_wheezy_141029_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 13.09 server</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_13.09_server_140315_nand.zip ubuntu_13.09_server_140315_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 13.09 desktop</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_13.09_desktop_140318_nand.zip ubuntu_13.09_desktop_140318_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_server_140820_nand.zip ubuntu_14.04_server_140820_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_desktop_fhd_140823_nand.zip ubuntu_14.04_desktop_fhd_140823_nand.zip]</td><br />
<td></td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock Lite</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock_lite/images/android/radxa_rock_lite_android_kitkat_140911_sdcard.zip android_kitkat_140911_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Dual boot</td><br />
<td>[http://dl.radxa.com/rock_lite/images/dual_boot/radxa_rock_ite_android_ubuntu_dual_boot_141107_sdcard.zip radxa_rock_ite_android_ubuntu_dual_boot_141107_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip ubuntu_14.04_server_141030_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_desktop_fhd_141105_sdcard.zip ubuntu_14.04_desktop_fhd_141105_sdcard.zip]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock Pro</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>Nand</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_20150403_nand.zip radxa_rock_pro_android_kitkat_hdmi_20150403_nand.zip] [http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_lvds_141009_nand.zip android_kitkat_lvds_141009_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_141031_sdcard.zip android_kitkat_hdmi_141031_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td>[http://dl.radxa.com/rock_pro/images/debian/nand/radxa_rock_pro_debian_wheezy_150128_nand.zip debian_wheezy_150128_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Dual boot</td><br />
<td>[http://dl.radxa.com/rock_pro/images/dual_boot/radxa_rock_pro_dual_boot_20141022_nand.zip radxa_rock_pro_dual_boot_20141022_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_server_140819_nand.zip ubuntu_14.04_server_140819_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip ubuntu_14.04_server_141030_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_desktop_fhd_140823_nand.zip ubuntu_14.04_desktop_fhd_140823_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_ubuntu_14.04_desktop_140826_sdcard.zip ubuntu_14.04_desktop_140826_sdcard.zip] [http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_lite_ubuntu_14.04_desktop_fhd_141124_sdcard.zip ubuntu_14.04_desktop_fhd_141124_sdcard.zip]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock2 Square</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>EMMC</th><br />
<br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock2/images/android/rock2_square_android_kitkat_hdmi_150324_emmc.zip rock2_square_android_kitkat_hdmi_150324_emmc.zip ] <br />
</tr><br />
<br />
</table><br />
</div><br />
</div></div>Naobsdhttps://wiki.radxa.com/Rock/prebuilt_imagesRock/prebuilt images2015-04-06T08:08:02Z<p>Naobsd: Undo revision 1616 by PeiYao Wang (talk)</p>
<hr />
<div>{{Rock_header}}<br />
{{Languages|rock/prebuilt_images}}<br />
<br />
<br />
<div class="col-md-6"><br />
This page collects the ready to install/flash image which works on the radxa rock.<br />
<br />
{| class="wikitable" border="1"<br />
|-<br />
! [[Rock/flash the image | how to install NAND image]]<br />
! [[Rock/SD images | how to install SD card image]]<br />
|}<br />
<br />
'''check [[Rock/hardware revision | hardware revision]], firmware is different!'''<br />
</div><br />
__TOC__<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>Nand</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140909_nand.zip kitkat_r2_140909_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140911_sdcard.zip kitkat_r2_140911_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td>[http://dl.radxa.com/rock/images/debian/radxa_rock_debian_wheezy_141029_nand.zip debian_wheezy_141029_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 13.09 server</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_13.09_server_140315_nand.zip ubuntu_13.09_server_140315_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 13.09 desktop</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_13.09_desktop_140318_nand.zip ubuntu_13.09_desktop_140318_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_server_140820_nand.zip ubuntu_14.04_server_140820_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_desktop_fhd_140823_nand.zip ubuntu_14.04_desktop_fhd_140823_nand.zip]</td><br />
<td></td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock Lite</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock_lite/images/android/radxa_rock_lite_android_kitkat_140911_sdcard.zip android_kitkat_140911_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Dual boot</td><br />
<td>[http://dl.radxa.com/rock_lite/images/dual_boot/radxa_rock_ite_android_ubuntu_dual_boot_141107_sdcard.zip radxa_rock_ite_android_ubuntu_dual_boot_141107_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip ubuntu_14.04_server_141030_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_desktop_fhd_141105_sdcard.zip ubuntu_14.04_desktop_fhd_141105_sdcard.zip]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock Pro</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>Nand</th><br />
<th>SD card</th><br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_140924_nand.zip android_kitkat_hdmi_140924_nand.zip] [http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_lvds_141009_nand.zip android_kitkat_lvds_141009_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_141031_sdcard.zip android_kitkat_hdmi_141031_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Debian server</td><br />
<td>[http://dl.radxa.com/rock_pro/images/debian/nand/radxa_rock_pro_debian_wheezy_150128_nand.zip debian_wheezy_150128_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Dual boot</td><br />
<td>[http://dl.radxa.com/rock_pro/images/dual_boot/radxa_rock_pro_dual_boot_20141022_nand.zip radxa_rock_pro_dual_boot_20141022_nand.zip]</td><br />
<td></td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 server</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_server_140819_nand.zip ubuntu_14.04_server_140819_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip ubuntu_14.04_server_141030_sdcard.zip]</td><br />
</tr><br />
<tr><br />
<td>Ubuntu 14.04 desktop</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_desktop_fhd_140823_nand.zip ubuntu_14.04_desktop_fhd_140823_nand.zip]</td><br />
<td>[http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_ubuntu_14.04_desktop_140826_sdcard.zip ubuntu_14.04_desktop_140826_sdcard.zip] [http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_lite_ubuntu_14.04_desktop_fhd_141124_sdcard.zip ubuntu_14.04_desktop_fhd_141124_sdcard.zip]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<br />
<br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Radxa Rock2 Square</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Image</th><br />
<th>EMMC</th><br />
<br />
</tr><br />
<tr><br />
<td>Android Kitkat 4.4.2</td><br />
<td>[http://dl.radxa.com/rock2/images/android/rock2_square_android_kitkat_hdmi_150324_emmc.zip rock2_square_android_kitkat_hdmi_150324_emmc.zip ] <br />
</tr><br />
<br />
</table><br />
</div><br />
</div></div>Naobsdhttps://wiki.radxa.com/Rock/U-BootRock/U-Boot2015-01-11T02:19:04Z<p>Naobsd: </p>
<hr />
<div>{{rock_header}}<br />
{{Languages|rock/U-Boot}}<br />
<br />
== Features ==<br />
<br />
* both Rockchip proprietary USB protocol and fastboot USB protocol are supported (Rockchip USB tools works)<br />
* format of partitions (images) are compatible to Rockchip proprietary bootloader (rkcrc, mkbootimg works)<br />
* (need more investigation...)<br />
<br />
== For NAND flash ==<br />
<br />
=== Build ===<br />
Refer [[Rock/install_toolchain | install toolchain]] if you don't have arm-eabi- on your system. Other toolchain(Linaro arm-linux-gnueabihf-gcc 4.9) may cause data abort errors.<br />
git clone -b u-boot-rk3188 https://github.com/radxa/u-boot-rockchip.git<br />
cd u-boot-rockchip<br />
make rk30xx<br />
<br />
The binary we need for nand flash are '''RK3188Loader_miniall.bin''' and '''uboot.img'''.<br />
<br />
=== Flash ===<br />
refer [[rock/flash_the_image| flash image page]]<br />
<br />
use the new u-boot to erase the old loader<br />
sudo upgrade_tool ef RK3188Loader_miniall.bin<br />
<br />
flash new loader<br />
sudo upgrade_tool ul RK3188Loader_miniall.bin<br />
<br />
format NAND (first time only)<br />
sudo upgrade_tool lf<br />
flash U-Boot<br />
sudo upgrade_tool wl 0x2000 uboot.img<br />
sudo upgrade_tool rd<br />
<br />
Booting log can be found at: http://paste.ubuntu.com/9623598/<br />
<br />
== For SD card ==<br />
=== Build ===<br />
Refer [[Rock/install_toolchain | install toolchain]] if you don't have arm-eabi- on your system. Other toolchain(Linaro arm-linux-gnueabihf-gcc 4.9) may cause data abort errors.<br />
git clone -b u-boot-rk3188 https://github.com/radxa/u-boot-rockchip.git<br />
cd u-boot-rockchip<br />
make rk30xx<br />
./pack-sd.sh<br />
<br />
The binary we need for sdcard is '''u-boot-sd.img'''.<br />
<br />
=== Flash ===<br />
<br />
sudo dd if=u-boot-sd.img of=/dev/sdx seek=64<br />
<br />
Insert the uSD card to rock pro, it will boot from u-boot on uSD card.<br />
<br />
== Develop ==<br />
<br />
Some important files and directories related to the Rockchip platform:<br />
<br />
* [https://github.com/radxa/u-boot-rockchip/blob/master/UserManual '''UserManual'''] - documentation<br />
* [https://github.com/radxa/u-boot-rockchip/blob/master/include/configs/rk30xx.h '''include/configs/rk30xx.h'''] - configuration file<br />
* [https://github.com/radxa/u-boot-rockchip/tree/master/tools/rk_tools '''tools/rk_tools''']<br />
<br />
* [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip '''board/rockchip''']<br />
├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common '''common''']<br />
│ ├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/armlinux '''armlinux''']<br />
│ ├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/common '''common''']<br />
│ │ ├── A8MMU<br />
│ │ ├── crc<br />
│ │ ├── emmc<br />
│ │ ├── fat<br />
│ │ ├── rc4<br />
│ │ ├── rockusb<br />
│ │ ├── serial_p9<br />
│ │ └── SPI<br />
│ └── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/platform '''platform''']<br />
│ ├── rk2928<br />
│ └── rk30<br />
└── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/rk30xx '''rk30xx''']<br />
<br />
* [https://github.com/radxa/u-boot-rockchip/tree/master/arch/arm/cpu/armv7/rk30xx '''arch/arm/cpu/armv7/rk30xx''']<br />
* [https://github.com/radxa/u-boot-rockchip/blob/master/arch/arm/include/asm/arch-rk30xx/ '''arch/arm/include/asm/arch-rk30xx''']<br />
<br />
== Unbrick ==<br />
<br />
If something goes wrong and your device doesn't boot anymore, read [[rock/unbrick | Unbrick Rock]].<br />
<br />
== External links ==<br />
<br />
* http://androtab.info/rockchip/u-boot/ (working binaries)<br />
* https://github.com/linux-rockchip/u-boot-rockchip (some improvement)</div>Naobsdhttps://wiki.radxa.com/Rock/WirelessRock/Wireless2015-01-11T02:17:33Z<p>Naobsd: </p>
<hr />
<div>{{rock_header}}<br />
{{Languages|rock/Wireless}}<br />
<br />
__TOC__<br />
<br />
== Before start ==<br />
The Radxa Rock provides various ways to connect, wired and wireless. The full version has wifi and bluetooth on board, and lite version has wifi only. Both module are connect to the cpu via the USB interface.<br />
<br />
== Using wireless under Android ==<br />
<br />
The wifi and bluetooth(if has) works out of the box, check out in the Setting to configure it.<br />
<br />
== Using wireless under Linux ==<br />
=== Wifi ===<br />
The model number of the module on RR and RR lite is RTL8723AU on RR full version and RTL8188ETV on lite version. You can see the id of the module with the following command on RR:<br />
<br />
sudo apt-get install usbutils<br />
lsusb<br />
<br />
For RR full version the output is <br />
root@radxa:~# lsusb<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<br />
Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB<br />
Bus 002 Device 003: ID 0bda:0724 Realtek Semiconductor Corp.<br />
on lite version, the output is:<br />
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub <br />
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub <br />
Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB <br />
Bus 002 Device 003: ID 0bda:0179 Realtek Semiconductor Corp. <br />
The 0bda:0724 is the id of rtl8723 modlue, the 0bda:0179 is the id of rtl8188etv module.<br />
<br />
==== Desktop ====<br />
Go to Start menu -> Perference -> Network Connections -> wifi, choose the wifi network you want to join and click edit -> wifi security, input the wifi password and save. Then click the right corner to join your wifi network.<br />
<br />
==== Manually connect with Network Manager ====<br />
<br />
You can use '''nmcli''' (Network Manager Command Line Interface) to configure your network interfaces.<br />
<br />
'''List wireless networks'''<br />
# nmcli dev wifi list<br />
SSID BSSID MODE FREQ RATE SIGNAL SECURITY ACTIVE <br />
'MY-ACCESS-POINT' 12:34:56:78:90:AB Infrastructure 2412 MHz 44 MB/s 100 WPA WPA2 yes<br />
'OTHER-ACCESS-POINT' 34:12:78:56:AB:90 Infrastructure 2416 MHz 54 MB/s 70 WPA WPA2 yes<br />
<br />
'''Connect to your wireless network'''<br />
# nmcli dev wifi connect MY-ACCESS-POINT password MY-PASSWORD<br />
<br />
'''List network devices'''<br />
# nmcli device<br />
DEVICE TYPE STATE <br />
wlan1 802-11-wireless connected <br />
eth0 802-3-ethernet unavailable<br />
<br />
'''List saved networks'''<br />
# nmcli connection<br />
NAME UUID TYPE TIMESTAMP-REAL <br />
MY-ACESS-POINT a2301195-5c6a-4000-adc5-dd388a58822e 802-11-wireless Tue 15 Apr 2014 10:30:30 PM UTC <br />
OTHER-ACCESS-POINT 83202209-1328-4e85-b7fa-e8c4a902e9ef 802-11-wireless never <br />
Wired connection 1 413fdf5a-27bf-4f88-93c5-a4da394e20ce 802-3-ethernet Tue 15 Apr 2014 10:10:33 PM UTC <br />
Auto Ethernet e96a5543-1235-4497-9e10-b431f588a94d 802-3-ethernet Fri 14 Mar 2014 11:36:21 AM UTC <br />
<br />
==== Manually config to connect wireless router ====<br />
To use RR(lite) to connect to your wireless router, you need to do the following:<br />
sudo apt-get install wireless-tools<br />
sudo apt-get install wpasupplicant<br />
'''sudo ifconfig wlan0 up'''<br />
<br />
If you are unable to bringup wlan0, mean drivers are not installed. Follow this step to add driver. Assumes you have net connection thru ethernet, else download and move<br />
sudo mkdir -p /lib/modules && cd /lib/modules<br />
sudo wget http://dl.radxa.com/rock/images/ubuntu/partitions/modules_3.0.36+_14-04-12.tar.gz<br />
sudo tar zxvf modules_3.0.36+_14-04-12.tar.gz<br />
sudo rm modules_3.0.36+_14-04-12.tar.gz<br />
sudo modprobe 8723au<br />
<br />
now you should see wlan0 by ifconfig<br />
<br />
Now you can view is the wifi module works by scanning the AP nearby<br />
<br />
iwlist wlan0 scan<br />
<br />
For the new wifi driver, iwlist will report '''''wlan0 Interface doesn't support scanning'''''. you need to use the new tool '''iw''' instead<br />
<br />
iw dev wlan0 scan<br />
<br />
edit /etc/wpa_supplicant.conf<br />
ctrl_interface=/var/run/wpa_supplicant<br />
network={<br />
ssid="your ssid name"<br />
psk="your wireless password"<br />
}<br />
<br />
and then run<br />
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf <br />
to connect to the wireless router.<br />
<br />
run the following to get an IP from the router.<br />
dhclient wlan0<br />
<br />
If you want to set the RR to connect to the wireless router automatically every time it boot up. Add the following to the '''/etc/network/interfaces'''<br />
auto wlan0<br />
iface wlan0 inet dhcp<br />
wpa-conf /etc/wpa_supplicant.conf<br />
<br />
==== AP mode(RR acts as wireless router) ====<br />
=====Build the driver for softAP=====<br />
Download the source driver from the address:<br />
wget http://dl.radxa.com/rock/source/RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta.rar<br />
<br />
[[Rock/install toolchain|Install toolchain]].<br />
<br />
Download the kernel from the address:<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
or download here<br />
http://pan.baidu.com/s/1jfOTo (china)<br />
<br />
Attention please: first,ensure your kernel has been compiled<br />
<br />
unrar x RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta.rar<br />
cd RTL8723A_WiFi_linux_v4.1.7_8023_BTCOEX20130528_ver3.3_beta<br />
cd driver<br />
tar zxvf rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta.tar.gz<br />
cd rtl8723A_WiFi_linux_v4.1.7_8023.20130628_BTCOEX20130528_ver3.3_beta<br />
vim Makefile<br />
<br />
To select target platform for compilation,Only one entry is allowed to be set with value ‘y’ and others with ‘n’ :<br />
'''47 CONFIG_PLATFORM_I386_PC = n'''<br />
48 CONFIG_PTFORM_ANDROID_X86 = n<br />
49 CONFIG_PLATFORM_JB_X86 = n<br />
...<br />
...<br />
66 CONFIG_PLATFORM_ARM_TCC8920_JB42 = n<br />
'''67 CONFIG_PLATFORM_ARM_RK2818 = y'''<br />
68 CONFIG_PLATFORM_ARM_URBETTER = n<br />
<br />
you should modify the corresponding entry inside platform setting section<br />
<syntaxhighlight lang="make"><br />
603 ARCH := arm<br />
604 CROSS_COMPILE := arm-eabi-<br />
605 KSRC := /media/jim/radxa_rock_linux/linux-rockchip<br />
</syntaxhighlight><br />
ARCH<br />
The ARCH is used to specify the architecture of the target platform CPU.<br />
CROSS_COMPILE<br />
The CROSS_COMPILE is used to specify the toolchain prefix used for driver compilation.<br />
KSRC<br />
The KSRC is used to specify the path of kernel source used for driver compilation<br />
<br />
build wlan.ko<br />
make<br />
<br />
you will get wlan.ko, copy the wlan.ko to your rock pro board and run<br />
<br />
root@radxa:~#insmod wlan.ko<br />
<br />
=====Configure dhcp server,wifi(user,password),autorun the softAP=====<br />
configure the dhcp server:<br />
root@radxa:/etc# vim dnsmasq.conf<br />
631 interface=wlan0 <br />
632 bind-interfaces <br />
633 except-interface=lo <br />
634 dhcp-range=192.168.2.150,192.168.2.254,12h //configure the range of available ip<br />
635 dhcp-option=3,192.168.2.1 //configure the server<br />
<br />
configure the wifi(user,password):<br />
root@radxa:/etc# vim /etc/hostapd/hostapd.conf<br />
3 interface=wlan0<br />
4 ctrl_interface=/var/run/hostapd<br />
'''5 ssid=user-name'''<br />
6 channel=6<br />
7 wpa=2<br />
'''8 wpa_passphrase=password'''<br />
9 #bridge=br0<br />
<br />
autorun the softAP:<br />
<br />
root@radxa:/etc#vim wifs.sh<br />
add lines<br />
#!/bin/sh<br />
#start the AP service<br />
#Start hostapd, and it will automatically be bringed up <br />
sudo hostapd -B /etc/hostapd/hostapd.conf<br />
#Set ip on wlan0 <br />
sudo /sbin/ip addr add 192.168.2.1/24 dev wlan0<br />
#Start dnsmasq <br />
sudo /usr/sbin/service dnsmasq start<br />
#Start ip_forward <br />
sudo echo 1 > /proc/sys/net/ipv4/ip_forward<br />
#add iptables rule for NAT <br />
sudo /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br />
#start haveged<br />
sudo /etc/init.d/haveged start<br />
<br />
root@radxa:/etc/init.d# vim rc.local <br />
add the line<br />
'''13 . /etc/wifs.sh'''<br />
14 . /lib/init/vars.sh<br />
15 . /lib/lsb/init-functions<br />
root@radxa:/etc/init.d# reboot<br />
<br />
=== Bluetooth ===<br />
to get the driver:<br />
<br />
git clone https://github.com/lwfinger/rtl8723au_bt<br />
<br />
To compile the driver, you need to have compiled your own Kernel like described in <br />
http://wiki.radxa.com/Rock/Booting_Linux<br />
<br />
Then on your Linux host computer you will find a directory "/lib/modules/3.0.36+/" containing a "kernel" directory and two symbolic links called "build" and "source" to your Rockchip kernel source directory (originally called "rockchip-3.0") wherever you downloaded it to. This is the prerequisite for compiling rockchip modules.<br />
<br />
Then change into the bluetooth driver directory rtl8723au_bt and edit the textfile called "Makefile".<br />
My "Makefile" now looks like this, I marked the changes bold:<br />
<br />
FW_DIR := '''/lib/firmware/rtk_bt'''<br />
MDL_DIR := '''/lib/modules/3.0.36+'''<br />
DRV_DIR := $(MDL_DIR)/kernel/drivers/bluetooth<br />
<br />
ifneq ($(KERNELRELEASE),)<br />
<br />
obj-m := rtk_btusb.o<br />
<br />
else<br />
PWD := $(shell pwd)<br />
KVER := '''"3.0.36+"'''<br />
KDIR := '''/lib/modules/3.0.36+/build'''<br />
<br />
all:<br />
$(MAKE) -C $(KDIR) M=$(PWD) modules<br />
<br />
<br />
clean:<br />
rm -rf *.o *.mod.c *.mod.o *.ko *.symvers *.order *.a<br />
endif<br />
<br />
install:<br />
mkdir -p $(FW_DIR)<br />
cp -f rlt8723a_chip_b_cut_bt40_fw_asic_rom_patch-svn8511-0x0020342E-20121105-LINUX_USB.bin $(FW_DIR)/rtk8723a.bin<br />
cp -f rtk_btusb.ko $(DRV_DIR)/rtk_btusb.ko<br />
'''#depmod -a $(MDL_DIR)''''<br />
'''#echo "install rtk_btusb success!'''<br />
<br />
uninstall:<br />
rm -f $(DRV_DIR)/rtk_btusb.ko<br />
depmod -a $(MDL_DIR)<br />
rm -f $(FW_DIR)/rtk8723a.bin<br />
echo "uninstall rtk_btusb success!"<br />
<br />
<br />
Then do <br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
make<br />
sudo make install<br />
<br />
After that copy the following files from the host system into the same folder on Radxa Rock:<br />
/lib/firmware/rtk_bt/rtk8723a.bin<br />
/lib/modules/3.0.36+/kernel/drivers/bluetooth/rtk_btusb.ko<br />
<br />
Last on Radxa Rock system change into the folder <br />
/lib/modules/3.0.36+/kernel/drivers/bluetooth <br />
<br />
and enter the command<br />
sudo insmod rtk_btusb.ko<br />
<br />
Now "hcitool dev" recognizes the adapter (hci0) and "hcitool scan" finds remote bluetooth devices.<br />
But I could not get any device to pair. Any ideas appreciated.<br />
<br />
Alex<br />
letux@arcor.de</div>Naobsdhttps://wiki.radxa.com/Rock/Android_BuildRock/Android Build2015-01-11T02:11:57Z<p>Naobsd: </p>
<hr />
<div>{{rock_header}}<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== Before start ===<br />
<br />
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.<br />
<br />
=== Initializing a Build Environment ===<br />
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.<br />
Install JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
Install required packages - ubuntu 12.04<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
Install required packages - ubuntu 13.10 and 14.04<br />
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\<br />
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\<br />
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\<br />
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\<br />
lib32readline-gplv2-dev gcc-multilib libswitch-perl<br />
<br />
Install ARM toolchain and building kernel related pacakges <br />
sudo apt-get install lzop libncurses5-dev<br />
Install libraries for other tools<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== Get the source code ===<br />
<br />
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (git.us.linux-rockchip.org is located at U.S.A.)<br />
<br />
For android 4.2.2 Jelly Bean<br />
git clone -b radxa/radxa-dev git://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git<br />
<br />
For android 4.4.2 KitKat<br />
Download here [http://dl.radxa.com/rock_pro/source/radxa_rock_android4-4_141219.tar.gz radxa_rock_android4-4_141219.tar.gz]<br />
or download from Baidu Yun http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
=== Build the kernel ===<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
note: if you want to build android sdcard image for rock pro, you need to run make menuconfig and go to Device Drivers ---> MMC/SD/SDIO card support, and disable RK29 SDMMC0 controller support(sdmmc), for rock lite the sdmmc0 driver is already disabled in defconfig.<br />
<br />
=== Build android source code ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== Generate the image ===<br />
./mkimage.sh ota<br />
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev<br />
<br />
generate the image for '''sdcard'''(optional)<br />
<br />
cd rockdev && ./mksdimge.sh<br />
<br />
android_xx-xx-x_sdcard.img is the generated image for sd card.<br />
<br />
=== Flash the image ===<br />
Next, follow the [[rock/flash the image | flash to NAND flash]] to flash the image to NADN flash you just build. Or follow [[Rock/SD_images| flash to sd card]] to write the image on sd card.<br />
<br />
== External reference ==<br />
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Android_BuildRock/Android Build2015-01-11T02:10:52Z<p>Naobsd: </p>
<hr />
<div>{{rock_header}}<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== Before start ===<br />
<br />
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.<br />
<br />
=== Initializing a Build Environment ===<br />
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.<br />
Install JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
Install required packages - ubuntu 12.04<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
Install required packages - ubuntu 13.10 and 14.04<br />
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\<br />
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\<br />
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\<br />
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\<br />
lib32readline-gplv2-dev gcc-multilib libswitch-perl<br />
<br />
Install ARM toolchain and building kernel related pacakges <br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
Install libraries for other tools<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== Get the source code ===<br />
<br />
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (git.us.linux-rockchip.org is located at U.S.A.)<br />
<br />
For android 4.2.2 Jelly Bean<br />
git clone -b radxa/radxa-dev git://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git<br />
<br />
For android 4.4.2 KitKat<br />
Download here [http://dl.radxa.com/rock_pro/source/radxa_rock_android4-4_141219.tar.gz radxa_rock_android4-4_141219.tar.gz]<br />
or download from Baidu Yun http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
=== Build the kernel ===<br />
export ARCH=arm<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
note: if you want to build android sdcard image for rock pro, you need to run make menuconfig and go to Device Drivers ---> MMC/SD/SDIO card support, and disable RK29 SDMMC0 controller support(sdmmc), for rock lite the sdmmc0 driver is already disabled in defconfig.<br />
<br />
=== Build android source code ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== Generate the image ===<br />
./mkimage.sh ota<br />
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev<br />
<br />
generate the image for '''sdcard'''(optional)<br />
<br />
cd rockdev && ./mksdimge.sh<br />
<br />
android_xx-xx-x_sdcard.img is the generated image for sd card.<br />
<br />
=== Flash the image ===<br />
Next, follow the [[rock/flash the image | flash to NAND flash]] to flash the image to NADN flash you just build. Or follow [[Rock/SD_images| flash to sd card]] to write the image on sd card.<br />
<br />
== External reference ==<br />
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Android_Build/zh_cnRock/Android Build/zh cn2014-12-23T10:45:22Z<p>Naobsd: </p>
<hr />
<div><br />
<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== 开始之前 ===<br />
<br />
给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固态硬盘(友情提示: 固态硬盘可以极大提高编译速度).<br />
<br />
=== 初始化编译环境 ===<br />
参考了安卓官方的环境搭建[http://source.android.com/source/initializing.html 教程],下面是我们测试过的在全新的系统上可用的步骤。<br />
* 安装JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
* 安装所需要的包<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
注意: 在Ubuntu 13.10上,已经没有ia32-libs这个包,不需要安装这个包。<br />
<br />
* 安装ARM交叉编译器和编译内核相关依赖<br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
<br />
* 安装其他所需要的运行库<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== 获取源码 ===<br />
<br />
<br />
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (日本服务器)<br />
<br />
For android 4.2.2 Jelly Bean<br />
git clone -b radxa/radxa-dev git://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git<br />
<br />
For android 4.4.2 KitKat<br />
git clone -b radxa/rock2014 git://git.us.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk.git<br />
or 从百度云下载 http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
<br />
注: 国内客户建议从百度云下载,速度较快; rock,rock_pro,rock_lite可以用同一份代码(android 4.4版本), 编译时使用不同的配置即可<br />
<br />
=== 编译内核 ===<br />
export ARCH=arm<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
=== 编译安卓源码 ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== 生成镜像 ===<br />
./mkimage.sh ota<br />
你会在rockdev/Image文件夹下得到boot.img recovery.img system.img分区镜像文件, 和 rockdev文件夹下的[[rock/update.img | update.img]]整个固件。<br />
<br />
=== 写入镜像(刷机) ===<br />
参考[[rock/flash the image]]如何刷入你刚刚编出来的镜像。<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Android_BuildRock/Android Build2014-12-23T10:44:35Z<p>Naobsd: </p>
<hr />
<div><br />
<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== Before start ===<br />
<br />
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.<br />
<br />
=== Initializing a Build Environment ===<br />
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.<br />
Install JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
Install required packages - ubuntu 12.04<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
Install required packages - ubuntu 13.10 and 14.04<br />
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\<br />
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\<br />
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\<br />
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\<br />
lib32readline-gplv2-dev gcc-multilib libswitch-perl<br />
<br />
Install ARM toolchain and building kernel related pacakges <br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
Install libraries for other tools<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== Get the source code ===<br />
<br />
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (git.us.linux-rockchip.org is located at U.S.A.)<br />
<br />
For android 4.2.2 Jelly Bean<br />
git clone -b radxa/radxa-dev git://git.us.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git<br />
<br />
For android 4.4.2 KitKat<br />
Download here [http://dl.radxa.com/rock_pro/source/radxa_rock_android4.4_20141212.tgz radxa_rock_android4.4_20141212.tgz]<br />
or download from Baidu Yun http://pan.baidu.com/s/1hqorKva (China)<br />
<br />
=== Build the kernel ===<br />
export ARCH=arm<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make rk3188_box_radxa_rock_lite_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock lite'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
note: if you want to build android sdcard image for rock pro, you need to run make menuconfig and go to Device Drivers ---> MMC/SD/SDIO card support, and disable RK29 SDMMC0 controller support(sdmmc), for rock lite the sdmmc0 driver is already disabled in defconfig.<br />
<br />
=== Build android source code ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
lunch radxa_rock_lite-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock lite'''<br />
make -j8<br />
<br />
=== Generate the image ===<br />
./mkimage.sh ota<br />
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev<br />
<br />
generate the image for '''sdcard'''(optional)<br />
<br />
cd rockdev && ./mksdimge.sh<br />
<br />
android_xx-xx-x_sdcard.img is the generated image for sd card.<br />
<br />
=== Flash the image ===<br />
Next, follow the [[rock/flash the image | flash to NAND flash]] to flash the image to NADN flash you just build. Or follow [[Rock/SD_images| flash to sd card]] to write the image on sd card.<br />
<br />
== External reference ==<br />
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-11-10T09:45:03Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
== Requirement ==<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
== Prepare the build environment ==<br />
<br />
=== Install the packages ===<br />
<br />
Install packages for building kernel if you don't have them on your host.<br />
<br />
sudo apt-get install build-essential lzop libncurses5-dev libssl-dev<br />
<br />
=== Install the toolchain ===<br />
<br />
Download ARM toolchain if you don't have Android 4.2.2/4.4.2 SDK on your host.<br />
<br />
if your host is 64bit<br />
<br />
git clone -b kitkat-release --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
<br />
if your host is 32bit<br />
<br />
git clone -b jb-release --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
<br />
then set environment variables<br />
<br />
export ARCH=arm<br />
export CROSS_COMPILE=`pwd`/arm-eabi-4.6/bin/arm-eabi-<br />
<br />
you can use any toolchain if you are sure it works, or you can fix any error introduced by toolchain.<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
== Build the kernel ==<br />
<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j 8 kernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/Image''' (raw binary)<br />
<br />
if you want LZO compressed kernel, specify zkernel.img<br />
<br />
make -j 8 zkernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/zImage''' (compressed binary)<br />
<br />
=== Build the kernel modules ===<br />
<br />
mkdir modules<br />
make INSTALL_MOD_PATH=./modules modules modules_install<br />
<br />
Now you have kernel modules in '''modules/lib/modules/''' and firmwares for some devices in '''modules/lib/firmware/'''.<br />
<br />
== Generate the image ==<br />
<br />
=== Generate the initramfs ===<br />
<br />
cd ..<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
<br />
Install mkbootimg<br />
<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
<br />
mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the '''boot.img''' (image for boot/recovery partition) for RR.<br />
<br />
== Modify the parameter ==<br />
<br />
The linux rootfs can be put on the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
== Next step ==<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-11-10T09:43:20Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
== Requirement ==<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
== Prepare the build environment ==<br />
<br />
=== Install the packages ===<br />
<br />
Install packages for building kernel if you don't have them on your host.<br />
<br />
sudo apt-get install build-essential lzop libncurses5-dev libssl-dev<br />
<br />
=== Install the toolchain ===<br />
<br />
Download ARM toolchain if you don't have Android 4.2.2/4.4.2 SDK on your host.<br />
<br />
if your host is 64bit<br />
<br />
git clone -b kitkat-release --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
<br />
if your host is 32bit<br />
<br />
git clone -b jb-release --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
<br />
export ARCH=arm<br />
export CROSS_COMPILE=`pwd`/arm-eabi-4.6/bin/arm-eabi-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
== Build the kernel ==<br />
<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j 8 kernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/Image''' (raw binary)<br />
<br />
if you want LZO compressed kernel, specify zkernel.img<br />
<br />
make -j 8 zkernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/zImage''' (compressed binary)<br />
<br />
=== Build the kernel modules ===<br />
<br />
mkdir modules<br />
make INSTALL_MOD_PATH=./modules modules modules_install<br />
<br />
Now you have kernel modules in '''modules/lib/modules/''' and firmwares for some devices in '''modules/lib/firmware/'''.<br />
<br />
== Generate the image ==<br />
<br />
=== Generate the initramfs ===<br />
<br />
cd ..<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
<br />
Install mkbootimg<br />
<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
<br />
mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the '''boot.img''' (image for boot/recovery partition) for RR.<br />
<br />
== Modify the parameter ==<br />
<br />
The linux rootfs can be put on the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
== Next step ==<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-11-09T07:34:03Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
== Requirement ==<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
== Prepare the build environment ==<br />
<br />
=== Install the packages ===<br />
<br />
Install packages for building kernel if you don't have them on your host.<br />
<br />
sudo apt-get install build-essential lzop libncurses5-dev libssl-dev<br />
<br />
=== Install the toolchain ===<br />
<br />
Download ARM toolchain if you don't have Android 4.2.2/4.4.2 SDK on your host.<br />
<br />
git clone -b android-4.4.2_r1 --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
export ARCH=arm<br />
export CROSS_COMPILE=`pwd`/arm-eabi-4.6/bin/arm-eabi-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
== Build the kernel ==<br />
<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j 8 kernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/Image''' (raw binary)<br />
<br />
if you want LZO compressed kernel, specify zkernel.img<br />
<br />
make -j 8 zkernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/zImage''' (compressed binary)<br />
<br />
=== Build the kernel modules ===<br />
<br />
mkdir modules<br />
make INSTALL_MOD_PATH=./modules modules modules_install<br />
<br />
Now you have kernel modules in '''modules/lib/modules/''' and firmwares for some devices in '''modules/lib/firmware/'''.<br />
<br />
== Generate the image ==<br />
<br />
=== Generate the initramfs ===<br />
<br />
cd ..<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
<br />
Install mkbootimg<br />
<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
<br />
mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the '''boot.img''' (image for boot/recovery partition) for RR.<br />
<br />
== Modify the parameter ==<br />
<br />
The linux rootfs can be put on the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
== Next step ==<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-11-09T07:30:44Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
== Requirement ==<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
== Prepare the build environment ==<br />
<br />
=== Install the packages ===<br />
<br />
Install packages for building kernel if you don't have them on your host.<br />
<br />
sudo apt-get install build-essential lzop libncurses5-dev libssl-dev<br />
<br />
=== Install the toolchain ===<br />
<br />
Download ARM toolchain if you don't have Android 4.2.2/4.4.2 SDK on your host.<br />
<br />
git clone -b android-4.4.2_r1 --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
export ARCH=arm<br />
export CROSS_COMPILE=`pwd`/arm-eabi-4.6/bin/arm-eabi-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
== Build the kernel ==<br />
<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j 8 kernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/Image''' (raw binary)<br />
<br />
if you want LZO compressed kernel, specify zkernel.img<br />
<br />
make -j 8 zkernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/zImage''' (compressed binary)<br />
<br />
=== Build the kernel modules ===<br />
<br />
mkdir ../modules<br />
make INSTALL_MOD_PATH=../modules modules modules_install<br />
cd ..<br />
<br />
Now you have kernel modules in '''modules/lib/modules/''' and firmwares for some devices in '''modules/lib/firmware/'''.<br />
<br />
== Generate the image ==<br />
<br />
=== Generate the initramfs ===<br />
<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
<br />
Install mkbootimg<br />
<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
<br />
mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the '''boot.img''' (image for boot/recovery partition) for RR.<br />
<br />
== Modify the parameter ==<br />
<br />
The linux rootfs can be put on the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
== Next step ==<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-11-09T07:26:48Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
== Requirement ==<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
== Prepare the build environment ==<br />
<br />
=== Install the packages ===<br />
<br />
Install packages for building kernel if you don't have them on your host.<br />
<br />
sudo apt-get install build-essential lzop libncurses5-dev libssl-dev<br />
<br />
=== Install the toolchain ===<br />
<br />
Download ARM toolchain if you don't have Android 4.2.2/4.4.2 SDK on your host.<br />
<br />
git clone -b android-4.4.2_r1 --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
export ARCH=arm<br />
export CROSS_COMPILE=`pwd`/arm-eabi-4.6/bin/arm-eabi-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
== Build the kernel ==<br />
<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j 8 kernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/Image''' (raw binary)<br />
<br />
if you want LZO compressed kernel, specify zkernel.img<br />
<br />
make -j 8 zkernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/zImage''' (compressed binary)<br />
<br />
=== Build the kernel modules ===<br />
<br />
mkdir ../modules<br />
make INSTALL_MOD_PATH=../modules modules modules_install<br />
<br />
Now you have kernel modules in '''modules/lib/modules/''' and firmwares for some devices in '''modules/lib/firmware/'''.<br />
<br />
== Generate the image ==<br />
<br />
=== Generate the initramfs ===<br />
<br />
cd ..<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
<br />
Install mkbootimg<br />
<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
<br />
mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the '''boot.img''' (image for boot/recovery partition) for RR.<br />
<br />
== Modify the parameter ==<br />
<br />
The linux rootfs can be put on the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
== Next step ==<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-11-09T07:13:06Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
== Requirement ==<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
== Prepare the build environment ==<br />
<br />
=== Install the packages ===<br />
<br />
Install packages for building kernel if you don't have them on your host.<br />
<br />
sudo apt-get install build-essential lzop libncurses5-dev libssl-dev<br />
<br />
=== Install the toolchain ===<br />
<br />
Download ARM toolchain if you don't have Android 4.2.2/4.4.2 SDK on your host.<br />
<br />
git clone -b android-4.4.2_r1 --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
export ARCH=arm<br />
export CROSS_COMPILE=`pwd`/arm-eabi-4.6/bin/arm-eabi-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
== Build the kernel ==<br />
<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j 8 kernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/Image''' (raw binary)<br />
<br />
if you want LZO compressed kernel, specify zkernel.img<br />
<br />
make -j 8 zkernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/zImage''' (compressed binary)<br />
<br />
== Build the kernel modules ==<br />
<br />
mkdir modules<br />
export INSTALL_MOD_PATH=./modules<br />
make modules && make modules_install<br />
cd ..<br />
<br />
Now you have all the kernel modules in '''modules/lib/modules/3.0.36+/'''.<br />
<br />
== Generate the ramdisk ==<br />
<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
== Generate the boot.img ==<br />
<br />
Install mkbootimg<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the '''boot.img''' (image for boot/recovery partition) for RR.<br />
<br />
== Modify the parameter ==<br />
<br />
The linux rootfs maybe in the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
== Next step ==<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-11-09T07:05:48Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
=== Requirement ===<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
=== Install the packages ===<br />
<br />
Install packages for building kernel if you don't have them on your host.<br />
<br />
sudo apt-get install build-essential lzop libncurses5-dev libssl-dev<br />
<br />
=== Install the toolchain ===<br />
<br />
Download ARM toolchain if you don't have Android 4.2.2/4.4.2 SDK on your host.<br />
<br />
git clone -b android-4.4.2_r1 --depth 1 https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6<br />
export ARCH=arm<br />
export CROSS_COMPILE=`pwd`/arm-eabi-4.6/bin/arm-eabi-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
=== Build the kernel ===<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j 8 kernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/Image''' (raw binary)<br />
<br />
if you want LZO compressed kernel, specify zkernel.img<br />
<br />
make -j 8 zkernel.img<br />
<br />
The kernel will be at '''kernel.img''' (image for kernel partition) and '''arch/arm/boot/zImage''' (compressed binary)<br />
<br />
=== Build the kernel modules ===<br />
<br />
mkdir modules<br />
export INSTALL_MOD_PATH=./modules<br />
make modules && make modules_install<br />
cd ..<br />
<br />
Now you have all the kernel modules in '''modules/lib/modules/3.0.36+/'''.<br />
<br />
=== Generate the ramdisk ===<br />
<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
Install mkbootimg<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the '''boot.img''' (image for boot/recovery partition) for RR.<br />
<br />
=== Modify the parameter ===<br />
The linux rootfs maybe in the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
=== Next step ===<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/LEDRock/LED2014-11-04T04:03:06Z<p>Naobsd: </p>
<hr />
<div>The Radxa Rock has 3 LEDs on board.<br />
<br />
{| class="wikitable" style="width:25%; white-space:nowrap; text-align:center"<br />
! scope="col" | LED<br />
! scope="col" | GPIO ref.<br />
! scope="col" | GPIO number<br />
|-<br />
! scope="row" | <span style="color: green;">Green</span><br />
| GPIO0_B4 || 172<br />
|-<br />
! scope="row" | <span style="color: blue;">Blue</span><br />
| GPIO0_B6 || 174<br />
|-<br />
! scope="row" | <span style="color: red;">Red</span><br />
| GPIO0_B7 || 175<br />
|}<br />
<br />
All are programmable using either LEDs class devices or GPIOs.<br />
<br />
__TOC__<br />
<br />
== LEDs as class devices ==<br />
<br />
On the latest kernel images (Ubuntu 14.04 server/desktop), the 3 LEDs are configured as LED class devices.<br />
<br />
You can control them via '''/sys/class/leds/'''<br />
<br />
Read the documentation for more information: https://www.kernel.org/doc/Documentation/leds/leds-class.txt<br />
<br />
The default status of the three on board leds are:<br />
* <span style="color: red;">Red</span>: On when there is power<br />
* <span style="color: green;">Green</span>: Flash twice per second after the kernel booting, it's called heartbeat.<br />
* <span style="color: blue;">Blue</span>: Flash when the uSD card is reading/writing.<br />
<br />
You can change the behaviour of each LED by using the '''echo''' command on their '''trigger''' property.<br />
<br />
root@radxa:~ # echo none > /sys/class/leds/red/trigger<br />
root@radxa:~ # echo default-on > /sys/class/leds/red/trigger<br />
root@radxa:~ # echo timer > /sys/class/leds/red/trigger<br />
root@radxa:~ # echo heartbeat > /sys/class/leds/red/trigger<br />
<br />
You can use '''cat''' on the '''trigger''' property to list all the available values.<br />
<br />
root@radxa:~ # cat /sys/class/leds/red/trigger<br />
none test_ac-online test_battery-charging-or-full test_battery-charging test_battery-full test_battery-charging-blink-full-solid mmc0 mmc1 timer [heartbeat] backlight gpio default-on sleep rfkill0<br />
<br />
Here is the list of current triggers:<br />
* none<br />
* test_ac-online<br />
* test_battery-charging-or-full<br />
* test_battery-charging<br />
* test_battery-full<br />
* test_battery-charging-blink-full-solid<br />
* mmc0<br />
* mmc1<br />
* timer<br />
* heartbeat<br />
* backlight<br />
* gpio<br />
* default-on<br />
* sleep<br />
* rfkill0<br />
<br />
'''The GPIO control external LEDs is moved to [[rock/GPIO|GPIO]] page.'''<br />
<br />
== turn off LEDs ==<br />
<br />
use "none" trigger for triggered LEDs or just turn off for non-triggered LEDs.<br />
<br />
e.g.<br />
<br />
echo none > /sys/class/leds/blue/trigger<br />
echo none > /sys/class/leds/green/trigger<br />
echo 0 > /sys/class/leds/red/brightness<br />
<br />
you can modify [https://github.com/radxa/linux-rockchip/blob/889bc07b6e62705a8ea04b021db3cc73a786c2d4/arch/arm/mach-rk3188/board-rk3188-box.c#L1330 kernel] to change default state at boot.</div>Naobsdhttps://wiki.radxa.com/Rock/LEDRock/LED2014-11-04T04:02:09Z<p>Naobsd: </p>
<hr />
<div>The Radxa Rock has 3 LEDs on board.<br />
<br />
{| class="wikitable" style="width:25%; white-space:nowrap; text-align:center"<br />
! scope="col" | LED<br />
! scope="col" | GPIO ref.<br />
! scope="col" | GPIO number<br />
|-<br />
! scope="row" | <span style="color: green;">Green</span><br />
| GPIO0_B4 || 172<br />
|-<br />
! scope="row" | <span style="color: blue;">Blue</span><br />
| GPIO0_B6 || 174<br />
|-<br />
! scope="row" | <span style="color: red;">Red</span><br />
| GPIO0_B7 || 175<br />
|}<br />
<br />
All are programmable using either LEDs class devices or GPIOs.<br />
<br />
__TOC__<br />
<br />
= LEDs as class devices =<br />
<br />
On the latest kernel images (Ubuntu 14.04 server/desktop), the 3 LEDs are configured as LED class devices.<br />
<br />
You can control them via '''/sys/class/leds/'''<br />
<br />
Read the documentation for more information: https://www.kernel.org/doc/Documentation/leds/leds-class.txt<br />
<br />
The default status of the three on board leds are:<br />
* <span style="color: red;">Red</span>: On when there is power<br />
* <span style="color: green;">Green</span>: Flash twice per second after the kernel booting, it's called heartbeat.<br />
* <span style="color: blue;">Blue</span>: Flash when the uSD card is reading/writing.<br />
<br />
You can change the behaviour of each LED by using the '''echo''' command on their '''trigger''' property.<br />
<br />
root@radxa:~ # echo none > /sys/class/leds/red/trigger<br />
root@radxa:~ # echo default-on > /sys/class/leds/red/trigger<br />
root@radxa:~ # echo timer > /sys/class/leds/red/trigger<br />
root@radxa:~ # echo heartbeat > /sys/class/leds/red/trigger<br />
<br />
You can use '''cat''' on the '''trigger''' property to list all the available values.<br />
<br />
root@radxa:~ # cat /sys/class/leds/red/trigger<br />
none test_ac-online test_battery-charging-or-full test_battery-charging test_battery-full test_battery-charging-blink-full-solid mmc0 mmc1 timer [heartbeat] backlight gpio default-on sleep rfkill0<br />
<br />
Here is the list of current triggers:<br />
* none<br />
* test_ac-online<br />
* test_battery-charging-or-full<br />
* test_battery-charging<br />
* test_battery-full<br />
* test_battery-charging-blink-full-solid<br />
* mmc0<br />
* mmc1<br />
* timer<br />
* heartbeat<br />
* backlight<br />
* gpio<br />
* default-on<br />
* sleep<br />
* rfkill0<br />
<br />
'''The GPIO control external LEDs is moved to [[rock/GPIO|GPIO]] page.'''<br />
<br />
== turn off LEDs ==<br />
<br />
use "none" trigger for triggered LEDs or just turn off for non-triggered LEDs.<br />
<br />
e.g.<br />
<br />
echo none > /sys/class/leds/blue/trigger<br />
echo none > /sys/class/leds/green/trigger<br />
echo 0 > /sys/class/leds/red/brightness<br />
<br />
you can modify [https://github.com/radxa/linux-rockchip/blob/889bc07b6e62705a8ea04b021db3cc73a786c2d4/arch/arm/mach-rk3188/board-rk3188-box.c#L1330 kernel] to change default state at boot.</div>Naobsdhttps://wiki.radxa.com/Rock/prebuilt_imagesRock/prebuilt images2014-11-04T03:01:10Z<p>Naobsd: /* Debian */</p>
<hr />
<div>__TOC__<br />
<br />
This page collects the ready to install/flash image which works on the radxa rock.<br />
<br />
{| class="wikitable" border="1"<br />
|-<br />
! [[Rock/flash the image | how to install NAND image]]<br />
! [[Rock/SD images | how to install SD card image]]<br />
|}<br />
<br />
'''check [[Rock/hardware revision | hardware revision]], firmware is different!'''<br />
<br />
=<span class="label forest" style="margin-bottom:5px;">Radxa Rock Pro</span>=<br />
<br />
== For NAND flash ==<br />
=== Android ===<br />
* Kitkat 4.4.2 - http://dl.radxa.com/rock_pro/images/android/radxa_rock_pro_android_kitkat_hdmi_140725_update.zip<br />
=== Ubuntu/Linaro ===<br />
* Ubuntu 14.04 server - http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_server_140819_update.zip<br />
* Ubuntu 14.04 desktop - http://dl.radxa.com/rock_pro/images/ubuntu/nand/radxa_rock_pro_ubuntu_14.04_desktop_fhd_140823_update.zip<br />
=== Debian ===<br />
* Debian 7 server - http://dl.radxa.com/rock_pro/images/debian/nand/radxa_rock_pro_debian_wheezy_140904_nand.zip<br />
<br />
== For SD card ==<br />
=== Android ===<br />
=== Ubuntu/Linaro ===<br />
* Ubuntu 14.04 server - http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip<br />
* Ubuntu 14.04 desktop - http://dl.radxa.com/rock_pro/images/ubuntu/sd/radxa_rock_pro_ubuntu_14.04_desktop_140826_sdcard.zip<br />
------------------------------------------------------------------------------------------<br />
<br />
=<span class="label forest" style="margin-bottom:5px;">Radxa Rock</span>=<br />
<br />
== For NAND flash ==<br />
<br />
<br />
<br />
===Android===<br />
==== Jelly Bean 4.2.2 ====<br />
* 720p - http://dl.radxa.com/rock/images/android/radxa_rock_android_140312_update.zip<br />
* 1080p - http://dl.radxa.com/rock/images/android/radxa_rock_android_1080p_140312_update.zip<br />
<br />
==== KitKat 4.4.2 ====<br />
* Release R1 - http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r1_140628_nand.zip<br />
* Release R2 - http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140909_nand.zip<br />
<br />
===Android/Linux dual-boot===<br />
* 720p - http://dl.radxa.com/rock/images/dual_boot/radxa_rock_android_ubuntu_dual_boot_140311_update.zip<br />
* 1080p - http://dl.radxa.com/rock/images/dual_boot/radxa_rock_android_ubuntu_dual_boot_1080p_140311_update.zip<br />
<br />
===Ubuntu/Linaro===<br />
Default user name/pass word are: rock/rock root/root<br />
* Linaro server - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_ubuntu_server_140315_update.zip<br />
* Linaro desktop - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_ubuntu_desktop_140318_update.zip<br />
* Ubuntu 14.04 desktop - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_ubuntu_14.04_desktop_140806_update.zip<br />
* Ubuntu 14.04 desktop(1080p) - http://dl.radxa.com/rock/images/ubuntu/nand/radxa_rock_ubuntu_14.04_desktop_fhd_140823_update.zip<br />
<br />
===Debian===<br />
The password for root is root.<br />
*Wheezy - http://dl.radxa.com/rock/images/debian/radxa_rock_debian_wheezy_141029_nand.zip<br />
<br />
== For SD card ==<br />
<br />
===Android===<br />
==== KitKat 4.4.2 ====<br />
* Release R1 - http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r1_140626_sdcard.zip<br />
* Release R2 http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r2_140911_sdcard.zip<br />
<br />
===Ubuntu(Linaro 13.09)===<br />
* Lubuntu Desktop - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_lubuntu_desktop_140626_sdcard.zip<br />
<br />
===Ubuntu 12.04 ===<br />
<br />
Desktop image by Ian MORRISON(linuxium) - https://docs.google.com/file/d/0B99O3A0dDe67OGNUakZFenNLRVU/edit<br />
<br />
user: linuxium password: p<br />
<br />
===Debian===<br />
<br />
<br />
=<span class="label forest" style="margin-bottom:5px;">Radxa Rock Lite</span>=<br />
<br />
===Android ===<br />
==== KitKat 4.4.2 ====<br />
* http://dl.radxa.com/rock_lite/images/android/radxa_rock_lite_android_kitkat_140911_sd_update.zip<br />
<br />
===Linux===<br />
* desktop version - http://dl.radxa.com/rock_lite/images/linux/radxa_rock_lite_ubuntu_14.04_desktop_140826_sdcard.zip<br />
* server version - http://dl.radxa.com/rock_lite/images/linux/radxa_rock_pro_lite_ubuntu_14.04_server_141030_sdcard.zip</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_Linux/zh_cnRock/Booting Linux/zh cn2014-11-04T02:27:32Z<p>Naobsd: /* 编译内核 */</p>
<hr />
<div>=== 开发要求 ===<br />
* radxa rock (全版或者简版)<br />
* 64bit Linux (e.g. Ubuntu) 开发环境<br />
* micro USB 数据线<br />
* 5V/2A的电源<br />
<br />
=== 安装编译工具链 ===<br />
如果你的电脑没有安装工具链,那么可以按照以下命令安装ARM工具链,并编译相关的内核包:<br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
<br />
=== 获取源码 ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
或者从下面的链接下载源码包,并解压该文件:<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
或者 http://pan.baidu.com/s/1gdxbm8N (china)<br />
<br />
=== 编译内核 ===<br />
<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j8<br />
<br />
生成的内核文件位置是在 '''arch/arm/boot/Image'''。<br />
<br />
=== 编译内核模块 ===<br />
mkdir modules<br />
export INSTALL_MOD_PATH=./modules<br />
make modules && make modules_install<br />
cd ..<br />
现在所以的内核模块都在 '''modules/lib/modules/3.0.36+/'''文件夹中。<br />
<br />
=== 生成 ramdisk ===<br />
<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== 生成 boot.img ===<br />
wget http://dl.radxa.com/rock/tools/linux/mkbootimg<br />
sudo apt-get install lib32stdc++6<br />
chmod +x mkbootimg<br />
./mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
完成。现在已经生成了RR的“boot.img”文件了。<br />
<br />
=== 修改 parameter 文件===<br />
linux的根文件系统(rootfs)可能处于不同的分区或者媒介中(比如nand、SD卡或者U盘 ),所以你需要告诉内核应该加载哪一个根文件系统。修改你的parameter文件的“root= ”这一行,指向你想加载的那个根文件系统所存放的分区。比如:<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs 在名叫“linuxroot”的nand分区中<br />
root=/dev/mmcblk0p1 # rootfs 在SD卡第一分区中<br />
root=/dev/sda1 # rootfs 在U盘或者移动硬盘第一分区<br />
root=LABEL=linuxroot # rootfs在标签为“linuxroot”分区,这个分区可能是SD卡、U盘或者移动硬盘。</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_Linux/zh_cnRock/Booting Linux/zh cn2014-11-04T02:16:10Z<p>Naobsd: </p>
<hr />
<div>=== 开发要求 ===<br />
* radxa rock (全版或者简版)<br />
* 64bit Linux (e.g. Ubuntu) 开发环境<br />
* micro USB 数据线<br />
* 5V/2A的电源<br />
<br />
=== 安装编译工具链 ===<br />
如果你的电脑没有安装工具链,那么可以按照以下命令安装ARM工具链,并编译相关的内核包:<br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
<br />
=== 获取源码 ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
或者从下面的链接下载源码包,并解压该文件:<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
或者 http://pan.baidu.com/s/1gdxbm8N (china)<br />
<br />
=== 编译内核 ===<br />
<br />
cd linux-rockchip<br />
make rk3188_radxa_rock_defconfig<br />
make -j8<br />
生成的内核文件位置是在 '''arch/arm/boot/Image'''。<br />
<br />
=== 编译内核模块 ===<br />
mkdir modules<br />
export INSTALL_MOD_PATH=./modules<br />
make modules && make modules_install<br />
cd ..<br />
现在所以的内核模块都在 '''modules/lib/modules/3.0.36+/'''文件夹中。<br />
<br />
=== 生成 ramdisk ===<br />
<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== 生成 boot.img ===<br />
wget http://dl.radxa.com/rock/tools/linux/mkbootimg<br />
sudo apt-get install lib32stdc++6<br />
chmod +x mkbootimg<br />
./mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
完成。现在已经生成了RR的“boot.img”文件了。<br />
<br />
=== 修改 parameter 文件===<br />
linux的根文件系统(rootfs)可能处于不同的分区或者媒介中(比如nand、SD卡或者U盘 ),所以你需要告诉内核应该加载哪一个根文件系统。修改你的parameter文件的“root= ”这一行,指向你想加载的那个根文件系统所存放的分区。比如:<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs 在名叫“linuxroot”的nand分区中<br />
root=/dev/mmcblk0p1 # rootfs 在SD卡第一分区中<br />
root=/dev/sda1 # rootfs 在U盘或者移动硬盘第一分区<br />
root=LABEL=linuxroot # rootfs在标签为“linuxroot”分区,这个分区可能是SD卡、U盘或者移动硬盘。</div>Naobsdhttps://wiki.radxa.com/Rock/downloadRock/download2014-11-04T02:04:07Z<p>Naobsd: </p>
<hr />
<div>__NOTOC__<br />
{{DISPLAYTITLE:<span style="display: none"></span>}}<br />
<div class="col-md-12"><br />
<h3 class="brand-name text-center" style="margin-top:0px;"><span class="label label-default">Downloads</span></h3><br />
<hr class="tagline-divider" /><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Tools</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Description</th><br />
<th>Linux</th><br />
<th>Windows</th><br />
<th>Note</th><br />
</tr><br />
<tr><br />
<td><small>Firmware upgrade tool – Format and install firmware to NAND flash</small></td><br />
<td>[http://dl.radxa.com/rock/tools/linux/Linux_Upgrade_Tool_v1.21.zip Linux_Upgrade_Tool_v1.21.zip] (1.9M)</td><br />
<td>[http://dl.radxa.com/rock/tools/windows/RK_BatchTool_V1.7.zip RK_BatchTool_V1.7.zip (567K)]</td><br />
<td>[[rock/flash the image|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Partition upgrade tool – Install images to NAND flash by partitions</small></td><br />
<td>[http://dl.radxa.com/rock/tools/linux/rkflashkit_0.1.1_all.deb rkflashkit_0.1.1_all.deb (143K)]</td><br />
<td>[http://dl.radxa.com/rock/tools/windows/RKDevelopTool_v1.37.zip RKDevelopTool_v1.37.zip (534K)]</td><br />
<td>[[rock/flash the image|Readme]]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Images</span></h4><br />
[[rock/prebuilt_images|Prebuilt Images]]<br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Source code</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Name</th><br />
<th>Download</th><br />
<th>How to</th><br />
</tr><br />
<tr><br />
<td><small>Android Jelly Bean 4.2.2 source code</small></td><br />
<td>Git clone '''radxa/rock-dev''' branch of '''rk3188_r-box_android4.2.2_sdk''' repo from the [http://git.linux-rockchip.org/ linux-rockchip git mirrors]</td><br />
<td>[[Rock/Android Build|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Android Kitkat 4.4.2 source code</small></td><br />
<td>Git clone '''radxa/rock2014''' branch of '''rk3188_rk3066_r-box_android4.4.2_sdk''' repo from the [http://git.linux-rockchip.org/ linux-rockchip git mirrors]</td><br />
<td>[[Rock/Android Build|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Linux kernel 3.0.36</small></td><br />
<td>git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git</td><br />
<td>[[Rock/Booting Linux|Readme]]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Hardware</span></h4><br />
<div class="table-responsive"><br />
[[Rock/hardware_docs |Hardware Documents]]<br />
</div><br />
</div></div>Naobsdhttps://wiki.radxa.com/Rock/ubuntuRock/ubuntu2014-11-04T02:02:55Z<p>Naobsd: </p>
<hr />
<div><br />
<br />
{{Languages|rock/ubuntu}}<br />
<br />
__TOC__<br />
<br />
This page describe how to customize a ubuntu image for radxa rock.<br />
<br />
=== Install required packages ===<br />
sudo apt-get install qemu-user-static binfmt-support<br />
<br />
=== Generate the image ===<br />
dd if=/dev/zero of=rock_rootfs.img bs=1M count=1024<br />
mkfs.ext4 -F -L linuxroot rock_rootfs.img #kernel use the label linuxroot to mount the rootfs as /<br />
sudo mount -o loop rock_rootfs.img /mnt<br />
The fast way is to make a ubuntu image is downloading a recent pre-built ubuntu rootfs from [https://releases.linaro.org/latest/ubuntu/raring-images linaro]<br />
wget https://releases.linaro.org/13.08/ubuntu/raring-images/alip/linaro-raring-alip-20130826-474.tar.gz<br />
sudo tar zxvf linaro-raring-alip-20130826-474.tar.gz -C /mnt<br />
cd /mnt<br />
sudo mv binary/* .<br />
sudo rmdir binary<br />
Copy the kernel modules you built from [[rock/Booting_Linux | Building the kernel]]<br />
sudo mkdir -p /mnt/lib/modules<br />
sudo cp -r /path/to/linux-rockchip/modules/lib/modules/3.0.36+ /mnt/lib/modules<br />
<br />
=== Prepare chroot ===<br />
sudo cp /usr/bin/qemu-arm-static /mnt/usr/bin<br />
sudo modprobe binfmt_misc<br />
sudo mount -t devpts devpts /mnt/dev/pts<br />
sudo mount -t proc proc /mnt/proc<br />
=== Chroot and post configuration ===<br />
sudo chroot /mnt<br />
'''Now we are in the target rootfs, let's continue to configure the system.'''<br />
<br />
Change the default shell to bash.<br />
root@target:# rm /bin/sh && ln -s /bin/bash /bin/sh<br />
Install the pre-installed packages<br />
root@target:# apt-get update<br />
root@target:# apt-get install ssh vim usbutils wpasupplicant wireless-tools<br />
Add a script to link the mtd blocks to names<br />
root@target:# vim /usr/local/bin/mtd-by-name.sh<br />
Add the following<br />
#!/bin/sh -e<br />
# mtd-by-name link the mtdblock to name<br />
# radxa.com, thanks to naobsd<br />
rm -rf /dev/block/mtd/by-name/<br />
mkdir -p /dev/block/mtd/by-name<br />
for i in `ls -d /sys/class/mtd/mtd*[0-9]`; do<br />
name=`cat $i/name`<br />
tmp="`echo $i | sed -e 's/mtd/mtdblock/g'`"<br />
dev="`echo $tmp |sed -e 's/\/sys\/class\/mtdblock/\/dev/g'`"<br />
ln -s $dev /dev/block/mtd/by-name/$name<br />
done<br />
Add the mtd-by-name script to rc.local to get executed every time system boots<br />
root@target:# vim /etc/rc.local<br />
Add this line before '''exit 0'''<br />
/usr/local/bin/mtd-by-name.sh<br />
'''Now we are done! :D'''<br />
root@target:# exit<br />
sync<br />
sudo umount /mnt<br />
Now you have '''rock_rootfs.img''' as the rootfs image for RR.<br />
<br />
--------------------------------------------------------------------<br />
<br />
=== Trouble shooting ===<br />
==== bluez package configure error ====<br />
<pre><br />
Setting up bluez (4.101-0ubuntu8b1) ...<br />
reload: Unknown instance: <br />
invoke-rc.d: initscript dbus, action "force-reload" failed.<br />
start: Job failed to start<br />
invoke-rc.d: initscript bluetooth, action "start" failed.<br />
dpkg: error processing bluez (--configure):<br />
subprocess installed post-installation script returned error exit status 1<br />
dpkg: dependency problems prevent configuration of blueman:<br />
blueman depends on bluez (>= 4.25); however:<br />
Package bluez is not configured yet.<br />
...<br />
<br />
</pre><br />
It turns out the bluez package needs the dbus service running in order to configure properly. The following works:<br />
<br />
service dbus start<br />
dbus start/running, process 24551<br />
dpkg --configure bluez<br />
<br />
==== Non root user can not use the network ====<br />
Edit /etc/group and add<br />
inet:x:3003:root<br />
net_raw:x:3004:root<br />
and then run<br />
gpasswd -a username inet<br />
<br />
=== Alternative way ===<br />
<br />
[http://androtab.info/radxa_rock/ubuntu/ you can prepare your own ubuntu rootfs on Radxa Rock]<br />
<br />
[[Category: Distributions]]<br />
[[Category: Tutorial]]<br />
[[Category: Ubuntu]]</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-11-04T02:01:56Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
=== Requirement ===<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
=== Install the toolchain ===<br />
<br />
Install ARM toolchain and building kernel related packages if you don't have them on your host. <br />
<br />
sudo apt-get install gcc-arm-linux-gnueabihf build-essential lzop libncurses5-dev libssl-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-stable-3.0 https://github.com/radxa/linux-rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/radxa/linux-rockchip/zip/radxa-stable-3.0<br />
<br />
=== Build the kernel ===<br />
cd linux-rockchip<br />
<br />
if your Rock is pro(Mid 2014) or the new lite(Mid 2014), use radxa_rock_pro_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
<br />
make radxa_rock_pro_linux_defconfig<br />
<br />
if your rock is full version(2013) or the old lite(2013), use radxa_rock_linux_defconfig, check out [[Rock/hardware_revision| hardware revision]]<br />
make radxa_rock_linux_defconfig<br />
<br />
make -j8<br />
<br />
The kernel will be at '''arch/arm/boot/Image'''<br />
<br />
=== Build the kernel modules ===<br />
<br />
mkdir modules<br />
export INSTALL_MOD_PATH=./modules<br />
make modules && make modules_install<br />
cd ..<br />
<br />
Now you have all the kernel modules in '''modules/lib/modules/3.0.36+/'''.<br />
<br />
=== Generate the ramdisk ===<br />
<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
Install mkbootimg<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
mkbootimg --kernel linux-rockchip/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the kernel '''boot.img''' for RR.<br />
<br />
=== Modify the parameter ===<br />
The linux rootfs maybe in the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
=== Next step ===<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/U-BootRock/U-Boot2014-10-31T07:08:04Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/U-Boot}}<br />
<br />
== Features ==<br />
<br />
* both Rockchip proprietary USB protocol and fastboot USB protocol are supported (Rockchip USB tools works)<br />
* format of partitions (images) are compatible to Rockchip proprietary bootloader (rkcrc, mkbootimg works)<br />
* (need more investigation...)<br />
<br />
== Build ==<br />
<br />
git clone https://github.com/radxa/u-boot-rockchip.git<br />
cd u-boot-rockchip<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
make rk30xx<br />
<br />
'''RK3188Loader_uboot.bin''' will be created. '''DON'T FLASH IT.'''<br />
<br />
== Develop ==<br />
<br />
Some important files and directories related to the Rockchip platform:<br />
<br />
* [https://github.com/radxa/u-boot-rockchip/blob/master/UserManual '''UserManual'''] - documentation<br />
* [https://github.com/radxa/u-boot-rockchip/blob/master/include/configs/rk30xx.h '''include/configs/rk30xx.h'''] - configuration file<br />
* [https://github.com/radxa/u-boot-rockchip/tree/master/tools/rk_tools '''tools/rk_tools''']<br />
<br />
* [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip '''board/rockchip''']<br />
├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common '''common''']<br />
│ ├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/armlinux '''armlinux''']<br />
│ ├── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/common '''common''']<br />
│ │ ├── A8MMU<br />
│ │ ├── crc<br />
│ │ ├── emmc<br />
│ │ ├── fat<br />
│ │ ├── rc4<br />
│ │ ├── rockusb<br />
│ │ ├── serial_p9<br />
│ │ └── SPI<br />
│ └── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/common/platform '''platform''']<br />
│ ├── rk2928<br />
│ └── rk30<br />
└── [https://github.com/radxa/u-boot-rockchip/tree/master/board/rockchip/rk30xx '''rk30xx''']<br />
<br />
* [https://github.com/radxa/u-boot-rockchip/tree/master/arch/arm/cpu/armv7/rk30xx '''arch/arm/cpu/armv7/rk30xx''']<br />
* [https://github.com/radxa/u-boot-rockchip/blob/master/arch/arm/include/asm/arch-rk30xx/ '''arch/arm/include/asm/arch-rk30xx''']<br />
<br />
== Unbrick ==<br />
<br />
If something goes wrong and your device doesn't boot anymore, read [[rock/unbrick | Unbrick Rock]].<br />
<br />
== External links ==<br />
<br />
* http://androtab.info/rockchip/u-boot/ (working binaries)<br />
* https://github.com/linux-rockchip/u-boot-rockchip (some improvement)</div>Naobsdhttps://wiki.radxa.com/Rock/ubuntuRock/ubuntu2014-09-26T04:43:29Z<p>Naobsd: </p>
<hr />
<div><br />
<br />
{{Languages|rock/ubuntu}}<br />
<br />
__TOC__<br />
<br />
This page describe how to customize a ubuntu image for radxa rock.<br />
<br />
=== Install required packages ===<br />
sudo apt-get install qemu-user-static binfmt-support<br />
<br />
=== Generate the image ===<br />
dd if=/dev/zero of=rock_rootfs.img bs=1M count=1024<br />
mkfs.ext4 -F -L linuxroot rock_rootfs.img #kernel use the label linuxroot to mount the rootfs as /<br />
sudo mount -o loop rock_rootfs.img /mnt<br />
The fast way is to make a ubuntu image is downloading a recent pre-built ubuntu rootfs from [https://releases.linaro.org/latest/ubuntu/raring-images linaro]<br />
wget https://releases.linaro.org/13.08/ubuntu/raring-images/alip/linaro-raring-alip-20130826-474.tar.gz<br />
sudo tar zxvf linaro-raring-alip-20130826-474.tar.gz -C /mnt<br />
cd /mnt<br />
sudo mv binary/* .<br />
sudo rmdir binary<br />
Copy the kernel modules you built from [[rock/Booting_Linux | Building the kernel]]<br />
sudo mkdir -p /mnt/lib/modules<br />
sudo cp -r /path/to/kernel_rockchip/modules/lib/modules/3.0.36+ /mnt/lib/modules<br />
<br />
=== Prepare chroot ===<br />
sudo cp /usr/bin/qemu-arm-static /mnt/usr/bin<br />
sudo modprobe binfmt_misc<br />
sudo mount -t devpts devpts /mnt/dev/pts<br />
sudo mount -t proc proc /mnt/proc<br />
=== Chroot and post configuration ===<br />
sudo chroot /mnt<br />
'''Now we are in the target rootfs, let's continue to configure the system.'''<br />
<br />
Change the default shell to bash.<br />
root@target:# rm /bin/sh && ln -s /bin/bash /bin/sh<br />
Install the pre-installed packages<br />
root@target:# apt-get update<br />
root@target:# apt-get install ssh vim usbutils wpasupplicant wireless-tools<br />
Add a script to link the mtd blocks to names<br />
root@target:# vim /usr/local/bin/mtd-by-name.sh<br />
Add the following<br />
#!/bin/sh -e<br />
# mtd-by-name link the mtdblock to name<br />
# radxa.com, thanks to naobsd<br />
rm -rf /dev/block/mtd/by-name/<br />
mkdir -p /dev/block/mtd/by-name<br />
for i in `ls -d /sys/class/mtd/mtd*[0-9]`; do<br />
name=`cat $i/name`<br />
tmp="`echo $i | sed -e 's/mtd/mtdblock/g'`"<br />
dev="`echo $tmp |sed -e 's/\/sys\/class\/mtdblock/\/dev/g'`"<br />
ln -s $dev /dev/block/mtd/by-name/$name<br />
done<br />
Add the mtd-by-name script to rc.local to get executed every time system boots<br />
root@target:# vim /etc/rc.local<br />
Add this line before '''exit 0'''<br />
/usr/local/bin/mtd-by-name.sh<br />
'''Now we are done! :D'''<br />
root@target:# exit<br />
sync<br />
sudo umount /mnt<br />
Now you have '''rock_rootfs.img''' as the rootfs image for RR.<br />
<br />
--------------------------------------------------------------------<br />
<br />
=== Trouble shooting ===<br />
==== bluez package configure error ====<br />
<pre><br />
Setting up bluez (4.101-0ubuntu8b1) ...<br />
reload: Unknown instance: <br />
invoke-rc.d: initscript dbus, action "force-reload" failed.<br />
start: Job failed to start<br />
invoke-rc.d: initscript bluetooth, action "start" failed.<br />
dpkg: error processing bluez (--configure):<br />
subprocess installed post-installation script returned error exit status 1<br />
dpkg: dependency problems prevent configuration of blueman:<br />
blueman depends on bluez (>= 4.25); however:<br />
Package bluez is not configured yet.<br />
...<br />
<br />
</pre><br />
It turns out the bluez package needs the dbus service running in order to configure properly. The following works:<br />
<br />
service dbus start<br />
dbus start/running, process 24551<br />
dpkg --configure bluez<br />
<br />
==== Non root user can not use the network ====<br />
Edit /etc/group and add<br />
inet:x:3003:root<br />
net_raw:x:3004:root<br />
and then run<br />
gpasswd -a username inet<br />
<br />
=== Alternative way ===<br />
<br />
[http://androtab.info/radxa_rock/ubuntu/ you can prepare your own ubuntu rootfs on Radxa Rock]<br />
<br />
[[Category: Distributions]]<br />
[[Category: Tutorial]]<br />
[[Category: Ubuntu]]</div>Naobsdhttps://wiki.radxa.com/Rock/downloadRock/download2014-09-25T07:31:50Z<p>Naobsd: </p>
<hr />
<div>__NOTOC__<br />
{{DISPLAYTITLE:<span style="display: none"></span>}}<br />
<div class="col-md-12"><br />
<h3 class="brand-name text-center" style="margin-top:0px;"><span class="label label-default">Downloads</span></h3><br />
<hr class="tagline-divider" /><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Tools</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Description</th><br />
<th>Linux</th><br />
<th>Windows</th><br />
<th>Note</th><br />
</tr><br />
<tr><br />
<td><small>Firmware upgrade tool – Format and install firmware to NAND flash</small></td><br />
<td>[http://dl.radxa.com/rock/tools/linux/Linux_Upgrade_Tool_v1.16.zip Linux_Upgrade_Tool_v1.16.zip] (1.2M)</td><br />
<td>[http://dl.radxa.com/rock/tools/windows/RK_BatchTool_V1.7.zip RK_BatchTool_V1.7.zip (567K)]</td><br />
<td>[[rock/flash the image|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Partition upgrade tool – Install images to NAND flash by partitions</small></td><br />
<td>[http://dl.radxa.com/rock/tools/linux/rkflashkit_0.1.1_all.deb rkflashkit_0.1.1_all.deb (143K)]</td><br />
<td>[http://dl.radxa.com/rock/tools/windows/RKDevelopTool_v1.37.zip RKDevelopTool_v1.37.zip (534K)]</td><br />
<td>[[rock/flash the image|Readme]]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Images</span></h4><br />
[[rock/prebuilt_images|Prebuilt Images]]<br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Source code</span></h4><br />
<div class="table-responsive"><br />
<table class="table table-hover table-bordered table-striped"><br />
<tr><br />
<th>Name</th><br />
<th>Download</th><br />
<th>How to</th><br />
</tr><br />
<tr><br />
<td><small>Android Jelly Bean 4.2.2 source code</small></td><br />
<td>Git clone '''radxa/rock-dev''' branch of '''rk3188_r-box_android4.2.2_sdk''' repo from the [http://git.linux-rockchip.org/ linux-rockchip git mirrors]</td><br />
<td>[[Rock/Android Build|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Android Kitkat 4.4.2 source code</small></td><br />
<td>Git clone '''radxa/rock2014''' branch of '''rk3188_rk3066_r-box_android4.4.2_sdk''' repo from the [http://git.linux-rockchip.org/ linux-rockchip git mirrors]</td><br />
<td>[[Rock/Android Build|Readme]]</td><br />
</tr><br />
<tr><br />
<td><small>Linux kernel 3.0.36</small></td><br />
<td>git clone -b radxa/stable-3.0 https://github.com/linux-rockchip/kernel_rockchip.git</td><br />
<td>[[Rock/Booting Linux|Readme]]</td><br />
</tr><br />
</table><br />
</div><br />
</div><br />
<div class="col-md-12"><br />
<h4><span class="label forest" style="margin-bottom:5px;">Hardware</span></h4><br />
<div class="table-responsive"><br />
[[Rock/hardware_docs |Hardware Documents]]<br />
</div><br />
</div></div>Naobsdhttps://wiki.radxa.com/Rock/Android_BuildRock/Android Build2014-09-25T02:10:21Z<p>Naobsd: </p>
<hr />
<div><br />
<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== Before start ===<br />
<br />
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.<br />
<br />
=== Initializing a Build Environment ===<br />
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.<br />
Install JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
Install required packages - ubuntu 12.04<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
Install required packages - ubuntu 13.10 and 14.04<br />
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\<br />
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\<br />
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\<br />
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\<br />
lib32readline-gplv2-dev gcc-multilib libswitch-perl<br />
<br />
Install ARM toolchain and building kernel related pacakges <br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
Install libraries for other tools<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== Get the source code ===<br />
<br />
Git clone from the [http://git.linux-rockchip.org/ linux-rockchip mirror servers]. (git.jp.linux-rockchip.org is located at Japan)<br />
<br />
For android 4.2.2 Jelly Bean<br />
git clone -b radxa/radxa-dev git://git.jp.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git<br />
<br />
For android 4.4.2 KitKat<br />
git clone -b radxa/rock2014 git://git.jp.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk.git<br />
<br />
=== Build the kernel ===<br />
export ARCH=arm<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
=== Build android source code ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
make -j8<br />
<br />
=== Generate the image ===<br />
./mkimage.sh ota<br />
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev<br />
<br />
=== Flash the image ===<br />
Next, follow the [[rock/flash the image]] to flash the image you just build.<br />
<br />
== External reference ==<br />
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Android_BuildRock/Android Build2014-09-24T16:25:48Z<p>Naobsd: </p>
<hr />
<div><br />
<br />
{{Languages|rock/Android_Build}}<br />
<br />
__TOC__<br />
<br />
=== Before start ===<br />
<br />
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.<br />
<br />
=== Initializing a Build Environment ===<br />
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.<br />
Install JDK<br />
sudo add-apt-repository ppa:webupd8team/java<br />
sudo apt-get update<br />
sudo apt-get install oracle-java6-installer<br />
Install required packages - ubuntu 12.04<br />
sudo apt-get install git gnupg flex bison gperf build-essential \<br />
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \<br />
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \<br />
g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\<br />
python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br />
<br />
Install required packages - ubuntu 13.10 and 14.04<br />
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\<br />
libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\<br />
libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\<br />
xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\<br />
lib32readline-gplv2-dev gcc-multilib libswitch-perl<br />
<br />
Install ARM toolchain and building kernel related pacakges <br />
sudo apt-get install gcc-arm-linux-gnueabihf<br />
sudo apt-get install lzop libncurses5-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
Install libraries for other tools<br />
sudo apt-get install libssl1.0.0 libssl-dev<br />
<br />
=== Get the source code ===<br />
<br />
Git clone from the linux-rockchip repo:<br />
<br />
For android 4.2.2 Jelly Bean<br />
git clone -b radxa/radxa-dev git://git.jp.linux-rockchip.org/rk3188_r-box_android4.2.2_sdk.git<br />
<br />
For android 4.4.2 KitKat<br />
git clone -b radxa/rock2014 git://git.jp.linux-rockchip.org/rk3188_rk3066_r-box_android4.4.2_sdk.git<br />
<br />
You may use following mirrors:<br />
* git.us.linux-rockchip.org (US)<br />
* git.nl.linux-rockchip.org (NL)<br />
<br />
=== Build the kernel ===<br />
export ARCH=arm<br />
cd kernel<br />
make rk3188_radxa_rock_defconfig #Use this config If you build the '''android 4.2 JB image for radxa rock'''<br />
make rk3188_radxa_rock_kitkat_defconfig #Use this config If you build the '''android 4.4 KK image for radxa rock'''<br />
make rk3188_box_radxa_rock_pro_hdmi_defconfig #Use this config if you build the '''android 4.4 KK image for radxa rock pro'''<br />
make kernel.img #kernel.img is the normal kernel image with rockchip crc<br />
cd ..<br />
<br />
=== Build android source code ===<br />
source build/envsetup.sh<br />
lunch rk31sdk-eng #Launch this config if you build '''android 4.2 JB for radxa rock'''<br />
lunch radxa_rock-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock'''<br />
lunch radxa_rock_pro-eng #Launch this config if you build '''android 4.4.2 KK for radxa rock pro'''<br />
make -j8<br />
<br />
=== Generate the image ===<br />
./mkimage.sh ota<br />
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] under rockdev<br />
<br />
=== Flash the image ===<br />
Next, follow the [[rock/flash the image]] to flash the image you just build.<br />
<br />
== External reference ==<br />
http://www.cnx-software.com/2014/01/17/getting-started-with-raxda-rock-building-an-android-4-2-image-from-source/<br />
<br />
[[Category: Distributions]]<br />
[[Category:Tutorial]]<br />
[[Category:Android]]</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-09-01T02:28:06Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
=== Requirement ===<br />
<br />
* a radxa rock board (check your [[Rock/hardware revision|hardware revision]])<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
=== Install the toolchain ===<br />
<br />
Install ARM toolchain and building kernel related packages if you don't have them on your host. <br />
<br />
sudo apt-get install gcc-arm-linux-gnueabihf build-essential lzop libncurses5-dev libssl-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa/stable-3.0 https://github.com/linux-rockchip/kernel_rockchip.git<br />
<br />
or download from this link and unzip it:<br />
<br />
https://codeload.github.com/linux-rockchip/kernel_rockchip/zip/radxa/stable-3.0<br />
<br />
=== Build the kernel ===<br />
<br />
cd kernel_rockchip<br />
make radxa_rock_pro_linux_defconfig<br />
make -j8<br />
<br />
The kernel will be at '''arch/arm/boot/Image'''<br />
<br />
if your Rock is full or lite, use radxa_rock_linux_defconfig instead of radxa_rock_pro_linux_defconfig<br />
<br />
make radxa_rock_linux_defconfig<br />
<br />
=== Build the kernel modules ===<br />
<br />
mkdir modules<br />
export INSTALL_MOD_PATH=./modules<br />
make modules && make modules_install<br />
cd ..<br />
<br />
Now you have all the kernel modules in '''modules/lib/modules/3.0.36+/'''.<br />
<br />
=== Generate the ramdisk ===<br />
<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
Install mkbootimg<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
mkbootimg --kernel rockchip-3.0/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the kernel '''boot.img''' for RR.<br />
<br />
=== Modify the parameter ===<br />
The linux rootfs maybe in the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
=== Next step ===<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/RockRock2014-09-01T01:32:52Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock}}<br />
<br />
<br />
<div style="padding: 2.5ex; text-align: center; font: bold x-large sans">Radxa Rock</div><br />
<br />
Radxa Rock is a RK3188 based SBC(Single Board Computer) by [http://radxa.com/about Radxa].<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="center"<br />
| width=100% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Getting started<br />
<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
The Radxa Rock is shipped with Android 4.2.2 (Jelly Bean) and Ubuntu/Linaro 13.09 dual boot on the NAND flash (on-board storage) and it works out of the box. Let's read [[rock/Getting Started|Radxa Rock Getting Started Guide]] and hook everything up and start playing with the board.<br />
<br />
Once you get started, you can [[Rock/flash_the_image|flash]] latest [[Rock/prebuilt_images|Android image and several Linux images]], or you can try to [[Rock/SD_images|boot Android/Linux from SD card]]. You can also [[Rock/Android_Build|build your own Android]], [[Rock/Booting_Linux|build your own kernel]], [[Rock/ubuntu|build your own Ubuntu root file system]], or whatever you want.<br />
<br />
'''FAQs'''<br />
<br />
Before you ask any questions about the Radxa Rock check if your question has already been asked and answered [[rock/FAQ|Radxa Rock FAQ]].<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Community<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Common HowTos<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Hardware<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
'''Users'''<br />
<br />
* [http://talk.radxa.com/ Radxa Talk]<br />
* [https://plus.google.com/communities/114007636590240429960 Radxa Google Plus community]<br />
* [https://www.facebook.com/groups/218416868348521/ Facebook Group Page]<br />
<br />
'''Developers'''<br />
<br />
* [https://groups.google.com/forum/#!forum/radxa radxa google groups], send emails to radxa@googlegroups.com to subscribe <br />
* <tt>#radxa</tt> [http://en.wikipedia.org/wiki/Internet_Relay_Chat IRC] channel on [http://freenode.net/ Freenode]. Click to [http://webchat.freenode.net/?channels=radxa join #radxa on Freenode (WebChat mode)], or consult [http://irclog.whitequark.org/radxa/ IRC logs].<br />
<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/flash the image | Flash the image to NAND]]<br />
* [[rock/SD images | Flash the image to SD card]]<br />
* [[rock/SD upgrading | Upgrade NAND from SD card]]<br />
* [[rock/Serial debug tools Setting | Serial console debugging]]<br />
* [[rock/unbrick | Unbrick Rock]]<br />
* [[rock/ir| Using IR on Rock]]<br />
* [[rock/usb| Using USB on Rock]]<br />
* [[rock/Wireless | Using Wireless on Rock]]<br />
* [[rock/Camera | Using Camera on Rock]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/hardware revision | Hardware Revision]]<br />
* [[rock/extension header | Extension Header]]<br />
<br />
'''Mainboard''' <br />
* hardware version<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_schematic_20131025.pdf Schematic of board revision 2013.10.25 (pdf)]<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_PRO_schematic_20140718.pdf Schematic of board revision 2014.06.10 (Rock Pro) (pdf)]<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_20131025.dxf Board dimensions file (dxf)] - Open with LibreCAD under Linux and AutoCAD under Windows.<br />
* Components position reference [http://dl.radxa.com/rock/docs/hw/componets_position_ref_top_20131025.pdf top] [http://dl.radxa.com/rock/docs/hw/componets_position_ref_bottom_20131025.pdf bottom]<br />
<br />
'''Components'''<br />
<br />
* CPU - [http://dl.radxa.com/rock/docs/hw/ds/Rockchip_RK3188_Specifiation_Detail_V1.2.pdf RK3188 brief specification]<br />
* PMU - [http://dl.radxa.com/rock/docs/hw/ds/DS_ACT8846_PrB_26DEC12_M.pdf ACT8846]<br />
* Wifi/BT Module - [http://dl.radxa.com/rock/docs/hw/ds/BL-8723RB1_product_specification.pdf BL-8723RB1] or [http://www.wpgcloud.com/commonDataSheet.action?name=00001383-xRTL8188ETV(QFN46)-CG_DataSheet_0_1_20120803.pdf RTL8188ETV (only has wifi)]<br />
* HDMI Chip - [http://dl.radxa.com/rock/docs/hw/ds/IT66121FN_Datasheet_v0.99_NoRestriction_.pdf IT66121FN]<br />
<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Android<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Linux<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Others<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/windows adb| ADB under Windows]]<br />
* [[rock/linux adb| ADB under Linux]]<br />
* [[rock/Android Build|Build Android image for RR]]<br />
* [[rock/SD booting | Making bootable SD card]]<br />
* [[rock/AP android |Make radxa as a WIFI_AP]]<br />
* [[rock/Android backup | Backup your apps]]<br />
* [[rock/Android dev tips | Some tips for android development]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/Booting Linux | Build your own kernel and boot into Linux]]<br />
* [[rock/Linux Mainline | Build Linux Mainline]]<br />
* [[rock/ubuntu| Make Ubuntu image]]<br />
* [[rock/audio | Audio on Rock]]<br />
* [[rock/display | Display on Rock]]<br />
* [[rock/LED| Using LEDs on Rock]]<br />
* [[rock/vnc | Setting up VNC server on Rock]]<br />
* [[rock/sd lubuntu | Boot Lubuntu from SD card]] '''OBSOLETE'''<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/dual boot| Dual boot Android/Linux]]<br />
* [[rock/FreeBSD| Boot FreeBSD]]<br />
<br />
</div><br />
|}<br />
<br />
<br />
{| width="66%" cellspacing="5" cellpadding="5" valign="center"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Boot Loader<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Addons<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/bootloader | Boot Loader]]<br />
* [[rock/U-Boot | U-Boot]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/cases | Cases]]<br />
* [[rock/cables | Cables]]<br />
* [[rock/shields | Extension boards]]<br />
<br />
</div><br />
|}<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=50% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Projects<br />
| width=50% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| References<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [http://hwswbits.blogspot.com/2013/10/diy-nas-with-rk3188-device-radxa-rock.html DIY low power NAS (home file server) with Radxa Rock]<br />
* [http://www.megaleecher.net/Network_Sharing_Radxa_Rock Network sharing on Radxa Rock]<br />
* [http://hwswbits.blogspot.com/2013/10/radxa-rock-communicating-with-i2c.html Hardware hacking: Communicating the Radxa with external I2C devices]<br />
* [http://hwswbits.blogspot.com/2013/10/bitbanging-radxa-rock-gpios.html Hardware hacking: Control Radxa Rock's expansion header GPIOs]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
'''Photos'''<br />
<br />
* [http://dl.radxa.com/rock/media/pic/hd/ Some high definition photos of the Radxa Rock engineering samples]<br />
<br />
'''External'''<br />
<br />
* [http://www.cnx-software.com/2013/09/07/radxa-rock-development-boards-with-rockchip-rk3188-are-available-for-developers-now/ cnx-soft - radxa rock development boards with rockchips rk3188 are available for developers now]<br />
* [http://linuxgizmos.com/open-sbc-runs-android-and-linux-on-quad-core-rockchip/ linuxgizmos - open sbc runs android and linux on quad core rockchip]<br />
* [http://minipute.com/2013/09/12/new-radxa-rock-single-board-computer-runs-rockchip-rk3188-90/3246 minipute - new radxa rock single board computer runs rockchip rk3188]<br />
* [http://omglaptop.com/desktops/radxa-rock-specs-price/ omglaptop - Radxa Rock Specs]<br />
* [http://liliputing.com/2013/10/picuntu-4-5-installer-loads-ubuntu-onto-rockchip-rk3188-devices.html PicUntu 4.5 with a GUI installer for RK3188 based devices]<br />
<br />
<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
[[Category:Rock]]</div>Naobsdhttps://wiki.radxa.com/RockRock2014-08-30T10:08:06Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock}}<br />
<br />
<br />
<div style="padding: 2.5ex; text-align: center; font: bold x-large sans">Radxa Rock</div><br />
<br />
Radxa Rock is a RK3188 based SBC(Single Board Computer) by [http://radxa.com/about Radxa].<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="center"<br />
| width=100% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Getting started<br />
<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
The Radxa Rock is shipped with Android 4.2.2 (Jelly Bean) and Ubuntu/Linaro 13.09 dual boot on the NAND flash (on-board storage) and it works out of the box. Let's read [[rock/Getting Started|Radxa Rock Getting Started Guide]] and hook everything up and start playing with the board.<br />
<br />
Once you get started, you can [[Rock/flash_the_image|flash]] latest [[Rock/prebuilt_images|Android image and several Linux images]], or you can try to [[Rock/SD_images|boot Android/Linux from SD card]]. You can also [[Rock/Android_Build|build your own Android]], [[Rock/Booting_Linux|build your own kernel]], [[Rock/ubuntu|build your own Ubuntu root file system]], or whatever you want.<br />
<br />
'''FAQs'''<br />
<br />
Before you ask any questions about the Radxa Rock check if your question has already been asked and answered [[rock/FAQ|Radxa Rock FAQ]].<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Community<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Common HowTos<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Hardware<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
'''Users'''<br />
<br />
* [http://talk.radxa.com/ Radxa Talk]<br />
* [https://plus.google.com/communities/114007636590240429960 Radxa Google Plus community]<br />
* [https://www.facebook.com/groups/218416868348521/ Facebook Group Page]<br />
<br />
'''Developers'''<br />
<br />
* [https://groups.google.com/forum/#!forum/radxa radxa google groups], send emails to radxa@googlegroups.com to subscribe <br />
* <tt>#radxa</tt> [http://en.wikipedia.org/wiki/Internet_Relay_Chat IRC] channel on [http://freenode.net/ Freenode]. Click to [http://webchat.freenode.net/?channels=radxa join #radxa on Freenode (WebChat mode)], or consult [http://irclog.whitequark.org/radxa/ IRC logs].<br />
<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/flash the image | Flash the image to NAND]]<br />
* [[rock/SD images | Flash the image to SD card]]<br />
* [[rock/SD upgrading | Upgrade NAND from SD card]]<br />
* [[rock/Serial debug tools Setting | Serial console debugging]]<br />
* [[rock/unbrick | Unbrick Rock]]<br />
* [[rock/ir| Using IR on Rock]]<br />
* [[rock/usb| Using USB on Rock]]<br />
* [[rock/Wireless | Using Wireless on Rock]]<br />
* [[rock/Camera | Using Camera on Rock]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/hardware revision | Hardware Revision]]<br />
* [[rock/extension header | Extension Header]]<br />
<br />
'''Mainboard''' <br />
* hardware version<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_schematic_20131025.pdf Schematic of board revision 2013.10.25 (pdf)]<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_PRO_schematic_20140718.pdf Schematic of board revision 2014.06.10 (Rock Pro) (pdf)]<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_20131025.dxf Board dimensions file (dxf)] - Open with LibreCAD under Linux and AutoCAD under Windows.<br />
* Components position reference [http://dl.radxa.com/rock/docs/hw/componets_position_ref_top_20131025.pdf top] [http://dl.radxa.com/rock/docs/hw/componets_position_ref_bottom_20131025.pdf bottom]<br />
<br />
'''Components'''<br />
<br />
* CPU - [http://dl.radxa.com/rock/docs/hw/ds/Rockchip_RK3188_Specifiation_Detail_V1.2.pdf RK3188 brief specification]<br />
* PMU - [http://dl.radxa.com/rock/docs/hw/ds/DS_ACT8846_PrB_26DEC12_M.pdf ACT8846]<br />
* Wifi/BT Module - [http://dl.radxa.com/rock/docs/hw/ds/BL-8723RB1_product_specification.pdf BL-8723RB1] or [http://www.wpgcloud.com/commonDataSheet.action?name=00001383-xRTL8188ETV(QFN46)-CG_DataSheet_0_1_20120803.pdf RTL8188ETV (only has wifi)]<br />
* HDMI Chip - [http://dl.radxa.com/rock/docs/hw/ds/IT66121FN_Datasheet_v0.99_NoRestriction_.pdf IT66121FN]<br />
<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Android<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Linux<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Others<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/windows adb| ADB under Windows]]<br />
* [[rock/linux adb| ADB under Linux]]<br />
* [[rock/Android Build|Build Android image for RR]]<br />
* [[rock/SD booting | Making bootable SD card]]<br />
* [[rock/AP android |Make radxa as a WIFI_AP]]<br />
* [[rock/Android backup | Backup your apps]]<br />
* [[rock/Android dev tips | Some tips for android development]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/Booting Linux | Build your own kernel and boot into Linux]]<br />
* [[rock/Linux Mainline | Build Linux Mainline]]<br />
* [[rock/ubuntu| Make Ubuntu image]]<br />
* [[rock/audio | Audio on Rock]]<br />
* [[rock/display | Display on Rock]]<br />
* [[rock/LED| Using LEDs on Rock]]<br />
* [[rock/vnc | Setting up VNC server on Rock]]<br />
* [[rock/sd lubuntu | Boot Lubuntu from SD card]] '''OBSOLETE'''<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/dual boot| Dual boot Android/Linux]]<br />
* [[rock/FreeBSD| Boot FreeBSD]]<br />
<br />
</div><br />
|}<br />
<br />
<br />
{| width="66%" cellspacing="5" cellpadding="5" valign="center"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Boot Loader<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Addons<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/bootloader | Boot Loader]]<br />
* [[rock/U-Boot | U-Boot]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/cases | Cases]]<br />
* [[rock/cables | Cables]]<br />
* [[rock/shields | Extension boards]]<br />
<br />
</div><br />
|}<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=50% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Projects<br />
| width=50% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| References<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [http://hwswbits.blogspot.com/2013/10/diy-nas-with-rk3188-device-radxa-rock.html DIY low power NAS (home file server) with Radxa Rock]<br />
* [http://www.megaleecher.net/Network_Sharing_Radxa_Rock Network sharing on Radxa Rock]<br />
* [http://hwswbits.blogspot.com/2013/10/radxa-rock-communicating-with-i2c.html Hardware hacking: Communicating the Radxa with external I2C devices]<br />
* [http://hwswbits.blogspot.com/2013/10/bitbanging-radxa-rock-gpios.html Hardware hacking: Control Radxa Rock's expansion header GPIOs]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
'''Photos'''<br />
<br />
* [http://dl.radxa.com/rock/media/pic/hd/ Some high definition photos of the Radxa Rock engineering samples]<br />
* [http://androtab.info/radxa_rock/ Some pictures of the engineering samples by naobsd]<br />
<br />
'''External'''<br />
<br />
* [http://www.cnx-software.com/2013/09/07/radxa-rock-development-boards-with-rockchip-rk3188-are-available-for-developers-now/ cnx-soft - radxa rock development boards with rockchips rk3188 are available for developers now]<br />
* [http://linuxgizmos.com/open-sbc-runs-android-and-linux-on-quad-core-rockchip/ linuxgizmos - open sbc runs android and linux on quad core rockchip]<br />
* [http://minipute.com/2013/09/12/new-radxa-rock-single-board-computer-runs-rockchip-rk3188-90/3246 minipute - new radxa rock single board computer runs rockchip rk3188]<br />
* [http://omglaptop.com/desktops/radxa-rock-specs-price/ omglaptop - Radxa Rock Specs]<br />
* [http://liliputing.com/2013/10/picuntu-4-5-installer-loads-ubuntu-onto-rockchip-rk3188-devices.html PicUntu 4.5 with a GUI installer for RK3188 based devices]<br />
<br />
<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
[[Category:Rock]]</div>Naobsdhttps://wiki.radxa.com/Rock/SD_imagesRock/SD images2014-08-30T10:02:27Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/SD images}}<br />
__TOC__<br />
<br />
SD images for the rock are images booting and running on the uSD card completely. This is good when you want to try different OS or new version of the firmware without touching the nand flash.<br />
<br />
== Download ==<br />
<br />
Check your [[Rock/hardware revision|hardware revision]] (Pro or Full/Lite), then download image '''"for SD card"''' from [[Rock/prebuilt images|here]]<br />
<br />
== Write SD image to SD card ==<br />
<br />
=== Windows ===<br />
* Download the Win32DiskImager from [https://sourceforge.net/projects/win32diskimager/files/latest/download here].<br />
* Download the image from above link.<br />
* Use the Win32DiskImager to '''Write''' the image into sdcard<br />
<br />
[[File:Win32DiskImager.png]]<br />
<br />
* Power off the rock, insert the sdcard, then power on, the rock is booting with the images on SD card.<br />
<br />
=== Linux ===<br />
We use dd in Linux to write the image:<br />
sudo dd if=radxa_rock_xxxx_sdcard.img of=/dev/sdx # x is the disk name of your uSD card on your PC</div>Naobsdhttps://wiki.radxa.com/Rock/Booting_LinuxRock/Booting Linux2014-08-13T13:31:06Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Booting Linux}}<br />
<br />
__TOC__<br />
<br />
=== Requirement ===<br />
* a radxa rock board(full version or lite version)<br />
* a desktop/laptop running Linux(64bit preferred)<br />
* a micro usb cable, one side plugged in to the OTG port of radxa rock, the other side plugged in to the usb port on desktop/laptop<br />
<br />
=== Install the toolchain ===<br />
Install ARM toolchain and building kernel related packages if you don't have them on your host. <br />
sudo apt-get install gcc-arm-linux-gnueabihf build-essential lzop libncurses5-dev libssl-dev<br />
export ARCH=arm<br />
export CROSS_COMPILE=arm-linux-gnueabihf-<br />
<br />
=== Get the source code ===<br />
<br />
git clone -b radxa-rock/linux https://github.com/linux-rockchip/rockchip-3.0.git<br />
<br />
or download from this link and unzip it:<br />
https://github.com/linux-rockchip/rockchip-3.0/archive/radxa-rock/linux.zip<br />
<br />
or, you may try work-in-progess kernel based on Android 4.4.2 SDK<br />
git clone -b radxa/radxa-dev-kk https://github.com/linux-rockchip/kernel_rockchip.git<br />
<br />
for Rock Pro<br />
git clone -b radxa/rock2014 https://github.com/linux-rockchip/kernel_rockchip.git<br />
<br />
=== Build the kernel ===<br />
<br />
cd rockchip-3.0<br />
make rk3188_radxa_rock_defconfig<br />
make -j8<br />
The kernel will be at '''arch/arm/boot/Image'''<br />
<br />
if you cloned radxa-rock/android-kk branch, use rk3188_radxa_rock_linux_defconfig instead of rk3188_radxa_rock_defconfig<br />
make rk3188_radxa_rock_linux_defconfig<br />
<br />
=== Build the kernel modules ===<br />
mkdir modules<br />
export INSTALL_MOD_PATH=./modules<br />
make modules && make modules_install<br />
cd ..<br />
Now you have all the kernel modules in '''modules/lib/modules/3.0.36+/'''.<br />
<br />
=== Generate the ramdisk ===<br />
<br />
git clone https://github.com/radxa/initrd.git<br />
make -C initrd<br />
<br />
=== Generate the boot.img ===<br />
Install mkbootimg<br />
git clone https://github.com/neo-technologies/rockchip-mkbootimg.git<br />
cd rockchip-mkbootimg<br />
make<br />
sudo make install<br />
cd ..<br />
<br />
Make boot.img<br />
mkbootimg --kernel rockchip-3.0/arch/arm/boot/Image --ramdisk initrd.img -o boot.img<br />
<br />
Done. Now we have the kernel '''boot.img''' for RR.<br />
<br />
=== Modify the parameter ===<br />
The linux rootfs maybe in the different partition or media(nand or uSD card or USB disk), so you need to tell the kernel which is the right rootfs to mount. So change the root= command line in your parameter to the rootfs you want to mount. The examples are:<br />
root=/dev/block/mtd/by-name/linuxroot # rootfs in the nand partition named "linuxroot"<br />
root=/dev/mmcblk0p1 # rootfs in the uSD card first partition<br />
root=/dev/sda1 # rootfs in the U disk or the USB hard drive first partition<br />
root=LABEL=linuxroot # rootfs in the partition with label "linuxroot", can be in uSD, U disk or USB hard drive.<br />
<br />
=== Next step ===<br />
<br />
Now you refer [[rock/flash the image| flash the image]] to flash the generated boot.img to "boot" [[rock/partitions | partition]] parameter to "parameter" partition of your radxa rock board. And download a [http://dl.radxa.com/rock/images/ubuntu/latest/ prebuilt rootfs] or [[rock/ubuntu |make your own rootfs]]. You will get linux system boot into ramdisk and then switch root to real rootfs.</div>Naobsdhttps://wiki.radxa.com/Rock/prebuilt_imagesRock/prebuilt images2014-08-13T13:27:11Z<p>Naobsd: </p>
<hr />
<div>__TOC__<br />
<br />
This page collects the ready to install/flash image which works on the radxa rock.<br />
<br />
check [[Rock/hardware revision | hardware revision]], firmware is different!<br />
<br />
== For NAND flash ==<br />
<br />
[[Rock/flash the image | how to install NAND image]]<br />
<br />
===Android===<br />
==== Jelly Bean 4.2.2 ====<br />
* 720p - http://dl.radxa.com/rock/images/android/radxa_rock_android_140312_update.zip<br />
* 1080p - http://dl.radxa.com/rock/images/android/radxa_rock_android_1080p_140312_update.zip<br />
<br />
==== KitKat 4.4.2 ====<br />
* Preview - http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_preview_140325_update.zip<br />
<br />
===Android/Linux dual-boot===<br />
* 720p - http://dl.radxa.com/rock/images/dual_boot/radxa_rock_android_ubuntu_dual_boot_140311_update.zip<br />
* 1080p - http://dl.radxa.com/rock/images/dual_boot/radxa_rock_android_ubuntu_dual_boot_1080p_140311_update.zip<br />
<br />
===Ubuntu(Linaro)===<br />
Default user name/pass word are: rock/rock root/root<br />
* Linaro server - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_ubuntu_server_140315_update.zip<br />
* Linaro desktop - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_ubuntu_desktop_140318_update.zip<br />
* Ubuntu 14.04 desktop(for rock) - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_ubuntu_14.04_desktop_140806_update.zip<br />
* Ubuntu 14.04 desktop(for rock pro) - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_pro_ubuntu_14.04_desktop_140725_update.zip<br />
<br />
===Debian===<br />
The password for root is root.<br />
* http://dl.radxa.com/rock/images/debian/radxa_rock_debian_wheezy_140624_update.zip<br />
<br />
== For SD card ==<br />
<br />
[[Rock/SD images | how to install SD card image]]<br />
<br />
===Android===<br />
==== KitKat 4.4.2 ====<br />
* Release one - http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r1_140626_sdcard.zip<br />
<br />
===Ubuntu(Linaro 13.09)===<br />
* Lubuntu Desktop - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_lubuntu_desktop_140626_sdcard.zip<br />
<br />
===Ubuntu 12.04 ===<br />
<br />
Desktop image by Ian MORRISON(linuxium) - https://docs.google.com/file/d/0B99O3A0dDe67OGNUakZFenNLRVU/edit<br />
<br />
user: linuxium password: p<br />
<br />
===Debian===</div>Naobsdhttps://wiki.radxa.com/Rock/flash_the_imageRock/flash the image2014-08-13T13:24:59Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/flash_the_image}}<br />
__TOC__<br />
<br />
This page describes how to install an image to the nand flash of Radxa Rock, ie, how to flash the board. You can choose to either flash the whole image (ie, [[rock/update.img |update.img]]) to the board or just flash the selected [[rock/partitions |partitions]]. You can download the [[rock/prebuilt images| prebuilt images]] from our [http://dl.radxa.com/rock/images/ server] or build your own images.<br />
<br />
== Before you start ==<br />
<br />
Keep in mind that:<br />
'''You can always flash the rock, it never bricks (as the name :)) unless some hardware damage occurs.'''<br />
<br />
What you will need to flash the board is:<br />
* a Radxa Rock board (check [[Rock/hardware_revision | hardware revision]]. there are Pro and Full/Lite, firmware is different)<br />
* a PC running Windows (XP 32/64bit, Windows 7 32/64 bit) or Linux (32/64bit)<br />
* a micro USB cable with one side plugged in to the OTG port of Radxa Rock and the other side plugged into the USB port on PC.<br />
<br />
== Windows ==<br />
<br />
The Windows tool for flashing the image is provided by Rockchip. To flash the [[rock/update.img| update.img]], you need to use the RKBatchTool and to flash the [[rock/partitions| partitions]], you will need to use RKDevelopTool. Both RKBatchTool and RKDevelopTool rely on the RK USB driver so you will need to install it first as below:<br />
<br />
=== Install driver ===<br />
# install using RKDriverAssistant tools - the easy way(Just for winXp, Vista, Win7,not support Win8)<br />
# install manually (WinXp,Vista,Win7,Win8)<br />
<br />
<p></p><br />
'''If you have already installed the USB driver please skip this step.'''<br />
<br />
====a. Install using RK Driver Assistant tools ====<br />
Note:The method just support WinXp,Vista,Win7, NOT SUPPORT Win8<br />
<br />
There’s no need to connect your Rockchip device during this procedure just download and extract [http://dl.radxa.com/rock/tools/windows/RK_DriverAssitant.zip RKDriverAssistant.zip]<br />
Then double click on DriverInstall.exe in the RKDriverAssistant directory to start the utility.<br />
If you've previously tried to install the Rockchip USB drivers for any Rockchip devices make sure you click “Uninstall Driver” first.<br />
<br />
[[File:RK_Driver_Assistant_Install_Uninstall.jpg]]<br />
<br />
Then click “Install Driver” and when the driver has finish installing then shut down radxa board and connect the Radxa Rock board to your computer and let the board go to [[Rock/Loader mode|loader mode]], then your computer will detect the board and you will see it within device manager.<br />
<br />
[[File:RK_Driver_Assistant_Install_Usb_driver.png]]<br />
<br />
Now the driver should have been installed successfully!<br />
<br />
====b. Install Manually====<br />
<br />
Download driver file first. For WinXp,Vista,Win7,Download the file (usb_driver_v3.5.zip) from [http://dl.radxa.com/rock/tools/windows/usb_driver_v3.5.zip here] . For Win8 Download the file(usb_driver_v3.7.zip) from [http://dl.radxa.com/rock/tools/windows/Rockusb%20Driver%20v3.7.zip here]. shut down the Radxa Rock board then connect the Radxa Rock board to the computer and let the board go to [[Rock/Loader mode|loader mode]]. After your computer should detect the board and you will see an unknown device within device manager.<br />
<br />
[[File:flash_image_1.jpg]]<br />
<br />
Select the Unknown device then right click and select "Update Driver Software".<br />
<br />
<br />
[[File:flash_image_2.jpg]]<br />
<br />
Select "Browse the computer for driver software".<br />
<br />
[[File:flash_image_2.5.jpg]]<br />
<br />
Find the file unzipped file you downloaded earlier (usb_driver_v3.5.zip) and select either the 32/64bit folder then click "OK" to install.<br />
<br />
[[File:flash_image_3.jpg]]<br />
<br />
When the driver is installed successful you will then see a Rockusb Device in the device manager window.<br />
<br />
[[File:flash_image_6.jpg]]<br />
<br />
Now the driver is installed successfully.<br />
<br />
===Flash Image===<br />
There are two methods to flash an image.<br />
<br />
# use RKBatchTool (Factory upgrading firmware tool, flash update.img only, it will erase everything.) <br />
# use RKAndroidTool (Development tool, can flash by partitions)<br />
<br/><br />
====Using RKBatchTool to flash update.img====<br />
<br />
<br />
Download RKBatchTool from [http://dl.radxa.com/rock/tools/windows/RK_BatchTool_V1.7.zip here]. Then unzip it and double click RKBatchTool.exe, you will now see the interface as follows:<br />
<br />
[[File:flash_image_7.jpg]]<br />
<br />
Select an image (rockdev/update.img). For information on how to make an update.img see [[Rock/update.img | update.img]]<br/><br />
[[File:flash_image_8.jpg]]<br />
<br />
Power down the Radxa Rock board and connect the Radxa Rock board to the computer then let the board go to [[Rock/Loader mode|loader mode]] after the program should detect the device.<br/><br />
[[File:flash_image_9.jpg]]<br />
<br />
Click the "Upgrade" button to begin flashing and when the flashing process finishes successfully you will see the following interface.<br/><br />
[[File:flash_image_10.jpg]]<br />
<br />
If the flashing has aborted ,it could possibly be an error with the update.img, you can either try to redo the operations above or make the update.img again!<br />
<br />
====Using RKAndroidTool to flash image by partitions ====<br />
Download RKAndroidTools from [http://dl.radxa.com/rock/tools/windows/RKDevelopTool_v1.37.zip here]. Unzip it the file and double click RKAndroidTool.exe, you will then see the interface as follows:<br />
<br />
[[File:rkandroidtool_flash_image_1.png]]<br />
<br />
Power down the Radxa Rock board and connect the Radxa Rock board to the computer and let the board go to [[Rock/Loader mode|loader mode]] then the program will detect it.<br />
<br />
[[File:rkandroidtool_flash_image_2.png]]<br />
<br />
There are eight selections to choose from so select the correct row and then select the checkbox to the left of the row to select it. After you must click the column on the right side for the path of the file you want to flash. You can then select one or more files and flash them at once. Finally Click "Run" to flash images to the device (the right most selection shows the log of the progress).<br />
<br />
[[File:rkandroidtool_flash_image_3.png]]<br />
<br />
[[File:rkandroidtool_flash_image_4.png]]<br />
<br />
If successful the board will disconnect from the tool and boot into the system.<br />
<br />
Please Note:<br />
<br />
# The kernel is contained within the boot.img when you package the image by "./mkimage.sh ota" please see [[Rock/Android_Build]] for more information.<br />
# you can flash one of more image at one time as needed<br />
<br />
=== Troubleshooting ===<br />
==== RKBatchTool can not recognize the board ==== <br />
1.Loader mode : USB device HW: VID_2207&PID_310B <br/><br />
2.Boot into Android: USB device HW: VID_2207&PID_0006<br />
<br />
For loader mode<br/><br />
I have use manual install within loader mode for PID_310B.<br />
The "Rockusb device" driver installed successfully on Vista but the RKBatchTool can not connect to the RK3188 board for img flashing.<br />
<br />
For loader mode cannot connect issue [Solved]<br/><br />
Root Cause: RK3188 board is connected to laptop via USB 3.0 PMMCIA card.<br />
It's a USB2.0 to USB3.0 compatibility issue so switch USB 3.0 port to a USB 2.0 then the RKBatchTool should connect to the RK3188 board for img flashing.<br />
<br />
==== Flashing failed ====<br />
<br />
After flashing, the uart print<br />
<br />
DDR Version 1.04 20130517 In DDR3 300MHz Bus Width=32 Col=10 Bank=8 Row=15 CS=2 Die Bus-Width=16 Size=2048MB Memory OK OUT BUILD=====6 SdmmcInit=0 20 F:32 1061 0 0 40 FlashReadRetry error!!,row = fff000 FlashReadRetry error!!,row = fff000<br />
<br />
and not boot.<br />
<br />
If flashing failed, try to format the nand flash before flashing it. <br />
* RKAndroid tool - click "Erease IDB" button to format the nand flash<br />
* RK Batch tool - click "Restore" to format and then flash the image<br />
<br />
<br />
==== Preparing IDB failed ====<br />
This happens at upgrading bootloader, if you need to upgrade the bootloader or the update.img contains a new bootloader, you probably will meet this. The rock is "bricked". Follow this [[rock/unbrick | unbrick instructions]] to unbrick it.<br />
<br />
== Linux ==<br />
Rockchip has provided tools for upgrading within Linux (closed source) since Android 4.4. It's called '''upgrade_tool'''.<br />
It supports update.img, parameter, bootloader and other partitions, and it's command line based.<br />
<br />
rkflashkit is an open source GUI version flashing tool for rockchip devices. It can not flash bootloader or parameter, only supports kernel and other partitions, but it supports backup the partitions.<br />
<br />
<br />
For developers:<br />
''The initial RE work of the Rockchip bootloader updating protocol is by naobsd and has been improved by some in '''rkflashtool'''. linuxerwang has made a GUI version of the rkflashtool called '''rkflashkit'''. Please note: both '''rkflashtool''' and '''rkflashkit''' can '''not''' flash the [[rock/update.img]] and can only flash within [[rock/bootloader]] mode and not [[rock/mask rom]] mode because the [[rock/mask rom]] updating protocol is not RE yet. If you are interested in the RE protocol ping naobsd at #radxa on IRC. Since the [[rock/bootloader]] has remained unchanged for a long time it's enough for normal usage. If you don't know what this means, just ignore it.''<br />
<br />
=== Upgrade_tool from Rockchip ===<br />
<br />
Download the Rockchip linux upgrade tool [http://dl.radxa.com/rock/tools/linux/Linux_Upgrade_Tool_v1.16.zip here]. Unzip it and you will get a file called '''upgrade_tool''' which is a binary executable file under Linux.<br />
==== Flash update.img ====<br />
Let the board go to [[Rock/Loader mode|loader mode]] and run the following command to flash the [[rock/update.img | update.img]]:<br />
sudo ./upgrade_tool '''uf''' /path/to/update.img #(UF Upgrade Flash)<br />
<br />
If you have an error with upgrading you can low level format the nand flash first with the following command:<br />
sudo ./upgrade_tool '''lf''' #(LF Lowlevel Format) This will erase everything on nand<br />
<br />
==== Flash parameter ====<br />
sudo ./upgrade_tool '''di''' -p /path/to/parameter #(DI Download Image)<br />
<br />
==== Flash bootloader ====<br />
sudo ./upgrade_tool '''ul''' /path/to/bootloader #(UL Upgrade Loader)<br />
<br />
==== Flash the kernel(boot.img) ====<br />
sudo ./upgrade_tool '''di''' -b /path/to/boot.img #(DI Download Image)<br />
<br />
==== Others ====<br />
There are other commands in the upgrade_tool, such as:<br />
UL: upgrade the loader<br />
EF: erease the nand flash<br />
<br />
=== Rkflashkit with GUI ===<br />
You can download the pre-built rkflashkit [http://dl.radxa.com/rock/tools/linux/rkflashkit_0.1.1_all.deb here] or build it yourself with the following command:<br />
<br />
git clone https://github.com/linuxerwang/rkflashkit <br />
cd rkflashkit <br />
./waf debian <br />
<br />
And install it with the following command<br />
<br />
sudo apt-get install python-gtk2 <br />
sudo dpkg -i rkflashkit_0.1.1_all.deb<br />
<br />
Run it with the following command<br />
<br />
sudo rkflashkit<br />
<br />
You can see the interface looks like this:<br />
<br />
[[File:rkflashkit1.png| 600px]]<br />
<br />
Connect the Radxa Rock board to the computer and let the board go into [[Rock/Loader mode|loader mode]] you will then see the the program detect the board in loader mode. <br />
<br />
# Click the Nand partition and you will see the partitions of the board listed then choose the one you want to flash. <br />
# Choose the location of the image you want to flash to that partition. <br />
# Click the "Flash image" button and it will start flashing<br />
# After it's finished click "Reboot Device" button to reboot the board.<br />
<br />
<br />
[[File:rkflashkit2.png| 500px]] [[File:rkflashkit3.png| 500px]]<br />
<br />
=== Troubleshooting ===<br />
==== Creating Comm Object failed! ====<br />
that's udev issues… You can solve this by creating a new file in /etc/udev/rules.d/ with the rule for the rock:<br />
<br />
To do that, just copy and paste these commands:<br />
<br />
sudo sh -c 'echo SUBSYSTEM==\"usb\", ATTR{idVendor}==\"2207\", MODE=\"0666\", GROUP=\"plugdev\" > /etc/udev/rules.d/51-android.rules'<br />
sudo udevadm control --reload-rules<br />
sudo udevadm trigger<br />
<br />
== Install the image on RR without PC ==<br />
If you want to write the image on RR without any other host PC, you can download the image and write with dd:<br />
sudo dd if=XXX.img of=/dev/block/mtd/by-name/XXX bs=16384 conv=sync,fsync<br />
<br />
== Videos tutorial ==<br />
*Flashing the image to nand flash https://www.youtube.com/watch?v=r20lOKu2E1s&feature=youtu.be</div>Naobsdhttps://wiki.radxa.com/Rock/Loader_modeRock/Loader mode2014-07-30T22:38:19Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock/Loader mode}}<br />
__TOC__<br />
<br />
'''<br />
Loader mode on Radxa Rock<br />
'''<br />
<br />
<br />
Note: The recovery key is the one near the USB host port, at the bottom of the board, there is label. Make sure not pressing the wrong key(the reset key).<br />
<br />
=== Board not powered on ===<br />
If the board is not powered on, to switch Radxa Rock to loader mode, simply press and hold the RECOVERY key (the one to the left of the leftmost USB port) and connect the USB OTG cable to your PC. The board will turn on emitting a red light and will stay on loader mode waiting for commands. If no activity is found, the board will turn off after two minutes.<br />
<br />
[[File:guard_1.jpg]]<br />
<br />
=== Board is powering on ===<br />
<br />
When the board is power on, you can plug the OTG cable to your PC first and then one finger press and hold the RECOVERY key, another finger press the RESET key. The board will reboot and stay on loader mode waiting for commands. If no activity is found, the board will turn off after two minutes.</div>Naobsdhttps://wiki.radxa.com/RockRock2014-07-28T12:54:40Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock}}<br />
<br />
<br />
<div style="padding: 2.5ex; text-align: center; font: bold x-large sans">Radxa Rock</div><br />
<br />
Radxa Rock is a RK3188 based SBC(Single Board Computer) by [http://radxa.com/about Radxa].<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="center"<br />
| width=100% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Getting started<br />
<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
The Radxa Rock is shipped with Android 4.2.2 (Jelly Bean) and Ubuntu/Linaro 13.09 dual boot on the NAND flash (on-board storage) and it works out of the box. Let's read [[rock/Getting Started|Radxa Rock Getting Started Guide]] and hook everything up and start playing with the board.<br />
<br />
Once you get started, you can [[Rock/flash_the_image|flash]] latest [[Rock/prebuilt_images|Android image and several Linux images]], or you can try to [[Rock/SD_images|boot Android/Linux from SD card]]. You can also [[Rock/Android_Build|build your own Android]], [[Rock/Booting_Linux|build your own kernel]], [[Rock/ubuntu|build your own Ubuntu root file system]], or whatever you want.<br />
<br />
'''FAQs'''<br />
<br />
Before you ask any questions about the Radxa Rock check if your question has already been asked and answered [[rock/FAQ|Radxa Rock FAQ]].<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Community<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Common HowTos<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Hardware<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
'''Users'''<br />
<br />
* [http://talk.radxa.com/ Radxa Talk]<br />
* [https://plus.google.com/communities/114007636590240429960 Radxa Google Plus community]<br />
* [https://www.facebook.com/groups/218416868348521/ Facebook Group Page]<br />
<br />
'''Developers'''<br />
<br />
* [https://groups.google.com/forum/#!forum/radxa radxa google groups], send emails to radxa@googlegroups.com to subscribe <br />
* <tt>#radxa</tt> [http://en.wikipedia.org/wiki/Internet_Relay_Chat IRC] channel on [http://freenode.net/ Freenode]. Click to [http://webchat.freenode.net/?channels=radxa join #radxa on Freenode (WebChat mode)], or consult [http://irclog.whitequark.org/radxa/ IRC logs].<br />
<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/flash the image | Flash the image]]<br />
* [[rock/SD images | Images for booting from SD card]]<br />
* [[rock/SD upgrading | Upgrade NAND from SD card]]<br />
* [[rock/Serial debug tools Setting | Serial console debugging]]<br />
* [[rock/unbrick | Unbrick Rock]]<br />
* [[rock/ir| Using IR on Rock]]<br />
* [[rock/usb| Using USB on Rock]]<br />
* [[rock/Wireless | Using Wireless on Rock]]<br />
* [[rock/Camera | Using Camera on Rock]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/hardware revision | Hardware Revision]]<br />
* [[rock/extension header | Extension Header]]<br />
<br />
'''Mainboard''' <br />
<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_schematic_20131025.pdf Schematic of board revision 2013.10.25 (pdf)]<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_PRO_schematic_20140718.pdf Schematic of board revision 2014.06.10 (Rock Pro) (pdf)]<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_20131025.dxf Board dimensions file (dxf)] - Open with LibreCAD under Linux and AutoCAD under Windows.<br />
* Components position reference [http://dl.radxa.com/rock/docs/hw/componets_position_ref_top_20131025.pdf top] [http://dl.radxa.com/rock/docs/hw/componets_position_ref_bottom_20131025.pdf bottom]<br />
<br />
'''Components'''<br />
<br />
* CPU - [http://dl.radxa.com/rock/docs/hw/ds/Rockchip_RK3188_Specifiation_Detail_V1.2.pdf RK3188 brief specification]<br />
* PMU - [http://dl.radxa.com/rock/docs/hw/ds/DS_ACT8846_PrB_26DEC12_M.pdf ACT8846]<br />
* Wifi/BT Module - [http://dl.radxa.com/rock/docs/hw/ds/BL-8723RB1_product_specification.pdf BL-8723RB1] or [http://www.wpgcloud.com/commonDataSheet.action?name=00001383-xRTL8188ETV(QFN46)-CG_DataSheet_0_1_20120803.pdf RTL8188ETV (only has wifi)]<br />
* HDMI Chip - [http://dl.radxa.com/rock/docs/hw/ds/IT66121FN_Datasheet_v0.99_NoRestriction_.pdf IT66121FN]<br />
<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Android<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Linux<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Others<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/windows adb| ADB under Windows]]<br />
* [[rock/linux adb| ADB under Linux]]<br />
* [[rock/Android Build|Build Android image for RR]]<br />
* [[rock/SD booting | Making bootable SD card]]<br />
* [[rock/AP android |Make radxa as a WIFI_AP]]<br />
* [[rock/Android backup | Backup your apps]]<br />
* [[rock/Android dev tips | Some tips for android development]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/Booting Linux | Build your own kernel and boot into Linux]]<br />
* [[rock/Linux Mainline | Build Linux Mainline]]<br />
* [[rock/ubuntu| Make Ubuntu image]]<br />
* [[rock/audio | Audio on Rock]]<br />
* [[rock/display | Display on Rock]]<br />
* [[rock/LED| Using LEDs on Rock]]<br />
* [[rock/vnc | Setting up VNC server on Rock]]<br />
* [[rock/sd lubuntu | Boot Lubuntu from SD card]] '''OBSOLETE'''<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/dual boot| Dual boot Android/Linux]]<br />
* [[rock/FreeBSD| Boot FreeBSD]]<br />
<br />
</div><br />
|}<br />
<br />
<br />
{| width="66%" cellspacing="5" cellpadding="5" valign="center"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Boot Loader<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Addons<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/bootloader | Boot Loader]]<br />
* [[rock/U-Boot | U-Boot]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/cases | Cases]]<br />
* [[rock/cables | Cables]]<br />
* [[rock/shields | Extension boards]]<br />
<br />
</div><br />
|}<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=50% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Projects<br />
| width=50% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| References<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [http://hwswbits.blogspot.com/2013/10/diy-nas-with-rk3188-device-radxa-rock.html DIY low power NAS (home file server) with Radxa Rock]<br />
* [http://www.megaleecher.net/Network_Sharing_Radxa_Rock Network sharing on Radxa Rock]<br />
* [http://hwswbits.blogspot.com/2013/10/radxa-rock-communicating-with-i2c.html Hardware hacking: Communicating the Radxa with external I2C devices]<br />
* [http://hwswbits.blogspot.com/2013/10/bitbanging-radxa-rock-gpios.html Hardware hacking: Control Radxa Rock's expansion header GPIOs]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
'''Photos'''<br />
<br />
* [http://dl.radxa.com/rock/media/pic/hd/ Some high definition photos of the Radxa Rock engineering samples]<br />
* [http://androtab.info/radxa_rock/ Some pictures of the engineering samples by naobsd]<br />
<br />
'''External'''<br />
<br />
* [http://www.cnx-software.com/2013/09/07/radxa-rock-development-boards-with-rockchip-rk3188-are-available-for-developers-now/ cnx-soft - radxa rock development boards with rockchips rk3188 are available for developers now]<br />
* [http://linuxgizmos.com/open-sbc-runs-android-and-linux-on-quad-core-rockchip/ linuxgizmos - open sbc runs android and linux on quad core rockchip]<br />
* [http://minipute.com/2013/09/12/new-radxa-rock-single-board-computer-runs-rockchip-rk3188-90/3246 minipute - new radxa rock single board computer runs rockchip rk3188]<br />
* [http://omglaptop.com/desktops/radxa-rock-specs-price/ omglaptop - Radxa Rock Specs]<br />
* [http://liliputing.com/2013/10/picuntu-4-5-installer-loads-ubuntu-onto-rockchip-rk3188-devices.html PicUntu 4.5 with a GUI installer for RK3188 based devices]<br />
<br />
<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
[[Category:Rock]]</div>Naobsdhttps://wiki.radxa.com/RockRock2014-07-23T04:00:47Z<p>Naobsd: </p>
<hr />
<div>{{Languages|rock}}<br />
<br />
<br />
<div style="padding: 2.5ex; text-align: center; font: bold x-large sans">Radxa Rock</div><br />
<br />
Radxa Rock is a RK3188 based SBC(Single Board Computer) by [http://radxa.com/about Radxa].<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="center"<br />
| width=100% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Getting started<br />
<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
The Radxa Rock is shipped with Android 4.2.2 (Jelly Bean) and Ubuntu/Linaro 13.09 dual boot on the NAND flash (on-board storage) and it works out of the box. Let's read [[rock/Getting Started|Radxa Rock Getting Started Guide]] and hook everything up and start playing with the board.<br />
<br />
Once you get started, you can [[Rock/flash_the_image|flash]] latest [[Rock/prebuilt_images|Android image and several Linux images]], or you can try to [[Rock/SD_images|boot Android/Linux from SD card]]. You can also [[Rock/Android_Build|build your own Android]], [[Rock/Booting_Linux|build your own kernel]], [[Rock/ubuntu|build your own Ubuntu root file system]], or whatever you want.<br />
<br />
'''FAQs'''<br />
<br />
Before you ask any questions about the Radxa Rock check if your question has already been asked and answered [[rock/FAQ|Radxa Rock FAQ]].<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Community<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Common HowTos<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Hardware<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
'''Users'''<br />
<br />
* [http://talk.radxa.com/ Radxa Talk]<br />
* [https://plus.google.com/communities/114007636590240429960 Radxa Google Plus community]<br />
* [https://www.facebook.com/groups/218416868348521/ Facebook Group Page]<br />
<br />
'''Developers'''<br />
<br />
* [https://groups.google.com/forum/#!forum/radxa radxa google groups], send emails to radxa@googlegroups.com to subscribe <br />
* <tt>#radxa</tt> [http://en.wikipedia.org/wiki/Internet_Relay_Chat IRC] channel on [http://freenode.net/ Freenode]. Click to [http://webchat.freenode.net/?channels=radxa join #radxa on Freenode (WebChat mode)], or consult [http://irclog.whitequark.org/radxa/ IRC logs].<br />
<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/flash the image | Flash the image]]<br />
* [[rock/SD images | Images for booting from SD card]]<br />
* [[rock/SD upgrading | Upgrade NAND from SD card]]<br />
* [[rock/Serial debug tools Setting | Serial console debugging]]<br />
* [[rock/unbrick | Unbrick Rock]]<br />
* [[rock/ir| Using IR on Rock]]<br />
* [[rock/usb| Using USB on Rock]]<br />
* [[rock/Wireless | Using Wireless on Rock]]<br />
* [[rock/Camera | Using Camera on Rock]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/hardware revision | Hardware Revision]]<br />
* [[rock/extension header | Extension Header]]<br />
<br />
'''Mainboard''' <br />
<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_schematic_20131025.pdf Schematic of board revision 2013.10.25 (pdf)]<br />
* [http://dl.radxa.com/rock/docs/hw/RADXA_ROCK_20131025.dxf Board dimensions file (dxf)] - Open with LibreCAD under Linux and AutoCAD under Windows.<br />
* Components position reference [http://dl.radxa.com/rock/docs/hw/componets_position_ref_top_20131025.pdf top] [http://dl.radxa.com/rock/docs/hw/componets_position_ref_bottom_20131025.pdf bottom]<br />
<br />
'''Components'''<br />
<br />
* CPU - [http://dl.radxa.com/rock/docs/hw/ds/Rockchip_RK3188_Specifiation_Detail_V1.2.pdf RK3188 brief specification]<br />
* PMU - [http://dl.radxa.com/rock/docs/hw/ds/DS_ACT8846_PrB_26DEC12_M.pdf ACT8846]<br />
* Wifi/BT Module - [http://dl.radxa.com/rock/docs/hw/ds/BL-8723RB1_product_specification.pdf BL-8723RB1] or [http://www.wpgcloud.com/commonDataSheet.action?name=00001383-xRTL8188ETV(QFN46)-CG_DataSheet_0_1_20120803.pdf RTL8188ETV (only has wifi)]<br />
* HDMI Chip - [http://dl.radxa.com/rock/docs/hw/ds/IT66121FN_Datasheet_v0.99_NoRestriction_.pdf IT66121FN]<br />
<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Android<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Linux<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Others<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/windows adb| ADB under Windows]]<br />
* [[rock/linux adb| ADB under Linux]]<br />
* [[rock/Android Build|Build Android image for RR]]<br />
* [[rock/SD booting | Making bootable SD card]]<br />
* [[rock/AP android |Make radxa as a WIFI_AP]]<br />
* [[rock/Android backup | Backup your apps]]<br />
* [[rock/Android dev tips | Some tips for android development]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/Booting Linux | Build your own kernel and boot into Linux]]<br />
* [[rock/Linux Mainline | Build Linux Mainline]]<br />
* [[rock/ubuntu| Make Ubuntu image]]<br />
* [[rock/audio | Audio on Rock]]<br />
* [[rock/display | Display on Rock]]<br />
* [[rock/LED| Using LEDs on Rock]]<br />
* [[rock/vnc | Setting up VNC server on Rock]]<br />
* [[rock/sd lubuntu | Boot Lubuntu from SD card]] '''OBSOLETE'''<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/dual boot| Dual boot Android/Linux]]<br />
* [[rock/FreeBSD| Boot FreeBSD]]<br />
<br />
</div><br />
|}<br />
<br />
<br />
{| width="66%" cellspacing="5" cellpadding="5" valign="center"<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Boot Loader<br />
| width=33% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Addons<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/bootloader | Boot Loader]]<br />
* [[rock/U-Boot | U-Boot]]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [[rock/cases | Cases]]<br />
* [[rock/cables | Cables]]<br />
* [[rock/shields | Extension boards]]<br />
<br />
</div><br />
|}<br />
<br />
<br />
{| width="100%" cellspacing="5" cellpadding="5" valign="top"<br />
| width=50% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| Projects<br />
| width=50% style="background: #8b9779; border: 1px solid #ccc; padding: 5px; margin: 3px; font-weight:bold;text-align:center;font-size:120%;color:#ddd"| References<br />
|-<br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
<br />
* [http://hwswbits.blogspot.com/2013/10/diy-nas-with-rk3188-device-radxa-rock.html DIY low power NAS (home file server) with Radxa Rock]<br />
* [http://www.megaleecher.net/Network_Sharing_Radxa_Rock Network sharing on Radxa Rock]<br />
* [http://hwswbits.blogspot.com/2013/10/radxa-rock-communicating-with-i2c.html Hardware hacking: Communicating the Radxa with external I2C devices]<br />
* [http://hwswbits.blogspot.com/2013/10/bitbanging-radxa-rock-gpios.html Hardware hacking: Control Radxa Rock's expansion header GPIOs]<br />
<br />
</div><br />
| valign=top style="border: 1px solid #ccc; background: #333"|<br />
<div style="margin: 0 0 0 1em;"><br />
'''Photos'''<br />
<br />
* [http://dl.radxa.com/rock/media/pic/hd/ Some high definition photos of the Radxa Rock engineering samples]<br />
* [http://androtab.info/radxa_rock/ Some pictures of the engineering samples by naobsd]<br />
<br />
'''External'''<br />
<br />
* [http://www.cnx-software.com/2013/09/07/radxa-rock-development-boards-with-rockchip-rk3188-are-available-for-developers-now/ cnx-soft - radxa rock development boards with rockchips rk3188 are available for developers now]<br />
* [http://linuxgizmos.com/open-sbc-runs-android-and-linux-on-quad-core-rockchip/ linuxgizmos - open sbc runs android and linux on quad core rockchip]<br />
* [http://minipute.com/2013/09/12/new-radxa-rock-single-board-computer-runs-rockchip-rk3188-90/3246 minipute - new radxa rock single board computer runs rockchip rk3188]<br />
* [http://omglaptop.com/desktops/radxa-rock-specs-price/ omglaptop - Radxa Rock Specs]<br />
* [http://liliputing.com/2013/10/picuntu-4-5-installer-loads-ubuntu-onto-rockchip-rk3188-devices.html PicUntu 4.5 with a GUI installer for RK3188 based devices]<br />
<br />
<br />
<br />
</div><br />
|}<br />
<br />
<br />
<br />
[[Category:Rock]]</div>Naobsdhttps://wiki.radxa.com/Rock/SD_bootingRock/SD booting2014-07-23T03:58:10Z<p>Naobsd: </p>
<hr />
<div>__TOC__<br />
<br />
this is how to make Android bootable SD card from update.img.<br />
<br />
if you need available bootable SD images, please refer [[Rock/SD images]].<br />
<br />
== Preparation ==<br />
<br />
1. update.img for SD boot<br />
2. A sdcard (4G at least)<br />
3. A sdcard reader/writer<br />
4. Windows PC<br />
<br />
== Make the Boot Disk under Windows ==<br />
<br />
1. Download the tool to make upgrade disk and unzip it<br />
http://dl.radxa.com/rock/tools/windows/SD_Firmware_Tool.zip<br />
2. Insert the reader to pc and insert the sdcard to reader<br />
3. Find SD_Fireware_Tool.exe under SD_Fireware_Tool and click it. See PIC_1<br />
4. Select the insert sdcard under "Choose removable disk" Item. See PIC_1<br />
5. Select "SD Boot" (Note:Select only this item). See PIC_1<br />
6. Click "Firmware" button to choose the image just download and unzip.See PIC_1<br />
7. Click "Create" to begin. when complete, there will be a dialog to tell you success<br />
<br />
[[File:boot_sdcard_1.jpg]] PIC_1<br />
<br />
== Boot system from sdcard ==<br />
<br />
1. Power off the RR<br />
2. Insert the sdcard<br />
3. Power on the RR, the process starts and the process likes the android system first boot.</div>Naobsdhttps://wiki.radxa.com/Rock/prebuilt_imagesRock/prebuilt images2014-07-03T01:31:22Z<p>Naobsd: </p>
<hr />
<div>This page collects the ready to install/flash image which works on the radxa rock.<br />
<br />
== For NAND flash ==<br />
<br />
[[Rock/flash the image | how to install NAND image]]<br />
<br />
===Android===<br />
==== Jelly Bean 4.2.2 ====<br />
* 720p - http://dl.radxa.com/rock/images/android/radxa_rock_android_140312_update.zip<br />
* 1080p - http://dl.radxa.com/rock/images/android/radxa_rock_android_1080p_140312_update.zip<br />
<br />
==== KitKat 4.4.2 ====<br />
* Preview - http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_preview_140325_update.zip<br />
<br />
===Android/Linux dual-boot===<br />
* 720p - http://dl.radxa.com/rock/images/dual_boot/radxa_rock_android_ubuntu_dual_boot_140311_update.zip<br />
* 1080p - http://dl.radxa.com/rock/images/dual_boot/radxa_rock_android_ubuntu_dual_boot_1080p_140311_update.zip<br />
<br />
===Ubuntu(Linaro)===<br />
Default user name/pass word are: rock/rock root/root<br />
* Linaro server - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_ubuntu_server_140315_update.zip<br />
* Linaro desktop - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_ubuntu_desktop_140318_update.zip<br />
<br />
===Debian===<br />
The password for root is root.<br />
* http://dl.radxa.com/rock/images/debian/radxa_rock_debian_wheezy_140624_update.zip<br />
<br />
== For SD card ==<br />
<br />
[[Rock/SD images | how to install SD card image]]<br />
<br />
===Android===<br />
==== KitKat 4.4.2 ====<br />
* Release one - http://dl.radxa.com/rock/images/android/radxa_rock_android_kitkat_r1_140626_sdcard.zip<br />
===Ubuntu(Linaro)===<br />
* Lubuntu Desktop - http://dl.radxa.com/rock/images/ubuntu/radxa_rock_lubuntu_desktop_140626_sdcard.zip<br />
===Debian===</div>Naobsdhttps://wiki.radxa.com/Rock/sd_lubuntuRock/sd lubuntu2014-07-02T07:50:41Z<p>Naobsd: </p>
<hr />
<div>== THIS PAGE IS OBSOLETE ==<br />
<br />
please refer new page: [[Rock/SD images]]<br />
<br />
----<br />
<br />
__TOC__<br />
<br />
== How to boot rootfs on an SD Card ==<br />
<br />
* Get a parameter file from http://dl.radxa.com/rock/images/parameter/, make sure the root command entry of parameter file is '''root=/dev/mmcblk0p1'''<br />
<br />
* Flash it to the board with RKAndroidTool(Windows) from [http://dl.radxa.com/rock/tools/windows/RKDevelopTool_v1.37.zip here]. Linux instructions [[Rock/flash_the_image#Flash_update.img | here]].<br />
<br />
* It should now boot from SD Card<br />
<br />
Example parameter file:<br />
<br />
FIRMWARE_VER:4.2.2<br />
MACHINE_MODEL:radxa_rock<br />
MACHINE_ID:007<br />
MANUFACTURER:RADXA<br />
MAGIC: 0x5041524B<br />
ATAG: 0x60000800<br />
MACHINE: 3066<br />
CHECK_MASK: 0x80<br />
KERNEL_IMG: 0x60408000<br />
#RECOVER_KEY: 1,1,0,20,0<br />
CMDLINE:console=ttyFIQ0,115200 console=tty0 '''root=/dev/mmcblk0p1''' rw rootfstype=ext4 mac_addr=12:21:34:43:56:65 init=/sbin/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot)<br />
<br />
== Create Lubuntu SD Card ==<br />
<br />
* Get a rootfs-desktop.img file from http://dl.radxa.com/rock/images/ubuntu/partitions/<br />
* Unzip it<br />
* Finally copy rootfs image to sd card.<br />
<br />
$ sudo dd if=mydir/rootfs-desktop.img of=/dev/mmcblk0p1<br />
$ sync<br />
<br />
== Resize SD Card ==<br />
<br />
<PRE><br />
$ sudo resize2fs -p /dev/mmcblk0p1<br />
</PRE></div>Naobsdhttps://wiki.radxa.com/Rock/SD_bootingRock/SD booting2014-07-02T07:50:23Z<p>Naobsd: </p>
<hr />
<div>== THIS PAGE IS OBSOLETE ==<br />
<br />
please refer new page: [[Rock/SD images]]<br />
<br />
----<br />
<br />
__TOC__<br />
<br />
'''This chapter introduces how to boot android(linux will be supported later) from sdcard.''' <br />
<br />
'''Note:''' <br />
<br />
'''1 Windows only'''<br />
<br />
Because of the tool released by Rockchip is Windows only.<br />
<br />
'''2 Android only'''<br />
<br />
There are still some problems to resolve for linux. <br />
<br />
== Preparation ==<br />
<br />
1. A sdcard (4G at least)<br />
2. A sdcard reader<br />
3. Desktop running Windows<br />
<br />
== Get the boot_sdcard_image ==<br />
<br />
The Image is just modified for upgrading android from sdcard. you can download from here <br />
http://dl.radxa.com/rock/images/android/Boot_android_from_sdcard/radxa_rock_kitkat_sdcard_boot_update_0621.zip<br />
and then unzip it.<br />
<br />
== Make the Boot Disk under Windows ==<br />
<br />
1. Download the tool to make upgrade disk and unzip it<br />
http://dl.radxa.com/rock/tools/windows/SD_Firmware_Tool.zip<br />
2. Insert the reader to pc and insert the sdcard to reader<br />
3. Find SD_Fireware_Tool.exe under SD_Fireware_Tool and click it. See PIC_1<br />
4. Select the insert sdcard under "Choose removable disk" Item. See PIC_1<br />
5. Select "SD Boot" (Note:Select only this item). See PIC_1<br />
6. Click "Firmware" button to choose the image just download and unzip.See PIC_1<br />
7. Click "Create" to begin. when complete, there will be a dialog to tell you success<br />
<br />
[[File:boot_sdcard_1.jpg]] PIC_1<br />
<br />
==Boot system from sdcard==<br />
<br />
1. Power off the RR<br />
2. Insert the sdcard<br />
3. Power on the RR, the process starts and the process likes the android system first boot.</div>Naobsd