Difference between revisions of "Rock2/square bb"
PeiYao Wang (Talk | contribs) (→Initializing a Build Environment) |
PeiYao Wang (Talk | contribs) (→Get the source code) |
||
Line 50: | Line 50: | ||
sudo apt-get install libssl1.0.0 libssl-dev | sudo apt-get install libssl1.0.0 libssl-dev | ||
− | === Get the source code === | + | ==== 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] | + | 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 === | === Build u-boot === |
Revision as of 02:48, 24 March 2015
Contents
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
Before start
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 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.
Initializing a Build Environment
- Refer 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 radxa_rock2_square_android4.4.2_sdk_20150324.tgz
Build u-boot
cd u-boot make rk3288_defconfig make -j4
Build the kernel
Build android source code
Generate the image
./mkimage.sh ota
you will get boot.img recovery.img system.img under rockdev/Image, and update.img under rockdev
Flash the image
Next, follow the flash to NAND flash to flash the image to NAND flash you just build.