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)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="col-md-8 mwbs-color-darker">
+
__NOTOC__{{DISPLAYTITLE:Radxa Rock2 Square<span style="display: none"></span>}}
        <div class="caption">
+
 
 +
{{Rock2_header}}
 +
 
 +
<div class="col-md-6 mwbs-color-darker">
 +
<div class="thumbnail">[[File:Rock2_square_bb_3d.png]]</div>
 +
</div>
 +
<div class="col-md-6 mwbs-color-darker">
 +
<h5>
 
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 is a square base board for the [[Rock2 som]] for the radxa community. It aims at small size, low cost, full function.
        </div>
+
</h5>
    <div class="thumbnail">[[File:Rock2_square_bb.png]]</div>
+
 
</div>
 
</div>
  
<div class="column clearfix"></div>
 
  
== 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 ==
+
<div class="column clearfix"></div>
===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===
+
  
 +
<div class="col-md-12">
 +
<div class="col-md-4">
 +
    <div class="panel panel-hearts">
 +
        <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-hand-o-up"></i> Getting started</h3> </div>
  
==Build Android==
+
        <div class="panel-body">
 +
* [[Rock2/square_bb/start | Getting start with Rock2 Square]]
 +
* [[Rock2/square_bb/loader_mode | Let the device goto loader mode]]
 +
* [[Backup_and_deploy | How to backup and restore the image]]
 +
* [[Rock2/wireless | Setup wifi as AP mode]]
 +
        </div>
  
==== Before start ====
+
    </div>
 +
</div>
 +
<div class="col-md-4 ">
 +
  <div class="panel panel-cocktail-border">
 +
          <div class="panel-heading">
 +
                <h3 class="panel-title"><i class="fa fa-users"></i> Community</h3>
 +
          </div>
  
Building AOSP(Android Open Source Project) for radxa rock is a huge task, it takes a lot of time and disk spaceYou 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.
+
          <div class="panel-body">
 +
<div class="col-md-3 ">
 +
<div class="thumbnail">[[File:Chat-icon-96.png | link=http://talk.radxa.com]]</div>
 +
</div>
 +
<div class="col-md-3 ">
 +
<div class="thumbnail">[[File:Google_plus-icon-96.png | link=https://plus.google.com/communities/114007636590240429960]]</div>
 +
</div>
 +
<div class="col-md-3 ">
 +
<div class="thumbnail">[[File:Facebook-icon-96.png | link=https://www.facebook.com/groups/218416868348521]]</div>
 +
</div>
 +
  <div class="column clearfix"></div>
 +
'''Developers'''
 +
* [https://groups.google.com/forum/#!forum/radxa radxa google groups], send emails to radxa@googlegroups.com to subscribe
 +
* <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].   
 +
          </div>
 +
    </div>
 +
</div>
  
==== Initializing a Build Environment ====
+
      <div class="col-md-4 ">
* Refer [http://source.android.com/source/initializing.html instructions] from Google. Below is what we tested and set up the environment.
+
        <div class="panel panel-cello-border">
Install JDK
+
          <div class="panel-heading">
    sudo add-apt-repository ppa:webupd8team/java
+
            <h3 class="panel-title"><i class="fa fa-hdd-o"></i> Hardware</h3>
    sudo apt-get update
+
          </div>
    sudo apt-get install oracle-java6-installer
+
          <div class="panel-body">
Install required packages - ubuntu 12.04
+
* [[Rock2/square_bb/hardware | Get to know the hardware of rock2 square]]
    sudo apt-get install git gnupg flex bison gperf build-essential \
+
* [[Rock2/square_bb/extension_header | Extension header on rock2 square]]
    zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
+
          </div>
    libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
+
        </div>
    g++-multilib mingw32 tofrodos gcc-multilib ia32-libs\
+
</div>
    python-markdown libxml2-utils xsltproc zlib1g-dev:i386
+
  
Install required packages - ubuntu 13.10 and 14.04
+
<div class="col-md-12">
    sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev\
+
     <div class="panel panel-meadow">
     libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl\
+
        <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-linux"></i> Distributions</h3> </div>
    libncurses5-dev zlib1g-dev pngcrush schedtool libxml2 libxml2-utils\
+
        <div class="panel-body">
    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
+
<div class="col-md-2 mwbs-color-darker">
    sudo apt-get install lzop libncurses5-dev
+
      <div class="thumbnail">[[File:Android-Logo.jpg | link=Rock2/Android]]
Install libraries for other tools
+
          <div class="caption">
    sudo apt-get install libssl1.0.0 libssl-dev
+
              <h4 class="text-center">[[rock2/Android | Android]]</h4>
 
+
          </div>
==== Get the source code ====
+
      </div>
 +
</div>
 +
<div class="col-md-2 mwbs-color-darker">
 +
      <div class="thumbnail">[[File:Debian-logo.png | link=Rabian]]
 +
          <div class="caption">
 +
              <h4 class="text-center">[[Rabian | Rabian]]</h4>
 +
          </div>
 +
      </div>
 +
</div>
 +
        </div>
  
  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]
+
     </div>
 
+
</div>
==== 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 [[rock/update.img | update.img]] ( e.g. rock2_android_kitkat_15-xx-xx_xxxxxx.img)under rockdev
+
 
+
==== Flash the image ====
+
Next, follow the [[rock/flash the image | flash to NAND flash]] to flash the image to NAND flash you just build.
+

Latest revision as of 07:06, 9 July 2015


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