Difference between revisions of "IoTGateway/BSP/Android/BSPsandImages/Build Android"

From ESS-WIKI
Jump to: navigation, search
(Created page with "=== <span style="font-family:times new roman,times,serif;">Building Android 6.0.1_2.1.0 u-boot and kernel</span> === <span style="font-family:times new roman,times,serif;">[...")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=== <span style="font-family:times new roman,times,serif;">Building Android 6.0.1_2.1.0 u-boot and kernel</span> ===
+
=== <span style="font-family:times new roman,times,serif;">Building Android 6.0.1_2.1.0 android image</span> ===
  
 
<span style="font-family:times new roman,times,serif;">[ For reference ]</span>
 
<span style="font-family:times new roman,times,serif;">[ For reference ]</span>
Line 22: Line 22:
  
  
====<span style="font-family:times new roman,times,serif;">To build android image</span>====
+
 
 +
<span style="font-family:times new roman,times,serif;">To build android image</span>
  
 
:<span style="font-family:times new roman,times,serif;">Perform the following command in terminal console</span>
 
:<span style="font-family:times new roman,times,serif;">Perform the following command in terminal console</span>
Line 31: Line 32:
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">simg2img is a tool that converts a sparse system image to a raw system image on a Linux host PC and is located in myandroid/out/host/linux-x86/bin/simg2img.</span></span>
 
<span style="font-size:small;"><span style="font-family:times new roman,times,serif;">simg2img is a tool that converts a sparse system image to a raw system image on a Linux host PC and is located in myandroid/out/host/linux-x86/bin/simg2img.</span></span>
  
  <small>$ out/host/linux-x86/bin/simg2img out/target/product/$PRODUCT/system.img out/target/product/$PRODUCT/system_raw.img
+
  <small>$ out/host/linux-x86/bin/simg2img out/target/product/$PRODUCT/system.img out/target/product/$PRODUCT/system_raw.img</small>
  $ mv out/target/product/$PRODUCT/system_raw.img out/target/product/$PRODUCT/system.img</small>
+
  <small>$ mv out/target/product/$PRODUCT/system_raw.img out/target/product/$PRODUCT/system.img</small>

Latest revision as of 03:01, 7 March 2017

Building Android 6.0.1_2.1.0 android image

[ For reference ]

If your product is RSB-4410A1, the product name is rsb_4410_a1

$PRODUCT = rsb_4410_a1

If your product is RSB-xxxx the product name is rsb_xxxx_a1

$PRODUCT = rsb_xxxx_a1

If your product is ROM-xxxx the product name is rom_xxxx_a1

$PRODUCT = rom_xxxx_a1

Build Instructions

Set the $JAVA_HOME environment variable

$ export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/


To build android image

Perform the following command in terminal console
to do build systemimage
$ make -j4 systemimage

simg2img is a tool that converts a sparse system image to a raw system image on a Linux host PC and is located in myandroid/out/host/linux-x86/bin/simg2img.

$ out/host/linux-x86/bin/simg2img out/target/product/$PRODUCT/system.img out/target/product/$PRODUCT/system_raw.img
$ mv out/target/product/$PRODUCT/system_raw.img out/target/product/$PRODUCT/system.img