Difference between revisions of "How to Make an Android SD Card Flash Image for MIPS CI20"

From eLinux.org
Jump to: navigation, search
(Replace dummy contents will real directions.)
m (Added a little formatting and github links)
Line 1: Line 1:
 
{{TOC right}}
 
{{TOC right}}
  
 +
== Build steps ==
 
Create a directory to hold the source tree
 
Create a directory to hold the source tree
  
Line 14: Line 15:
 
         repo sync
 
         repo sync
 
          
 
          
Set up environment variables needed to build image
+
Set up environment variables needed to build image (Note. this takes 50Gb of space and quite a bit of time)
 
          
 
          
 
         export TOP=`pwd`
 
         export TOP=`pwd`
Line 31: Line 32:
  
 
The SD card can now be used to [[CI20_Dev_Zone#NAND_Flashing_SD_card|flash the CI20 NAND.]]
 
The SD card can now be used to [[CI20_Dev_Zone#NAND_Flashing_SD_card|flash the CI20 NAND.]]
 +
 +
== Github links ==
 +
 +
These repositories host the sources for the the kernel, u-boot and android.
 +
 +
https://github.com/MIPS/CI20_linux/tree/dev-mips-kitkat-v3.0.8
 +
 +
https://github.com/MIPS/CI20_u-boot/tree/dev-mips-kitkat-v2013.10
 +
 +
https://github.com/MIPS/CI20_android/tree/dev-mips-kitkat
  
 
{{CI20}}
 
{{CI20}}
 
[[Category:CI20 Rootfs Guides]]
 
[[Category:CI20 Rootfs Guides]]

Revision as of 03:35, 12 January 2015

Build steps

Create a directory to hold the source tree

       mkdir <CI20 Android Directory>

Enter new directory

       cd <CI20 Android Directory>

Create repo and fetch contents

       repo init -u git://github.com/MIPS/manifests.git -b dev-mips-kitkat -m mips-kk-4.4.2_r1.m1.xml
       repo sync
       

Set up environment variables needed to build image (Note. this takes 50Gb of space and quite a bit of time)

       export TOP=`pwd`
       source build/envsetup.sh
       lunch aosp_ci20-userdebug
       export JAVA_HOME=/usr/lib/jvm/java-6-oracle

Run "make"

       make -j 8 # You may need to adjust the number depending on your build system

Insert an SD card to be written into the host system then run the following commands

       cd device/imgtec/ci20/sdcardinstaller/
       ./mksdcard /dev/sdX # The name of the SD card device may vary across systems

The SD card can now be used to flash the CI20 NAND.

Github links

These repositories host the sources for the the kernel, u-boot and android.

https://github.com/MIPS/CI20_linux/tree/dev-mips-kitkat-v3.0.8
https://github.com/MIPS/CI20_u-boot/tree/dev-mips-kitkat-v2013.10
https://github.com/MIPS/CI20_android/tree/dev-mips-kitkat