This shows you the differences between two versions of the page.
|
tutorials:cb2:development:building_your_own_android_image [2013/10/30 10:36] allen [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 |
| + | $ make clean | ||
| + | $ cp arch/arm/configs/cubieboard2_config .config //note:if you want to complie cubietruck, please copy cubietruck_config. | ||
| + | $ 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) | + | $ lunch //note:select sugar-cubieboard2 or sugar-cubietruck |
| $ extract-bsp | $ extract-bsp | ||
| - | $ make -j4 | + | $ make -j8 |
| </code> | </code> | ||
| Line 26: | 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. | ||