User Tools

Site Tools


tutorials:cb2:development:building_your_own_android_image

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tutorials:cb2:development:building_your_own_android_image [2013/10/04 22:41]
george [Downloads]
tutorials:cb2:development:building_your_own_android_image [2015/03/10 14:09] (current)
parker [Important to Know]
Line 1: Line 1:
 ======Getting source code====== ======Getting source code======
 =====Downloads===== =====Downloads=====
 +
 +<​note>​**notes:​cubieboard2 and cubietruck use the same source code**</​note>​
   *The tarball is list below   *The tarball is list below
  
-^Package ​                          ​^Download ​                                                 ^Features^ + Package ​                          ​^ ​ Download ​                                                 ^ Features ^ 
-| cubieboard2_android_SDK_v1.03.tgz|[[http://ubuntuone.com/508YVKwkyvfo53WpILPDJF|download]]|1. Android 4.2.2 (including kernel source code)| +\\ \\ \\   cubieboard2_android_SDK_v1.03| ​\\ \\  \\ [[http://dl.cubieboard.org/software/​ubuntuone/​public/​cubieboard/​a20-sdk-from-aw/​a20_android4.2.2_v1.3.tar.gz|download]]|1. Android 4.2.2 (including kernel source code)| 
-|:::                               ​|::: ​                                       |2. It is difficult to maintain too many images with different languages, wifi chipsets, etc.|+|:::                               ​|::: ​                                       |2. It is difficult to maintain too many images with different languages ,wifi chipsets, etc.| 
 +|:::                               ​|::: ​                                       |3. Release the code, let more people be able to make their own enhancement| 
 + 
 +^  Package ​                          ​^ ​ Download ​                                                 ^ Features ^ 
 +| \\  cubieboard2_android_SDK_v1.05| \\  [[http://​dl.cubieboard.org/​software/​a20-cubieboard/​android/​CubieBoard2_SDK_20140508.tar.gz|download]]|1. Android 4.2.2 (including kernel source code)| 
 +|:::                               ​|::: ​                                       |2. Release the code, let more people be able to make their own enhancement| 
 + 
 + 
 +^  Package ​                          ​^ ​ Download ​                                                 ^ Features ^ 
 +| \\  cubieboard2_android_SDK_v1.09| \\  [[http://​dl.cubieboard.org/​software/​a20-cubieboard/​android/​v2.0_A20_android_source.tar.gz|download]]|1. Android 4.2.2 (including kernel source code)| 
 +|:::                               ​|::: ​                                       |2.It is the latest source code of cubieboard.|
 |:::                               ​|::: ​                                       |3. Release the code, let more people be able to make their own enhancement| |:::                               ​|::: ​                                       |3. Release the code, let more people be able to make their own enhancement|
        
  
-======Building======+===== Building ​environment for Android ​===== 
 +Refer to the link:[[http://​docs.cubieboard.org/​tutorials/​cb1/​development/​cubieboard/​building_environment_for_android|Building environment for Android]]
 =====Compiling===== =====Compiling=====
   *After extract it,   *After extract it,
 <​code>​ <​code>​
-   $cd lichee +   $ cd lichee/​linux-3.4 
-   ​$./​build.sh -p sun7i_android +   $ make clean  
-   $cd ../android42 +   $ cp arch/​arm/​configs/​cubieboard2_config .config ​  //​note:if you want to complie cubietruck, please copy cubietruck_config. 
-   ​$source build/​envsetup.sh +   $ cd .. 
-   ​$lunch ​  (select sugar-cubieboard2) +   $ ./build.sh -p sun7i_android 
-   ​$extract-bsp +   $ cd ../android 
-   $make -j4+   $ source build/​envsetup.sh 
 +   $ lunch   //note:select sugar-cubieboard2 ​or sugar-cubietruck 
 +   $ extract-bsp 
 +   $ make -j8
 </​code>​ </​code>​
  
 =====Generating final image===== =====Generating final image=====
 <​code>​ <​code>​
-   $pack+   $ pack
 </​code>​ </​code>​
-=====Important to Know===== 
-The images generated by the SDK are not suitable for all kind of OS platform'​s Livesuit. Because the binary images(fed_nand.axf) from the SDK is buggy, We must choose a target platform of fed-nand.axf before running pack command. 
-  *Making a livesuit image for Windows 
  
-Replace lichee/​tools/​pack/​chips/​sun7i/​eFex/​usb/​fed_nand.axf with lichee/​tools/​pack/​chips/​sun7i/​eFex/​usb/​fed_nand-windows.axf,​ then run  
-<​code>​ 
-   #​remember to source & lunch cubieboard2,​ so that the "​pack"​ command will work 
-   $pack 
-</​code> ​ 
-  *Making a livesuit image for Linux 
- 
-Replace lichee/​tools/​pack/​chips/​sun7i/​eFex/​usb/​fed_nand.axf with lichee/​tools/​pack/​chips/​sun7i/​eFex/​usb/​fed_nand-linux.axf,​ then run 
-<​code>​ 
-   $pack 
-</​code>​ 
-I have not test it on Mac OS 
tutorials/cb2/development/building_your_own_android_image.1380897666.txt.gz · Last modified: 2013/12/23 14:50 (external edit)