Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rock2/square bb"

(Generate the image)
Line 17: Line 17:
 
* Headphone detect pin is not connected
 
* Headphone detect pin is not connected
 
===Beta===
 
===Beta===
 
  
 
==Build Android==
 
==Build Android==
  
==== Before start ====
+
Please refer [[Rock/Android_Build#Initializing_a_Build_Environment]] to set up the building environment if you haven't set it already.
  
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.
+
'''Get the source code
 +
'''
 +
  Download here [http://dl.radxa.com/rock2/source/radxa_rock2_square_android4.4.2_sdk_20150324.tgz radxa_rock2_square_android4.4.2_sdk_20150324.tgz]
  
==== Initializing a Build Environment ====
+
'''Build u-boot'''
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.
+
Install JDK
+
    sudo add-apt-repository ppa:webupd8team/java
+
    sudo apt-get update
+
    sudo apt-get install oracle-java6-installer
+
Install required packages - ubuntu 12.04
+
    sudo apt-get install git gnupg flex bison gperf build-essential \
+
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
+
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
+
    g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\
+
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386
+
  
Install required packages - ubuntu 13.10 and 14.04
 
    sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\
 
    libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\
 
    libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\
 
    xsltproc lzop libc6-dev schedtool g++-multilib lib32z1-dev lib32ncurses5-dev\
 
    lib32readline-gplv2-dev gcc-multilib libswitch-perl
 
 
Install ARM toolchain and building kernel related pacakges
 
    sudo apt-get install lzop libncurses5-dev
 
Install libraries for other tools
 
    sudo apt-get install libssl1.0.0 libssl-dev
 
 
==== Get the source code ====
 
 
  Download here [http://dl.radxa.com/rock2/source/radxa_rock2_square_android4.4.2_sdk_20150324.tgz radxa_rock2_square_android4.4.2_sdk_20150324.tgz]
 
 
==== Build u-boot ====
 
 
     cd u-boot  
 
     cd u-boot  
 
     make rk3288_defconfig  
 
     make rk3288_defconfig  
 
     make -j4
 
     make -j4
  
==== Build the kernel ====
+
'''Build the kernel'''
 +
 
 
     cd kernel
 
     cd kernel
 
     make radxa_rock2_square_defconfig
 
     make radxa_rock2_square_defconfig
 
     make radxa-rock2-square.img -j 16
 
     make radxa-rock2-square.img -j 16
  
==== Build android source code ====
+
'''Build android source code'''
 +
 
 
     source build/envsetup.sh  
 
     source build/envsetup.sh  
 
     lunch 12
 
     lunch 12
 
     make -j 8
 
     make -j 8
  
==== Generate the image ====
+
''Generate the image''
 +
 
 
     ./mkimage.sh ota
 
     ./mkimage.sh ota
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] ( e.g. rock2_android_kitkat_15-03-23_141904.img)under rockdev
 
  
==== Flash the image ====
+
you will get boot.img recovery.img system.img under rockdev/Image, and [[rock/update.img | update.img]] ( e.g. rock2_android_kitkat_15-03-23_141904.img)under rockdev
Next, follow the [[rock/flash the image | flash to NAND flash]] to flash the image to NAND flash you just build.
+

Revision as of 10:02, 24 March 2015

Rock2 Square is a square base board for the Rock2 som for the radxa community. It aims at small size, low cost, full function.

Rock2 square bb.png

Status

March 3, 2014: Currently rock2 square base board is at alpha stage, We now have around 20 full functional boards with some manually fixes. 100pcs beta boards are already put into production, we are going to have them back soon.

Hardware revision

Alpha

First revision, mostly working, android and debian server is booting fine. Known issues are:

  • HDMI detect ping(HDP) is not connected
  • Headphone detect pin is not connected

Beta

Build Android

Please refer Rock/Android_Build#Initializing_a_Build_Environment to set up the building environment if you haven't set it already.

Get the source code

  Download here radxa_rock2_square_android4.4.2_sdk_20150324.tgz

Build u-boot

    cd u-boot 
    make rk3288_defconfig 
    make -j4

Build the kernel

    cd kernel
    make radxa_rock2_square_defconfig
    make radxa-rock2-square.img -j 16

Build android source code

    source build/envsetup.sh 
    lunch 12
    make -j 8

Generate the image

   ./mkimage.sh ota

you will get boot.img recovery.img system.img under rockdev/Image, and update.img ( e.g. rock2_android_kitkat_15-03-23_141904.img)under rockdev