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 [2014/07/29 19:27]
parker old revision restored (2014/07/04 22:19)
tutorials:cb2:development:building_your_own_android_image [2015/03/10 14:09] (current)
parker [Important to Know]
Line 12: Line 12:
 ^  Package ​                          ​^ ​ Download ​                                                 ^ Features ^ ^  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)| | \\  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.| |:::                               ​|::: ​                                       |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,
Line 22: Line 28:
    $ cd lichee/​linux-3.4    $ cd lichee/​linux-3.4
    $ make clean     $ make clean 
-   $ cp arch/​arm/​configs/​cubieboard2_config .config ​(if you want to complie cubietruck, please copy cubietruck_config.)+   $ cp arch/​arm/​configs/​cubieboard2_config .config ​  //note:if you want to complie cubietruck, please copy cubietruck_config.
    $ cd ..    $ cd ..
    $ ./build.sh -p sun7i_android    $ ./build.sh -p sun7i_android
-   $ cd ../android42+   $ cd ../android
    $ source build/​envsetup.sh    $ source build/​envsetup.sh
-   $ lunch   (select sugar-cubieboard2 or sugar-cubietruck)+   $ lunch   //note:select sugar-cubieboard2 or sugar-cubietruck
    $ extract-bsp    $ extract-bsp
-   $ make -j4+   $ make -j8
 </​code>​ </​code>​
  
Line 36: Line 42:
    $ pack    $ pack
 </​code>​ </​code>​
-=====Important to Know===== 
-The images generated by the SDK are not suitable for every OS platform'​s Livesuit. Because the binary images (fed_nand.axf) from the SDK are buggy, we must choose a target platform of fed-nand.axf before running the 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 tested it on Mac OS. 
tutorials/cb2/development/building_your_own_android_image.1406633231.txt.gz · Last modified: 2014/07/29 19:27 by parker